Yule-Momoko opened a new issue #11106:
URL: https://github.com/apache/shardingsphere/issues/11106


   ## 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?
   5.0.0-beta
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-JDBC
   ### Expected behavior
   #My configuration:
   
   spring.shardingsphere.datasource.names=ds1,ds2
   
spring.shardingsphere.datasource.common.type=com.alibaba.druid.pool.DruidDataSource
   
spring.shardingsphere.datasource.common.driver-class-name=com.mysql.cj.jdbc.Driver
   
   
   
spring.shardingsphere.datasource.ds1.type=com.alibaba.druid.pool.DruidDataSource
   
spring.shardingsphere.datasource.ds1.driver‐class‐name=com.mysql.cj.jdbc.Driver
   
spring.shardingsphere.datasource.ds1.url=jdbc:mysql://127.0.0.1:3306/MY_DB1?serverTimezone=Asia/Shanghai&autoReconnect=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&rewriteBatchedStatements=true&allowMultiQueries=true
   spring.shardingsphere.datasource.ds1.username=admin
   spring.shardingsphere.datasource.ds1.password=123456
   
   
spring.shardingsphere.datasource.ds2.type=com.alibaba.druid.pool.DruidDataSource
   
spring.shardingsphere.datasource.ds2.driver‐class‐name=com.mysql.cj.jdbc.Driver
   
spring.shardingsphere.datasource.ds2.url=jdbc:mysql://127.0.0.1:3306/MY_DB2?serverTimezone=Asia/Shanghai&autoReconnect=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&rewriteBatchedStatements=true&allowMultiQueries=true
   spring.shardingsphere.datasource.ds2.username=admin
   spring.shardingsphere.datasource.ds2.password=123456
   
   
spring.shardingsphere.rules.sharding.tables.t_order.actual-data-nodes=ds$->{1..2}.t_order
   
spring.shardingsphere.rules.sharding.tables.t_item.actual-data-nodes=ds$->{1..2}.t_item
   
   
   
spring.shardingsphere.rules.sharding.tables.t_order.database-strategy.hint.sharding-algorithm-name=hint-test
   
spring.shardingsphere.rules.sharding.tables.t_item.database-strategy.hint.sharding-algorithm-name=hint-test
   
   
   
spring.shardingsphere.rules.sharding.sharding-algorithms.hint-test.type=CLASS_BASED
   
spring.shardingsphere.rules.sharding.sharding-algorithms.hint-test.props.strategy=HINT
   
spring.shardingsphere.rules.sharding.sharding-algorithms.hint-test.props.algorithmClassName=com.my.shardingjdbc.DatabaseHintShardingKeyAlgorithm
   
   spring.shardingsphere.props.sql-show = true
   
   
   
   
   #My Sql:
   select * from t_order t1 left join t_item t2 on t1.id=t2.id
   ### Actual behavior
   
![image](https://user-images.githubusercontent.com/67772051/124227715-b3be1900-db3d-11eb-87cf-d862dc80e43d.png)
   
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   
   ### 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]


Reply via email to