linghengqian commented on issue #32734:
URL: 
https://github.com/apache/shardingsphere/issues/32734#issuecomment-2322749382

   > 由于Main方法没有指定 
actualDataNodes(租户ID无法精确指定,需要从sql分片键中动态获取,并且每个租户id都有一个相对应的表),出现如下错误
   Exception in thread "main" java.sql.SQLException: Routed target 
'charge_receivable_sharding100' does not exist, available targets are 
'[charge_receivable]'. at 
org.apache.shardingsphere.infra.exception.core.external.sql.ShardingSphereSQLException.toSQLException(ShardingSphereSQLException.java:76)
 at 
org.apache.shardingsphere.infra.exception.dialect.SQLExceptionTransformEngine.toSQLException(SQLExceptionTransformEngine.java:54)
 at 
org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSphereStatement.executeQuery(ShardingSphereStatement.java:188)
 at com.apl.shardingjdbc.sharding.Main.main(Main.java:72)
   
   - By the way, 
`org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSphereStatement` 
may have been refactored. The `executeQuery()` method is not currently at line 
`188` of 
`org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSphereStatement`, 
and I really don't see where the logic of the assertion is.
   
   - 
![image](https://github.com/user-attachments/assets/8a4d7819-2b4b-4707-a67e-a107d467f335)
   


-- 
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]

Reply via email to