This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 117383b06dc Move MySQLSQLFederationColumnTypeConverter impls to
dialect modules (#37312)
117383b06dc is described below
commit 117383b06dcbe85d97a0cb345a770641814c5ba6
Author: Liang Zhang <[email protected]>
AuthorDate: Tue Dec 9 19:36:17 2025 +0800
Move MySQLSQLFederationColumnTypeConverter impls to dialect modules (#37312)
---
distribution/bom/pom.xml | 10 +++++
jdbc-dialect/oracle/pom.xml | 6 +++
jdbc-dialect/sqlserver/pom.xml | 6 +++
.../config/impl/H2ConnectionConfigBuilder.java | 50 ----------------------
.../config/impl/SQL92ConnectionConfigBuilder.java | 49 ---------------------
.../mysql}/MySQLConnectionConfigBuilder.java | 2 +-
...ntext.connection.config.ConnectionConfigBuilder | 8 +---
.../OpenGaussConnectionConfigBuilder.java | 2 +-
...ntext.connection.config.ConnectionConfigBuilder | 8 +---
.../sql-federation/dialect}/oracle/pom.xml | 19 +-------
.../oracle}/OracleConnectionConfigBuilder.java | 2 +-
...ntext.connection.config.ConnectionConfigBuilder | 8 +---
kernel/sql-federation/dialect/pom.xml | 2 +
.../PostgreSQLConnectionConfigBuilder.java | 2 +-
...ntext.connection.config.ConnectionConfigBuilder | 8 +---
.../sql-federation/dialect/sqlserver}/pom.xml | 19 +-------
.../SQLServerConnectionConfigBuilder.java | 2 +-
...ntext.connection.config.ConnectionConfigBuilder | 8 +---
proxy/dialect/oracle/pom.xml | 6 +++
proxy/dialect/sqlserver/pom.xml | 6 +++
20 files changed, 50 insertions(+), 173 deletions(-)
diff --git a/distribution/bom/pom.xml b/distribution/bom/pom.xml
index 919ac6b0c72..878ce911324 100644
--- a/distribution/bom/pom.xml
+++ b/distribution/bom/pom.xml
@@ -660,6 +660,16 @@
<artifactId>shardingsphere-sql-federation-postgresql</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.shardingsphere</groupId>
+
<artifactId>shardingsphere-sql-federation-sqlserver</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.shardingsphere</groupId>
+ <artifactId>shardingsphere-sql-federation-oracle</artifactId>
+ <version>${project.version}</version>
+ </dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-sql-federation-opengauss</artifactId>
diff --git a/jdbc-dialect/oracle/pom.xml b/jdbc-dialect/oracle/pom.xml
index d7317fc016a..f4903be5731 100644
--- a/jdbc-dialect/oracle/pom.xml
+++ b/jdbc-dialect/oracle/pom.xml
@@ -39,5 +39,11 @@
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.shardingsphere</groupId>
+ <artifactId>shardingsphere-sql-federation-oracle</artifactId>
+ <version>${project.version}</version>
+ <scope>runtime</scope>
+ </dependency>
</dependencies>
</project>
diff --git a/jdbc-dialect/sqlserver/pom.xml b/jdbc-dialect/sqlserver/pom.xml
index 0e337f511e5..361b80c2c7a 100644
--- a/jdbc-dialect/sqlserver/pom.xml
+++ b/jdbc-dialect/sqlserver/pom.xml
@@ -39,5 +39,11 @@
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.shardingsphere</groupId>
+ <artifactId>shardingsphere-sql-federation-sqlserver</artifactId>
+ <version>${project.version}</version>
+ <scope>runtime</scope>
+ </dependency>
</dependencies>
</project>
diff --git
a/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/H2ConnectionConfigBuilder.java
b/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/H2ConnectionConfigBuilder.java
deleted file mode 100644
index fa936906466..00000000000
---
a/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/H2ConnectionConfigBuilder.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package
org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl;
-
-import org.apache.calcite.config.CalciteConnectionConfig;
-import org.apache.calcite.config.CalciteConnectionConfigImpl;
-import org.apache.calcite.config.CalciteConnectionProperty;
-import org.apache.calcite.config.Lex;
-import org.apache.calcite.sql.fun.SqlLibrary;
-import org.apache.calcite.sql.validate.SqlConformanceEnum;
-import
org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder;
-
-import java.util.Properties;
-
-/**
- * Connection config builder for H2.
- */
-public final class H2ConnectionConfigBuilder implements
ConnectionConfigBuilder {
-
- @Override
- public CalciteConnectionConfig build() {
- Properties result = new Properties();
- // TODO No suitable type of Lex
- result.setProperty(CalciteConnectionProperty.LEX.camelName(),
Lex.MYSQL.name());
- result.setProperty(CalciteConnectionProperty.CONFORMANCE.camelName(),
SqlConformanceEnum.LENIENT.name());
- result.setProperty(CalciteConnectionProperty.FUN.camelName(),
SqlLibrary.STANDARD.fun);
-
result.setProperty(CalciteConnectionProperty.CASE_SENSITIVE.camelName(),
String.valueOf(Lex.MYSQL.caseSensitive));
- return new CalciteConnectionConfigImpl(result);
- }
-
- @Override
- public String getDatabaseType() {
- return "H2";
- }
-}
diff --git
a/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/SQL92ConnectionConfigBuilder.java
b/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/SQL92ConnectionConfigBuilder.java
deleted file mode 100644
index 54b37132b55..00000000000
---
a/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/SQL92ConnectionConfigBuilder.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package
org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl;
-
-import org.apache.calcite.config.CalciteConnectionConfig;
-import org.apache.calcite.config.CalciteConnectionConfigImpl;
-import org.apache.calcite.config.CalciteConnectionProperty;
-import org.apache.calcite.config.Lex;
-import org.apache.calcite.sql.fun.SqlLibrary;
-import org.apache.calcite.sql.validate.SqlConformanceEnum;
-import
org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder;
-
-import java.util.Properties;
-
-/**
- * Connection config builder for SQL92.
- */
-public final class SQL92ConnectionConfigBuilder implements
ConnectionConfigBuilder {
-
- @Override
- public CalciteConnectionConfig build() {
- Properties result = new Properties();
- result.setProperty(CalciteConnectionProperty.LEX.camelName(),
Lex.MYSQL.name());
- result.setProperty(CalciteConnectionProperty.CONFORMANCE.camelName(),
SqlConformanceEnum.STRICT_92.name());
- result.setProperty(CalciteConnectionProperty.FUN.camelName(),
SqlLibrary.STANDARD.fun);
-
result.setProperty(CalciteConnectionProperty.CASE_SENSITIVE.camelName(),
String.valueOf(Lex.MYSQL.caseSensitive));
- return new CalciteConnectionConfigImpl(result);
- }
-
- @Override
- public String getDatabaseType() {
- return "SQL92";
- }
-}
diff --git
a/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/MySQLConnectionConfigBuilder.java
b/kernel/sql-federation/dialect/mysql/src/main/java/org/apache/shardingsphere/sqlfederation/mysql/MySQLConnectionConfigBuilder.java
similarity index 96%
rename from
kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/MySQLConnectionConfigBuilder.java
rename to
kernel/sql-federation/dialect/mysql/src/main/java/org/apache/shardingsphere/sqlfederation/mysql/MySQLConnectionConfigBuilder.java
index 202bc025aa3..848cd01f36d 100644
---
a/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/MySQLConnectionConfigBuilder.java
+++
b/kernel/sql-federation/dialect/mysql/src/main/java/org/apache/shardingsphere/sqlfederation/mysql/MySQLConnectionConfigBuilder.java
@@ -15,7 +15,7 @@
* limitations under the License.
*/
-package
org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl;
+package org.apache.shardingsphere.sqlfederation.mysql;
import org.apache.calcite.config.CalciteConnectionConfig;
import org.apache.calcite.config.CalciteConnectionConfigImpl;
diff --git
a/kernel/sql-federation/compiler/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
b/kernel/sql-federation/dialect/mysql/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
similarity index 50%
copy from
kernel/sql-federation/compiler/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
copy to
kernel/sql-federation/dialect/mysql/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
index 79dd367797c..33ad5c18725 100644
---
a/kernel/sql-federation/compiler/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
+++
b/kernel/sql-federation/dialect/mysql/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
@@ -15,10 +15,4 @@
# limitations under the License.
#
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.H2ConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.MySQLConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.PostgreSQLConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.OpenGaussConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.SQLServerConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.OracleConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.SQL92ConnectionConfigBuilder
+org.apache.shardingsphere.sqlfederation.mysql.MySQLConnectionConfigBuilder
diff --git
a/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/OpenGaussConnectionConfigBuilder.java
b/kernel/sql-federation/dialect/opengauss/src/main/java/org/apache/shardingsphere/sqlfederation/opengauss/OpenGaussConnectionConfigBuilder.java
similarity index 95%
rename from
kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/OpenGaussConnectionConfigBuilder.java
rename to
kernel/sql-federation/dialect/opengauss/src/main/java/org/apache/shardingsphere/sqlfederation/opengauss/OpenGaussConnectionConfigBuilder.java
index b5a264fd5c4..e3d57307087 100644
---
a/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/OpenGaussConnectionConfigBuilder.java
+++
b/kernel/sql-federation/dialect/opengauss/src/main/java/org/apache/shardingsphere/sqlfederation/opengauss/OpenGaussConnectionConfigBuilder.java
@@ -15,7 +15,7 @@
* limitations under the License.
*/
-package
org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl;
+package org.apache.shardingsphere.sqlfederation.opengauss;
import org.apache.calcite.config.CalciteConnectionConfig;
import org.apache.calcite.config.CalciteConnectionConfigImpl;
diff --git
a/kernel/sql-federation/compiler/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
b/kernel/sql-federation/dialect/opengauss/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
similarity index 50%
copy from
kernel/sql-federation/compiler/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
copy to
kernel/sql-federation/dialect/opengauss/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
index 79dd367797c..60c86ec71df 100644
---
a/kernel/sql-federation/compiler/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
+++
b/kernel/sql-federation/dialect/opengauss/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
@@ -15,10 +15,4 @@
# limitations under the License.
#
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.H2ConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.MySQLConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.PostgreSQLConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.OpenGaussConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.SQLServerConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.OracleConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.SQL92ConnectionConfigBuilder
+org.apache.shardingsphere.sqlfederation.opengauss.OpenGaussConnectionConfigBuilder
diff --git a/jdbc-dialect/oracle/pom.xml
b/kernel/sql-federation/dialect/oracle/pom.xml
similarity index 64%
copy from jdbc-dialect/oracle/pom.xml
copy to kernel/sql-federation/dialect/oracle/pom.xml
index d7317fc016a..daa533475d2 100644
--- a/jdbc-dialect/oracle/pom.xml
+++ b/kernel/sql-federation/dialect/oracle/pom.xml
@@ -20,24 +20,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-jdbc-dialect</artifactId>
+ <artifactId>shardingsphere-sql-federation-dialect</artifactId>
<version>5.5.3-SNAPSHOT</version>
</parent>
- <artifactId>shardingsphere-jdbc-dialect-oracle</artifactId>
+ <artifactId>shardingsphere-sql-federation-oracle</artifactId>
<name>${project.artifactId}</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-parser-sql-engine-oracle</artifactId>
- <version>${project.version}</version>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-infra-binder-oracle</artifactId>
- <version>${project.version}</version>
- <scope>runtime</scope>
- </dependency>
- </dependencies>
</project>
diff --git
a/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/OracleConnectionConfigBuilder.java
b/kernel/sql-federation/dialect/oracle/src/main/java/org/apache/shardingsphere/sqlfederation/oracle/OracleConnectionConfigBuilder.java
similarity index 95%
rename from
kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/OracleConnectionConfigBuilder.java
rename to
kernel/sql-federation/dialect/oracle/src/main/java/org/apache/shardingsphere/sqlfederation/oracle/OracleConnectionConfigBuilder.java
index 3b3a81ffe36..27f96d96f2d 100644
---
a/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/OracleConnectionConfigBuilder.java
+++
b/kernel/sql-federation/dialect/oracle/src/main/java/org/apache/shardingsphere/sqlfederation/oracle/OracleConnectionConfigBuilder.java
@@ -15,7 +15,7 @@
* limitations under the License.
*/
-package
org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl;
+package org.apache.shardingsphere.sqlfederation.oracle;
import org.apache.calcite.config.CalciteConnectionConfig;
import org.apache.calcite.config.CalciteConnectionConfigImpl;
diff --git
a/kernel/sql-federation/compiler/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
b/kernel/sql-federation/dialect/oracle/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
similarity index 50%
copy from
kernel/sql-federation/compiler/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
copy to
kernel/sql-federation/dialect/oracle/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
index 79dd367797c..18c40d522b5 100644
---
a/kernel/sql-federation/compiler/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
+++
b/kernel/sql-federation/dialect/oracle/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
@@ -15,10 +15,4 @@
# limitations under the License.
#
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.H2ConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.MySQLConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.PostgreSQLConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.OpenGaussConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.SQLServerConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.OracleConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.SQL92ConnectionConfigBuilder
+org.apache.shardingsphere.sqlfederation.oracle.OracleConnectionConfigBuilder
diff --git a/kernel/sql-federation/dialect/pom.xml
b/kernel/sql-federation/dialect/pom.xml
index 57aae943d6a..24af540014c 100644
--- a/kernel/sql-federation/dialect/pom.xml
+++ b/kernel/sql-federation/dialect/pom.xml
@@ -30,6 +30,8 @@
<modules>
<module>mysql</module>
<module>postgresql</module>
+ <module>oracle</module>
+ <module>sqlserver</module>
<module>opengauss</module>
</modules>
diff --git
a/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/PostgreSQLConnectionConfigBuilder.java
b/kernel/sql-federation/dialect/postgresql/src/main/java/org/apache/shardingsphere/sqlfederation/postgresql/PostgreSQLConnectionConfigBuilder.java
similarity index 95%
rename from
kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/PostgreSQLConnectionConfigBuilder.java
rename to
kernel/sql-federation/dialect/postgresql/src/main/java/org/apache/shardingsphere/sqlfederation/postgresql/PostgreSQLConnectionConfigBuilder.java
index b12615e1c76..62211256a13 100644
---
a/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/PostgreSQLConnectionConfigBuilder.java
+++
b/kernel/sql-federation/dialect/postgresql/src/main/java/org/apache/shardingsphere/sqlfederation/postgresql/PostgreSQLConnectionConfigBuilder.java
@@ -15,7 +15,7 @@
* limitations under the License.
*/
-package
org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl;
+package org.apache.shardingsphere.sqlfederation.postgresql;
import org.apache.calcite.config.CalciteConnectionConfig;
import org.apache.calcite.config.CalciteConnectionConfigImpl;
diff --git
a/kernel/sql-federation/compiler/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
b/kernel/sql-federation/dialect/postgresql/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
similarity index 50%
copy from
kernel/sql-federation/compiler/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
copy to
kernel/sql-federation/dialect/postgresql/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
index 79dd367797c..87e80ecd5cf 100644
---
a/kernel/sql-federation/compiler/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
+++
b/kernel/sql-federation/dialect/postgresql/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
@@ -15,10 +15,4 @@
# limitations under the License.
#
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.H2ConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.MySQLConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.PostgreSQLConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.OpenGaussConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.SQLServerConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.OracleConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.SQL92ConnectionConfigBuilder
+org.apache.shardingsphere.sqlfederation.postgresql.PostgreSQLConnectionConfigBuilder
diff --git a/jdbc-dialect/oracle/pom.xml
b/kernel/sql-federation/dialect/sqlserver/pom.xml
similarity index 64%
copy from jdbc-dialect/oracle/pom.xml
copy to kernel/sql-federation/dialect/sqlserver/pom.xml
index d7317fc016a..be316694ade 100644
--- a/jdbc-dialect/oracle/pom.xml
+++ b/kernel/sql-federation/dialect/sqlserver/pom.xml
@@ -20,24 +20,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-jdbc-dialect</artifactId>
+ <artifactId>shardingsphere-sql-federation-dialect</artifactId>
<version>5.5.3-SNAPSHOT</version>
</parent>
- <artifactId>shardingsphere-jdbc-dialect-oracle</artifactId>
+ <artifactId>shardingsphere-sql-federation-sqlserver</artifactId>
<name>${project.artifactId}</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-parser-sql-engine-oracle</artifactId>
- <version>${project.version}</version>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-infra-binder-oracle</artifactId>
- <version>${project.version}</version>
- <scope>runtime</scope>
- </dependency>
- </dependencies>
</project>
diff --git
a/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/SQLServerConnectionConfigBuilder.java
b/kernel/sql-federation/dialect/sqlserver/src/main/java/org/apache/shardingsphere/sqlfederation/sqlserver/SQLServerConnectionConfigBuilder.java
similarity index 95%
rename from
kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/SQLServerConnectionConfigBuilder.java
rename to
kernel/sql-federation/dialect/sqlserver/src/main/java/org/apache/shardingsphere/sqlfederation/sqlserver/SQLServerConnectionConfigBuilder.java
index ade9e2c21c5..8b458d1c6ea 100644
---
a/kernel/sql-federation/compiler/src/main/java/org/apache/shardingsphere/sqlfederation/compiler/context/connection/config/impl/SQLServerConnectionConfigBuilder.java
+++
b/kernel/sql-federation/dialect/sqlserver/src/main/java/org/apache/shardingsphere/sqlfederation/sqlserver/SQLServerConnectionConfigBuilder.java
@@ -15,7 +15,7 @@
* limitations under the License.
*/
-package
org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl;
+package org.apache.shardingsphere.sqlfederation.sqlserver;
import org.apache.calcite.config.CalciteConnectionConfig;
import org.apache.calcite.config.CalciteConnectionConfigImpl;
diff --git
a/kernel/sql-federation/compiler/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
b/kernel/sql-federation/dialect/sqlserver/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
similarity index 50%
rename from
kernel/sql-federation/compiler/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
rename to
kernel/sql-federation/dialect/sqlserver/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
index 79dd367797c..1060d8304a3 100644
---
a/kernel/sql-federation/compiler/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
+++
b/kernel/sql-federation/dialect/sqlserver/src/main/resources/META-INF/services/org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilder
@@ -15,10 +15,4 @@
# limitations under the License.
#
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.H2ConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.MySQLConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.PostgreSQLConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.OpenGaussConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.SQLServerConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.OracleConnectionConfigBuilder
-org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.SQL92ConnectionConfigBuilder
+org.apache.shardingsphere.sqlfederation.sqlserver.SQLServerConnectionConfigBuilder
diff --git a/proxy/dialect/oracle/pom.xml b/proxy/dialect/oracle/pom.xml
index e7724b92d7f..0da8ce59960 100644
--- a/proxy/dialect/oracle/pom.xml
+++ b/proxy/dialect/oracle/pom.xml
@@ -39,5 +39,11 @@
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.shardingsphere</groupId>
+ <artifactId>shardingsphere-sql-federation-oracle</artifactId>
+ <version>${project.version}</version>
+ <scope>runtime</scope>
+ </dependency>
</dependencies>
</project>
diff --git a/proxy/dialect/sqlserver/pom.xml b/proxy/dialect/sqlserver/pom.xml
index 658b4621316..928da399b38 100644
--- a/proxy/dialect/sqlserver/pom.xml
+++ b/proxy/dialect/sqlserver/pom.xml
@@ -39,5 +39,11 @@
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.shardingsphere</groupId>
+ <artifactId>shardingsphere-sql-federation-sqlserver</artifactId>
+ <version>${project.version}</version>
+ <scope>runtime</scope>
+ </dependency>
</dependencies>
</project>