rtj599 opened a new issue #9336: URL: https://github.com/apache/shardingsphere/issues/9336
## Bug Report **For English only**, other languages will not accept. Before report a bug, make sure you have: - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues). - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview). Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot reproduce it on current information, we will **close it**. Please answer these questions before submitting your issue. Thanks! ### Which version of ShardingSphere did you use? 4.1.1 ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? ShardingSphere-JDBC ### Expected behavior project works ### Actual behavior SQLException:S0022 Unknown Column Id xxx ### Reason analyze (If you can) error occurs in com.mysql.cj.jdbc.result.ResultSetImpl#findColumn(String) which is called by org.apache.shardingsphere.sql.parser.binder.metadata.column.TableMetaDataLoader#load(java.sql.Connection,String,String) ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc. There are two tables in the same db, we assume that db name(schema name)was 'shard',one table name was 'table_1', another table name was 'shard.table_1', table 'table_1' had column 'table_1_column' while table 'shard.table_1' didn't have . when table 'shard.table_1' was scanned, after executing generated empty sql 'SELECT * FROM `shard.table_1` WHERE 1<>1' but colum name 'table_1_column' was in the result set of colums metadata, then this exception occured. ### 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. For queries about this service, please contact Infrastructure at: [email protected]
