oulexue opened a new issue #13762:
URL: https://github.com/apache/shardingsphere/issues/13762
## Bug Report
### Which version of ShardingSphere did you use?
5.0.0
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
### Expected behavior
when i use the hint strategy in a JOIN sql,the routing is incorrect。 Here's
the code:
hintManager.addDatabaseShardingValue("voucher","0");
hintManager.addDatabaseShardingValue("account","1");
My question is multi-table union query, do I need to specify all table
policies?
### Actual behavior
it only route to the repository specified by the voucher, regardless of the
order
### Reason analyze (If you can)
I traced the code and found the following problem,

### Steps to reproduce the behavior, such as: SQL to execute, sharding rule
configuration, when exception occur etc.
SELECT u.* FROM account u left join voucher l on u.sob_id=l.sob_id WHERE
u.city=#{city,jdbcType=VARCHAR}
### 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]