5.0.0
New feature
- Support parsing SQL comment
- New DistSQL syntax: shadow rule management
- New DistSQL syntax: scaling job management
- New DistSQL syntax: disable proxy instance
- New DistSQL syntax: disable readwrite-splitting read data source
- New DistSQL syntax:
DROP SHARDING ALGORITHM
- New DistSQL syntax:
ALTER RESOURCE
- New DistSQL syntax:
CREATE SHARDING ALGORITHM
- New DistSQL syntax:
CREATE DEFAULT SHARDING [TABLE | DATABASE] STRATEGY
- New DistSQL syntax:
SHOW ALL VARIABLE
- New DistSQL syntax:
SHOW VARIABLE variableName;
- Support
3
modes, including Memory, Standalone and Cluster mode - Proxy supports for openGauss
- Scaling: Add basic support for openGauss
- Scaling: Add incremental task completion detect algorithm SPI interface
- Scaling: Add data consistency check algorithm SPI interface
- Scaling: Basic support of create table on target automatically for MySQL and openGauss
- Scaling: Support auto switch cluster configuration when job finished
- Scaling: Add more DistSQL support such as data consistency check, etc
API Change
- Add schema name configuration for ShardingSphere-JDBC
- Add default sharding column configuration
- Change the default authority provider from
NATIVE
toALL_PRIVILEGES_PERMITTED
- SCTL syntax adjustment, merged with DistSQL RAL syntax
SHOW RESOURCES
DistSQL is adjusted toSHOW SCHEMA RESOURCES
- Remove
shadow
logical field, support shadow algorithm
Enhancement
- Support parsing MySQL union/union all statement
- Support PostgreSQL
ABORT
statement - Refactor and improve metadata loading process
- Support PostgreSQL
CREATE INDEX
statement to generate index automatically when no index is specified - Support SQL statement execution with logical schema
- Support binding tables configuration with different sharding columns
- Optimize kernel performance
- Proxy supports queries to part of information_schema tables to optimize client connection experience
- DistSQL supports using quotation marks to use keywords as parameter names
- The password in the
ADD RESOURCE
statement supports special characters ADD RESOURCE
supports custom JDBC parameters and connection pool propertiesDROP RESOURCE
supports optional parameterignore single tables
, used to ignore single table rule restrictions- Support the use of DistSQL to create sharding table rule based on readwrite-splitting rules
SHOW DATABASES
statement supports like syntaxCREATE SHARDING TABLE RULE
supports the use of inline expressions to specify resourcesCREATE SHARDING TABLE RULE
supports configuration usingdataNodes
CREATE SHARDING TABLE RULE
supports reuse of existing algorithmsSET VARIABLE
, support to modify proxy configuration- PostgreSQL’s protocol enhancements (Such as supports Portal, unspecified type)
- Using Netty executor to optimize Proxy performance in specified scenarios
- Make memory strictly fetch size configurable in Proxy
- Scaling: Improve support for PostgreSQL
- Scaling: Support concurrent data consistency check of source and target side
Refactor
- Refactor the SingleTable feature to support Encrypt multiple data sources
- Adjust the persistent data structure of the registry center state node
- Remove the SQL rewrite of DML for Shadow
- Support the SQL routing of DDL for Shadow
- Scaling: Refactor default implementation of incremental task completion detect algorithm
- Scaling: Refactor default implementation of data consistency check algorithm
- Scaling: Remove HTTP API and binary distribution
Bug Fix
- Fix sharding interval algorithm
- Fix
SHOW INDEX FROM TABLE FROM TABLE
statement rewrite exception - Fix Encrypt multi tables join query rewrite exception
- Fix subquery index out of range exception
- Fix wrong result of Oracle paging query
- Fix the rewrite exception when KeyGenerateStrategy is not configured in the Sharding feature
- Fix federation executor engine exception caused by Oracle dialect case
- Fix Sharding and Encrypt integration usage rewrite exception
- Fix Oracle metadata loading exception
- Fix the issue that
SHOW RESOURCES
statement cannot display custom attributes - Fix the issue that SQL execution exception is not thrown
- Fix Etcd can not send node added event
- Fix PostgreSQL rows contains null value may be missing in query result
- Fix PostgreSQL metadata columns are out-of-order
- Fix client character set may be incorrect in Proxy
Change Log
转自 https://github.com/apache/shardingsphere/blob/master/RELEASE-NOTES.md