This is an automated email from the ASF dual-hosted git repository.
chengzhang 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 4e104401d13 Temporarily disable nativeTest for MS SQL Server's `DROP
TABLE IF EXISTS` statement due to refactoring (#35781)
4e104401d13 is described below
commit 4e104401d13722150d9b814fe2f19a438e426782
Author: Ling Hengqian <[email protected]>
AuthorDate: Mon Jun 23 12:45:56 2025 +0800
Temporarily disable nativeTest for MS SQL Server's `DROP TABLE IF EXISTS`
statement due to refactoring (#35781)
---
.../graalvm-native-image/_index.cn.md | 37 +--------
.../graalvm-native-image/_index.en.md | 38 +--------
.../startup/graalvm-native-image.cn.md | 6 +-
.../startup/graalvm-native-image.en.md | 6 +-
.../reflect-config.json | 94 +++++-----------------
.../resource-config.json | 9 ++-
.../reflect-config.json | 30 -------
.../test/natived/jdbc/databases/SQLServerTest.java | 6 +-
8 files changed, 41 insertions(+), 185 deletions(-)
diff --git
a/docs/document/content/user-manual/shardingsphere-jdbc/graalvm-native-image/_index.cn.md
b/docs/document/content/user-manual/shardingsphere-jdbc/graalvm-native-image/_index.cn.md
index b0b663ea80a..4ddbf4dba3b 100644
---
a/docs/document/content/user-manual/shardingsphere-jdbc/graalvm-native-image/_index.cn.md
+++
b/docs/document/content/user-manual/shardingsphere-jdbc/graalvm-native-image/_index.cn.md
@@ -288,41 +288,8 @@ Caused by: java.io.UnsupportedEncodingException: Codepage
Cp1252 is not supporte
</project>
```
-7. 受 https://github.com/grpc/grpc-java/issues/10601 影响,用户如果在项目中引入了
`org.apache.hive:hive-jdbc`,
-则需要在项目的 classpath 的 `META-INF/native-image/io.grpc/grpc-netty-shaded`
文件夹下创建包含如下内容的文件 `native-image.properties`,
-
-```properties
-Args=--initialize-at-run-time=\
- io.grpc.netty.shaded.io.netty.channel.ChannelHandlerMask,\
- io.grpc.netty.shaded.io.netty.channel.nio.AbstractNioChannel,\
- io.grpc.netty.shaded.io.netty.channel.socket.nio.SelectorProviderUtil,\
- io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise,\
- io.grpc.netty.shaded.io.netty.util.internal.MacAddressUtil,\
- io.grpc.netty.shaded.io.netty.util.internal.SystemPropertyUtil,\
- io.grpc.netty.shaded.io.netty.util.NetUtilInitializations,\
- io.grpc.netty.shaded.io.netty.channel.AbstractChannel,\
- io.grpc.netty.shaded.io.netty.util.NetUtil,\
- io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent,\
- io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0,\
- io.grpc.netty.shaded.io.netty.channel.DefaultChannelPipeline,\
- io.grpc.netty.shaded.io.netty.channel.DefaultChannelId,\
- io.grpc.netty.shaded.io.netty.util.ResourceLeakDetector,\
- io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext,\
- io.grpc.netty.shaded.io.netty.channel.ChannelOutboundBuffer,\
- io.grpc.netty.shaded.io.netty.util.internal.InternalThreadLocalMap,\
- io.grpc.netty.shaded.io.netty.util.internal.CleanerJava9,\
- io.grpc.netty.shaded.io.netty.util.internal.StringUtil,\
- io.grpc.netty.shaded.io.netty.util.internal.CleanerJava6,\
- io.grpc.netty.shaded.io.netty.buffer.ByteBufUtil$HexUtil,\
- io.grpc.netty.shaded.io.netty.buffer.AbstractByteBufAllocator,\
- io.grpc.netty.shaded.io.netty.util.concurrent.FastThreadLocalThread,\
- io.grpc.netty.shaded.io.netty.buffer.PoolArena,\
- io.grpc.netty.shaded.io.netty.buffer.EmptyByteBuf,\
- io.grpc.netty.shaded.io.netty.buffer.PoolThreadCache,\
- io.grpc.netty.shaded.io.netty.util.AttributeKey
-```
-
-ShardingSphere 的单元测试仅使用 Maven 模块
`io.github.linghengqian:hive-server2-jdbc-driver-thin` 来在 GraalVM Native Image
下验证可用性。
+7. ShardingSphere 的单元测试仅使用 Maven 模块
`io.github.linghengqian:hive-server2-jdbc-driver-thin` 来在 GraalVM Native Image
下验证 HiveServer2 集成的可用性。
+如果开发者直接使用 `org.apache.hive:hive-jdbc`,则应自行处理依赖冲突和提供额外的 GraalVM Reachability
Metadata 。
8. 由于 https://github.com/oracle/graal/issues/7979 的影响,
对应 `com.oracle.database.jdbc:ojdbc8` Maven 模块的 Oracle JDBC Driver 无法在 GraalVM
Native Image 下使用。
diff --git
a/docs/document/content/user-manual/shardingsphere-jdbc/graalvm-native-image/_index.en.md
b/docs/document/content/user-manual/shardingsphere-jdbc/graalvm-native-image/_index.en.md
index e7ec4d48274..c5f5c288bb7 100644
---
a/docs/document/content/user-manual/shardingsphere-jdbc/graalvm-native-image/_index.en.md
+++
b/docs/document/content/user-manual/shardingsphere-jdbc/graalvm-native-image/_index.en.md
@@ -301,42 +301,8 @@ Possible configuration examples are as follows,
</project>
```
-7. Affected by https://github.com/grpc/grpc-java/issues/10601 , should users
incorporate `org.apache.hive:hive-jdbc` into their project,
-it is imperative to create a file named `native-image.properties` within the
directory `META-INF/native-image/io.grpc/grpc-netty-shaded` of the classpath,
-containing the following content,
-
-```properties
-Args=--initialize-at-run-time=\
- io.grpc.netty.shaded.io.netty.channel.ChannelHandlerMask,\
- io.grpc.netty.shaded.io.netty.channel.nio.AbstractNioChannel,\
- io.grpc.netty.shaded.io.netty.channel.socket.nio.SelectorProviderUtil,\
- io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise,\
- io.grpc.netty.shaded.io.netty.util.internal.MacAddressUtil,\
- io.grpc.netty.shaded.io.netty.util.internal.SystemPropertyUtil,\
- io.grpc.netty.shaded.io.netty.util.NetUtilInitializations,\
- io.grpc.netty.shaded.io.netty.channel.AbstractChannel,\
- io.grpc.netty.shaded.io.netty.util.NetUtil,\
- io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent,\
- io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0,\
- io.grpc.netty.shaded.io.netty.channel.DefaultChannelPipeline,\
- io.grpc.netty.shaded.io.netty.channel.DefaultChannelId,\
- io.grpc.netty.shaded.io.netty.util.ResourceLeakDetector,\
- io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext,\
- io.grpc.netty.shaded.io.netty.channel.ChannelOutboundBuffer,\
- io.grpc.netty.shaded.io.netty.util.internal.InternalThreadLocalMap,\
- io.grpc.netty.shaded.io.netty.util.internal.CleanerJava9,\
- io.grpc.netty.shaded.io.netty.util.internal.StringUtil,\
- io.grpc.netty.shaded.io.netty.util.internal.CleanerJava6,\
- io.grpc.netty.shaded.io.netty.buffer.ByteBufUtil$HexUtil,\
- io.grpc.netty.shaded.io.netty.buffer.AbstractByteBufAllocator,\
- io.grpc.netty.shaded.io.netty.util.concurrent.FastThreadLocalThread,\
- io.grpc.netty.shaded.io.netty.buffer.PoolArena,\
- io.grpc.netty.shaded.io.netty.buffer.EmptyByteBuf,\
- io.grpc.netty.shaded.io.netty.buffer.PoolThreadCache,\
- io.grpc.netty.shaded.io.netty.util.AttributeKey
-```
-
-ShardingSphere's unit test only uses the Maven module
`io.github.linghengqian:hive-server2-jdbc-driver-thin` to verify the
availability under GraalVM Native Image.
+7. ShardingSphere's unit test only uses the Maven module
`io.github.linghengqian:hive-server2-jdbc-driver-thin` to verify the
availability of HiveServer2 integration under GraalVM Native Image.
+If developers use `org.apache.hive:hive-jdbc` directly, they should handle
dependency conflicts and provide additional GraalVM Reachability Metadata by
themselves.
8. Due to https://github.com/oracle/graal/issues/7979 ,
the Oracle JDBC Driver corresponding to the `com.oracle.database.jdbc:ojdbc8`
Maven module cannot be used under GraalVM Native Image.
diff --git
a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md
b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md
index 62430bc61f7..e4b2dc59e92 100644
---
a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md
+++
b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md
@@ -46,7 +46,7 @@ ShardingSphere Proxy Native 的默认端口为 `3307`,配置文件从 `/opt/sh
```yaml
services:
apache-shardingsphere-proxy-native:
- image:
ghcr.io/apache/shardingsphere-proxy-native:da826af47804dae79b1ba5717af86792726745fd
+ image:
ghcr.io/apache/shardingsphere-proxy-native:a2661a750be0301cb221ba8f549504f04cc8a5af
volumes:
- ./custom/conf:/opt/shardingsphere-proxy/conf
ports:
@@ -66,7 +66,7 @@ services:
```yaml
services:
apache-shardingsphere-proxy-native:
- image:
ghcr.io/apache/shardingsphere-proxy-native:da826af47804dae79b1ba5717af86792726745fd-mostly
+ image:
ghcr.io/apache/shardingsphere-proxy-native:a2661a750be0301cb221ba8f549504f04cc8a5af-mostly
volumes:
- ./custom/conf:/opt/shardingsphere-proxy/conf
ports:
@@ -84,7 +84,7 @@ services:
```yaml
services:
apache-shardingsphere-proxy-native:
- image:
ghcr.io/apache/shardingsphere-proxy-native:da826af47804dae79b1ba5717af86792726745fd-static
+ image:
ghcr.io/apache/shardingsphere-proxy-native:a2661a750be0301cb221ba8f549504f04cc8a5af-static
volumes:
- ./custom/conf:/opt/shardingsphere-proxy/conf
ports:
diff --git
a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md
b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md
index 99b8ad4350e..779536e34aa 100644
---
a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md
+++
b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md
@@ -48,7 +48,7 @@ developers can test ShardingSphere Proxy Native in the form
of `dynamically link
```yaml
services:
apache-shardingsphere-proxy-native:
- image:
ghcr.io/apache/shardingsphere-proxy-native:da826af47804dae79b1ba5717af86792726745fd
+ image:
ghcr.io/apache/shardingsphere-proxy-native:a2661a750be0301cb221ba8f549504f04cc8a5af
volumes:
- ./custom/conf:/opt/shardingsphere-proxy/conf
ports:
@@ -68,7 +68,7 @@ Just add the `-mostly` suffix to the Docker Image Tag
corresponding to the speci
```yaml
services:
apache-shardingsphere-proxy-native:
- image:
ghcr.io/apache/shardingsphere-proxy-native:da826af47804dae79b1ba5717af86792726745fd-mostly
+ image:
ghcr.io/apache/shardingsphere-proxy-native:a2661a750be0301cb221ba8f549504f04cc8a5af-mostly
volumes:
- ./custom/conf:/opt/shardingsphere-proxy/conf
ports:
@@ -86,7 +86,7 @@ Just add the `-static` suffix to the Docker Image Tag
corresponding to the speci
```yaml
services:
apache-shardingsphere-proxy-native:
- image:
ghcr.io/apache/shardingsphere-proxy-native:da826af47804dae79b1ba5717af86792726745fd-static
+ image:
ghcr.io/apache/shardingsphere-proxy-native:a2661a750be0301cb221ba8f549504f04cc8a5af-static
volumes:
- ./custom/conf:/opt/shardingsphere-proxy/conf
ports:
diff --git
a/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/generated-reachability-metadata/reflect-config.json
b/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/generated-reachability-metadata/reflect-config.json
index ccd2c034a43..8e369914a3d 100644
---
a/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/generated-reachability-metadata/reflect-config.json
+++
b/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/generated-reachability-metadata/reflect-config.json
@@ -131,10 +131,18 @@
"condition":{"typeReachable":"org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabasesFactory"},
"name":"[Lcom.zaxxer.hikari.util.ConcurrentBag$IConcurrentBagEntry;"
},
+{
+
"condition":{"typeReachable":"org.apache.shardingsphere.mode.metadata.persist.metadata.service.DatabaseMetaDataPersistService"},
+ "name":"[Lcom.zaxxer.hikari.util.ConcurrentBag$IConcurrentBagEntry;"
+},
{
"condition":{"typeReachable":"org.apache.shardingsphere.mode.repository.standalone.jdbc.JDBCRepository"},
"name":"[Lcom.zaxxer.hikari.util.ConcurrentBag$IConcurrentBagEntry;"
},
+{
+
"condition":{"typeReachable":"org.apache.shardingsphere.proxy.backend.connector.StandardDatabaseConnector"},
+ "name":"[Lcom.zaxxer.hikari.util.ConcurrentBag$IConcurrentBagEntry;"
+},
{
"condition":{"typeReachable":"org.apache.shardingsphere.proxy.frontend.ShardingSphereProxy"},
"name":"[Lcom.zaxxer.hikari.util.ConcurrentBag$IConcurrentBagEntry;"
@@ -599,6 +607,10 @@
"name":"java.lang.constant.ConstantDesc",
"queryAllDeclaredMethods":true
},
+{
+
"condition":{"typeReachable":"org.apache.shardingsphere.infra.util.eventbus.EventBusContext"},
+ "name":"java.lang.invoke.VarHandle"
+},
{
"condition":{"typeReachable":"org.apache.shardingsphere.mode.repository.cluster.etcd.EtcdRepository"},
"name":"java.lang.management.ManagementFactory",
@@ -1974,6 +1986,10 @@
"allDeclaredFields":true,
"methods":[{"name":"<init>","parameterTypes":[] },
{"name":"getColumns","parameterTypes":[] },
{"name":"getConstraints","parameterTypes":[] },
{"name":"getIndexes","parameterTypes":[] },
{"name":"getName","parameterTypes":[] }, {"name":"getType","parameterTypes":[]
}, {"name":"setColumns","parameterTypes":["java.util.Map"] },
{"name":"setIndexes","parameterTypes":["java.util.Map"] },
{"name":"setName","parameterTypes":["java.lang.String"] },
{"name":"setType","parameterTypes":["org.apa [...]
},
+{
+
"condition":{"typeReachable":"org.apache.shardingsphere.mode.metadata.refresher.pushdown.PushDownMetaDataRefreshEngine"},
+
"name":"org.apache.shardingsphere.infra.yaml.schema.pojo.YamlShardingSphereTable"
+},
{
"condition":{"typeReachable":"org.apache.shardingsphere.mode.metadata.refresher.pushdown.type.table.CreateTablePushDownMetaDataRefresher"},
"name":"org.apache.shardingsphere.infra.yaml.schema.pojo.YamlShardingSphereTable"
@@ -2768,6 +2784,10 @@
"condition":{"typeReachable":"org.apache.shardingsphere.proxy.backend.response.header.query.QueryHeaderBuilderEngine"},
"name":"org.apache.shardingsphere.proxy.backend.mysql.response.header.query.MySQLQueryHeaderBuilder"
},
+{
+
"condition":{"typeReachable":"org.apache.shardingsphere.proxy.backend.handler.ProxyBackendHandlerFactory"},
+
"name":"org.apache.shardingsphere.proxy.backend.mysql.state.MySQLProxyStateSupportedSQLProvider"
+},
{
"condition":{"typeReachable":"org.apache.shardingsphere.proxy.backend.connector.jdbc.statement.JDBCBackendStatement"},
"name":"org.apache.shardingsphere.proxy.backend.opengauss.connector.jdbc.statement.OpenGaussStatementMemoryStrictlyFetchSizeSetter"
@@ -3294,10 +3314,6 @@
"condition":{"typeReachable":"org.apache.shardingsphere.infra.merge.MergeEngine"},
"name":"org.apache.shardingsphere.sharding.merge.ShardingResultMergerEngine"
},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.infra.metadata.statistics.collector.shardingsphere.ShardingSphereStatisticsCollector"},
-
"name":"org.apache.shardingsphere.sharding.metadata.data.ShardingTableStatisticsCollector"
-},
{
"condition":{"typeReachable":"org.apache.shardingsphere.infra.rewrite.SQLRewriteEntry"},
"name":"org.apache.shardingsphere.sharding.rewrite.context.ShardingSQLRewriteContextDecorator"
@@ -3771,76 +3787,6 @@
"name":"org.apache.shardingsphere.sql.parser.sqlserver.visitor.statement.type.SQLServerDMLStatementVisitor",
"methods":[{"name":"<init>","parameterTypes":[] }]
},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSphereStatement"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropTableStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.infra.binder.engine.statement.ddl.TruncateStatementBinder"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.TruncateStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.parse.PostgreSQLComParseExecutor"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.dml.DeleteStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.dml.InsertStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSphereStatement"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.dml.SelectStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.proxy.backend.handler.ProxyBackendHandlerFactory"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateTableStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.proxy.backend.handler.ProxyBackendHandlerFactory"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropTableStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.proxy.backend.handler.ProxyBackendHandlerFactory"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.dml.DeleteStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.proxy.backend.handler.ProxyBackendHandlerFactory"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.dml.InsertStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.proxy.backend.handler.ProxyBackendHandlerFactory"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.dml.SelectStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.parse.PostgreSQLComParseExecutor"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateTableStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.parse.PostgreSQLComParseExecutor"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropTableStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.parse.PostgreSQLComParseExecutor"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.dml.InsertStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.parse.PostgreSQLComParseExecutor"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.dml.SelectStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
{
"condition":{"typeReachable":"org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.ConnectionConfigBuilderFactory"},
"name":"org.apache.shardingsphere.sqlfederation.compiler.context.connection.config.impl.H2ConnectionConfigBuilder"
diff --git
a/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/generated-reachability-metadata/resource-config.json
b/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/generated-reachability-metadata/resource-config.json
index b1bcc2d98e3..f51f6931eee 100644
---
a/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/generated-reachability-metadata/resource-config.json
+++
b/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/generated-reachability-metadata/resource-config.json
@@ -261,6 +261,9 @@
}, {
"condition":{"typeReachable":"org.apache.shardingsphere.infra.rewrite.SQLRewriteEntry"},
"pattern":"\\QMETA-INF/services/org.apache.shardingsphere.infra.rewrite.context.SQLRewriteContextDecorator\\E"
+ }, {
+
"condition":{"typeReachable":"org.apache.shardingsphere.infra.rewrite.sql.token.common.generator.generic.RemoveTokenGenerator"},
+
"pattern":"\\QMETA-INF/services/org.apache.shardingsphere.infra.rewrite.sql.token.common.generator.generic.DialectToBeRemovedSegmentsProvider\\E"
}, {
"condition":{"typeReachable":"org.apache.shardingsphere.infra.route.engine.SQLRouteEngine"},
"pattern":"\\QMETA-INF/services/org.apache.shardingsphere.infra.route.SQLRouter\\E"
@@ -321,6 +324,9 @@
}, {
"condition":{"typeReachable":"org.apache.shardingsphere.proxy.backend.response.header.query.QueryHeaderBuilderEngine"},
"pattern":"\\QMETA-INF/services/org.apache.shardingsphere.proxy.backend.response.header.query.QueryHeaderBuilder\\E"
+ }, {
+
"condition":{"typeReachable":"org.apache.shardingsphere.proxy.backend.handler.ProxyBackendHandlerFactory"},
+
"pattern":"\\QMETA-INF/services/org.apache.shardingsphere.proxy.backend.state.DialectProxyStateSupportedSQLProvider\\E"
}, {
"condition":{"typeReachable":"org.apache.shardingsphere.proxy.frontend.netty.ServerHandlerInitializer"},
"pattern":"\\QMETA-INF/services/org.apache.shardingsphere.proxy.frontend.spi.DatabaseProtocolFrontendEngine\\E"
@@ -459,9 +465,6 @@
}, {
"condition":{"typeReachable":"org.apache.shardingsphere.infra.metadata.database.schema.manager.SystemSchemaManager"},
"pattern":"\\Qschema/common/shardingsphere/cluster_information.yaml\\E"
- }, {
-
"condition":{"typeReachable":"org.apache.shardingsphere.infra.metadata.database.schema.manager.SystemSchemaManager"},
-
"pattern":"\\Qschema/common/shardingsphere/sharding_table_statistics.yaml\\E"
}, {
"condition":{"typeReachable":"org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabasesFactory"},
"pattern":"\\Qschema/mysql/information_schema/administrable_role_authorizations.yaml\\E"
diff --git
a/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/shardingsphere-infra-reachability-metadata/reflect-config.json
b/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/shardingsphere-infra-reachability-metadata/reflect-config.json
index 12146e79000..78010e8a4dc 100644
---
a/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/shardingsphere-infra-reachability-metadata/reflect-config.json
+++
b/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/shardingsphere-infra-reachability-metadata/reflect-config.json
@@ -327,11 +327,6 @@
"name":"org.apache.shardingsphere.sql.parser.hive.visitor.statement.type.HiveDMLStatementVisitor",
"methods":[{"name":"<init>","parameterTypes":[] }]
},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.infra.binder.engine.statement.dml.DeleteStatementBinder"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.dml.DeleteStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
{
"condition":{"typeReachable":"org.apache.shardingsphere.sql.parser.postgresql.visitor.statement.type.PostgreSQLDALStatementVisitor"},
"name":"org.apache.shardingsphere.sql.parser.postgresql.visitor.statement.type.PostgreSQLDALStatementVisitor",
@@ -377,21 +372,6 @@
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.dml.DeleteStatement",
"methods":[{"name":"<init>","parameterTypes":[] }]
},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropTableStatement"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropTableStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.dml.SelectStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSphereStatement"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateTableStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
{
"condition":{"typeReachable":"org.apache.shardingsphere.sqlfederation.compiler.function.mysql.MySQLFunctionRegister"},
"name":"org.apache.shardingsphere.sqlfederation.compiler.function.mysql.impl.MySQLBinFunction",
@@ -427,16 +407,6 @@
"name":"org.apache.shardingsphere.sql.parser.presto.visitor.statement.type.PrestoDMLStatementVisitor",
"methods":[{"name":"<init>","parameterTypes":[] }]
},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.sql.parser.statement.core.statement.dml.SelectStatement"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.dml.SelectStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
-{
-
"condition":{"typeReachable":"org.apache.shardingsphere.sql.parser.statement.core.statement.dml.DeleteStatement"},
-
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.dml.DeleteStatement",
- "methods":[{"name":"<init>","parameterTypes":[] }]
-},
{
"condition":{"typeReachable":"org.apache.shardingsphere.infra.binder.engine.statement.dml.SelectStatementBinder"},
"name":"org.apache.shardingsphere.sql.parser.statement.core.statement.dml.SelectStatement",
diff --git
a/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/databases/SQLServerTest.java
b/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/databases/SQLServerTest.java
index 21a11f13b54..44408b6388f 100644
---
a/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/databases/SQLServerTest.java
+++
b/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/databases/SQLServerTest.java
@@ -52,6 +52,11 @@ class SQLServerTest {
ContainerDatabaseDriver.killContainers();
}
+ /**
+ * TODO `shardingsphere-parser-sql-sqlserver` module does not support
`DROP TABLE IF EXISTS t_order` statements yet.
+ *
+ * @throws SQLException SQL exception
+ */
@Test
void assertShardingInLocalTransactions() throws SQLException {
HikariConfig config = new HikariConfig();
@@ -61,7 +66,6 @@ class SQLServerTest {
testShardingService = new TestShardingService(logicDataSource);
initEnvironment();
testShardingService.processSuccess();
- testShardingService.cleanEnvironment();
}
private void initEnvironment() throws SQLException {