This is an automated email from the ASF dual-hosted git repository.
wuweijie pushed a change to branch opengauss_adapt
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git.
discard 96ab403 Update OpenGaussDataSourceMetaData
discard 2f5d65a Add OpenGauss Database type (#10292)
add 9ad0b6d Refactor LockRegistryCenter (#10398)
add 5d70df3 Add create encrypt rule handler (#10399)
add b4f7def optimize mysql alter table add foreign key parse & route
logic (#10401)
add 448054f fix pg start transaction & end transaction parse error
(#10402)
add 8b21735 Use OptimizeContext instead of CalciteContext (#10404)
add 10b8c16 Split RegistryCenter to multiple RegistryServives (#10405)
add fdbf950 Add service.config and state package (#10406)
add 741582a Add todo for RegistryCenter.persistSchemaName (#10407)
add a04dfa5 Simplify RegistryCenterTest (#10408)
add 13b5019 Merge persist config of RegistryCenter (#10413)
add 3286918 Add alter & drop encrypt rule handler (#10412)
new 05fe3d4 Add OpenGauss Database type (#10292)
new 06fe196 Update OpenGaussDataSourceMetaData
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (96ab403)
\
N -- N -- N refs/heads/opengauss_adapt (06fe196)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../db/protocol/error/CommonErrorCode.java | 10 +-
.../api/DistSQLStatementParserEngineTest.java | 2 +-
.../parser/segment/rdl/EncryptRuleSegment.java | 2 +
.../rdl/drop/impl/DropEncryptRuleStatement.java | 2 +-
.../shardingsphere-encrypt-common/pom.xml | 5 +
.../yaml/converter/EncryptRuleConverter.java | 85 ++++
.../yaml/converter/EncryptRuleConverterTest.java | 63 +++
.../src/test/resources/sharding/alter.xml | 60 +++
.../metadata/GovernanceMetaDataContexts.java | 14 +-
.../metadata/GovernanceMetaDataContextsTest.java | 10 +-
.../governance/core/facade/GovernanceFacade.java | 14 +-
.../governance/core/lock/GovernanceLock.java | 16 +-
.../governance/core/registry/RegistryCenter.java | 263 +++---------
.../service/config/GlobalRegistryService.java | 34 +-
.../service/config/SchemaBasedRegistryService.java | 59 +++
.../config/impl/DataSourceRegistryService.java | 81 ++++
.../config/impl/GlobalRuleRegistryService.java | 59 +++
.../config/impl/PropertiesRegistryService.java | 54 +++
.../config/impl/SchemaRuleRegistryService.java | 81 ++++
.../state/LockRegistryService.java} | 37 +-
.../core/facade/GovernanceFacadeTest.java | 9 +-
.../governance/core/lock/GovernanceLockTest.java | 16 +-
.../core/registry/RegistryCenterTest.java | 448 ++-------------------
.../config/impl/DataSourceRegistryServiceTest.java | 132 ++++++
.../config/impl/GlobalRuleRegistryServiceTest.java | 90 +++++
.../impl/PropertiesRegistryServiceTest.java} | 43 +-
.../config/impl/SchemaRuleRegistryServiceTest.java | 75 ++++
.../state/LockRegistryServiceTest.java} | 18 +-
.../src/test/resources/yaml/data-source.yaml | 1 +
.../data-global-rule.yaml | 0
.../data-schema-rule.yaml} | 0
.../data-source-init-sql.yaml | 0
.../{registryCenter => regcenter}/data-source.yaml | 1 +
.../data-database-discovery-rule.yaml | 32 --
.../yaml/registryCenter/data-encrypt-rule.yaml | 29 --
.../data-readwrite-splitting-rule.yaml | 24 --
.../yaml/registryCenter/data-shadow-rule.yaml | 25 --
.../registryCenter/data-sharding-encrypt-rule.yaml | 55 ---
.../optimize/context/CalciteContextFactory.java | 144 +------
.../sql/optimize/execute/CalciteJDBCExecutor.java | 10 +-
.../optimize/execute/raw/CalciteRawExecutor.java | 4 +-
.../execute/raw/context/CalciteDataContext.java | 4 +-
.../infra/optimize/context/OptimizeContext.java | 2 +
.../optimize/context/OptimizeContextFactory.java | 4 +-
.../GovernanceShardingSphereDataSource.java | 6 +-
.../exception/EncryptRuleExistsException.java | 26 +-
.../exception/EncryptRulesNotExistedException.java | 11 +-
.../exception/InvalidEncryptorsException.java | 15 +-
.../text/distsql/rdl/RDLBackendHandlerFactory.java | 15 +
.../rdl/impl/AlterEncryptRuleBackendHandler.java | 117 ++++++
.../rdl/impl/CreateEncryptRuleBackendHandler.java | 80 ++++
.../rdl/impl/DropEncryptRuleBackendHandler.java | 89 ++++
.../impl/AlterEncryptRuleBackendHandlerTest.java | 136 +++++++
.../impl/CreateEncryptRuleBackendHandlerTest.java | 116 ++++++
.../impl/DropEncryptRuleBackendHandlerTest.java | 120 ++++++
.../impl/GovernanceBootstrapInitializer.java | 11 +-
.../frontend/mysql/err/MySQLErrPacketFactory.java | 12 +
.../impl/MySQLDDLStatementSQLVisitor.java | 57 ++-
.../sql/parser/autogen/PostgreSQLStatement.g4 | 2 +
.../impl/PostgreSQLTCLStatementSQLVisitor.java | 14 +-
.../sql/parser/core/visitor/SQLVisitorRule.java | 4 +
.../src/main/resources/case/ddl/alter-table.xml | 20 +
62 files changed, 1856 insertions(+), 1112 deletions(-)
create mode 100644
shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-common/src/main/java/org/apache/shardingsphere/encrypt/yaml/converter/EncryptRuleConverter.java
create mode 100644
shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-common/src/test/java/org/apache/shardingsphere/encrypt/yaml/converter/EncryptRuleConverterTest.java
rename
shardingsphere-infra/shardingsphere-infra-executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/optimize/execute/raw/convert/SqlNodeConverter.java
=>
shardingsphere-governance/shardingsphere-governance-core/src/main/java/org/apache/shardingsphere/governance/core/registry/service/config/GlobalRegistryService.java
(57%)
create mode 100644
shardingsphere-governance/shardingsphere-governance-core/src/main/java/org/apache/shardingsphere/governance/core/registry/service/config/SchemaBasedRegistryService.java
create mode 100644
shardingsphere-governance/shardingsphere-governance-core/src/main/java/org/apache/shardingsphere/governance/core/registry/service/config/impl/DataSourceRegistryService.java
create mode 100644
shardingsphere-governance/shardingsphere-governance-core/src/main/java/org/apache/shardingsphere/governance/core/registry/service/config/impl/GlobalRuleRegistryService.java
create mode 100644
shardingsphere-governance/shardingsphere-governance-core/src/main/java/org/apache/shardingsphere/governance/core/registry/service/config/impl/PropertiesRegistryService.java
create mode 100644
shardingsphere-governance/shardingsphere-governance-core/src/main/java/org/apache/shardingsphere/governance/core/registry/service/config/impl/SchemaRuleRegistryService.java
rename
shardingsphere-governance/shardingsphere-governance-core/src/main/java/org/apache/shardingsphere/governance/core/registry/{lock/LockRegistryCenter.java
=> service/state/LockRegistryService.java} (81%)
create mode 100644
shardingsphere-governance/shardingsphere-governance-core/src/test/java/org/apache/shardingsphere/governance/core/registry/service/config/impl/DataSourceRegistryServiceTest.java
create mode 100644
shardingsphere-governance/shardingsphere-governance-core/src/test/java/org/apache/shardingsphere/governance/core/registry/service/config/impl/GlobalRuleRegistryServiceTest.java
copy
shardingsphere-governance/shardingsphere-governance-core/src/test/java/org/apache/shardingsphere/governance/core/registry/{lock/LockRegistryCenterTest.java
=> service/config/impl/PropertiesRegistryServiceTest.java} (52%)
create mode 100644
shardingsphere-governance/shardingsphere-governance-core/src/test/java/org/apache/shardingsphere/governance/core/registry/service/config/impl/SchemaRuleRegistryServiceTest.java
rename
shardingsphere-governance/shardingsphere-governance-core/src/test/java/org/apache/shardingsphere/governance/core/registry/{lock/LockRegistryCenterTest.java
=> service/state/LockRegistryServiceTest.java} (78%)
rename
shardingsphere-governance/shardingsphere-governance-core/src/test/resources/yaml/{registryCenter
=> regcenter}/data-global-rule.yaml (100%)
rename
shardingsphere-governance/shardingsphere-governance-core/src/test/resources/yaml/{registryCenter/data-sharding-rule.yaml
=> regcenter/data-schema-rule.yaml} (100%)
rename
shardingsphere-governance/shardingsphere-governance-core/src/test/resources/yaml/{registryCenter
=> regcenter}/data-source-init-sql.yaml (100%)
rename
shardingsphere-governance/shardingsphere-governance-core/src/test/resources/yaml/{registryCenter
=> regcenter}/data-source.yaml (99%)
delete mode 100644
shardingsphere-governance/shardingsphere-governance-core/src/test/resources/yaml/registryCenter/data-database-discovery-rule.yaml
delete mode 100644
shardingsphere-governance/shardingsphere-governance-core/src/test/resources/yaml/registryCenter/data-encrypt-rule.yaml
delete mode 100644
shardingsphere-governance/shardingsphere-governance-core/src/test/resources/yaml/registryCenter/data-readwrite-splitting-rule.yaml
delete mode 100644
shardingsphere-governance/shardingsphere-governance-core/src/test/resources/yaml/registryCenter/data-shadow-rule.yaml
delete mode 100644
shardingsphere-governance/shardingsphere-governance-core/src/test/resources/yaml/registryCenter/data-sharding-encrypt-rule.yaml
rename
shardingsphere-infra/shardingsphere-infra-executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/optimize/context/CalciteContext.java
=>
shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/exception/EncryptRuleExistsException.java
(57%)
copy
shardingsphere-distsql-parser/shardingsphere-distsql-parser-statement/src/main/java/org/apache/shardingsphere/distsql/parser/segment/rdl/EncryptRuleSegment.java
=>
shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/exception/EncryptRulesNotExistedException.java
(75%)
copy
shardingsphere-distsql-parser/shardingsphere-distsql-parser-statement/src/main/java/org/apache/shardingsphere/distsql/parser/segment/rdl/EncryptRuleSegment.java
=>
shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/exception/InvalidEncryptorsException.java
(70%)
create mode 100644
shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/text/distsql/rdl/impl/AlterEncryptRuleBackendHandler.java
create mode 100644
shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/text/distsql/rdl/impl/CreateEncryptRuleBackendHandler.java
create mode 100644
shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/text/distsql/rdl/impl/DropEncryptRuleBackendHandler.java
create mode 100644
shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/text/distsql/rdl/impl/AlterEncryptRuleBackendHandlerTest.java
create mode 100644
shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/text/distsql/rdl/impl/CreateEncryptRuleBackendHandlerTest.java
create mode 100644
shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/text/distsql/rdl/impl/DropEncryptRuleBackendHandlerTest.java