strongduanmu opened a new issue, #26750: URL: https://github.com/apache/shardingsphere/issues/26750
## Bug Report ### Which version of ShardingSphere did you use? [437c447](https://github.com/apache/shardingsphere/commit/437c447139e0367b043eeb7846ad58e2deb3f60e) ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? ShardingSphere-Proxy ### Expected behavior Throw corrent exception instead of NPE. ### Actual behavior  ### Reason analyze (If you can) ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc. Config like following: ```yaml databaseName: sharding_db dataSources: ds_0: url: jdbc:mysql://127.0.0.1:3306/demo_ds_0?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true username: root password: 123456 connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 maxPoolSize: 50 minPoolSize: 1 ds_1: url: jdbc:mysql://127.0.0.1:3306/demo_ds_1?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true username: root password: 123456 connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 maxPoolSize: 50 minPoolSize: 1 rules: - !SHARDING bindingTables: - bmsql_warehouse, bmsql_customer - bmsql_stock, bmsql_district, bmsql_order_line defaultDatabaseStrategy: none: defaultTableStrategy: none: keyGenerators: snowflake: type: SNOWFLAKE autoTables: bmsql_config: actualDataSources: ds_0 bmsql_warehouse: actualDataSources: ds_${0..0} shardingStrategy: standard: shardingColumn: w_id shardingAlgorithmName: mod_1 bmsql_district: actualDataSources: ds_${0..0} shardingStrategy: standard: shardingColumn: d_w_id shardingAlgorithmName: mod_1 bmsql_customer: actualDataSources: ds_${0..0} shardingStrategy: standard: shardingColumn: c_w_id shardingAlgorithmName: mod_1 bmsql_item: actualDataSources: ds_${0..0} shardingStrategy: standard: shardingColumn: i_id shardingAlgorithmName: mod_1 bmsql_history: actualDataSources: ds_${0..0} shardingStrategy: standard: shardingColumn: h_w_id shardingAlgorithmName: mod_1 bmsql_oorder: actualDataSources: ds_${0..0} shardingStrategy: standard: shardingColumn: o_w_id shardingAlgorithmName: mod_1 bmsql_stock: actualDataSources: ds_${0..0} shardingStrategy: standard: shardingColumn: s_w_id shardingAlgorithmName: mod_1 bmsql_new_order: actualDataSources: ds_${0..0} shardingStrategy: standard: shardingColumn: no_w_id shardingAlgorithmName: mod_1 bmsql_order_line: actualDataSources: ds_${0..0} shardingStrategy: standard: shardingColumn: ol_w_id shardingAlgorithmName: mod_1 shardingAlgorithms: mod_1: type: MOD props: sharding-count: 1 ``` ### Example codes for reproduce this issue (such as a github link). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
