You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/10/30 09:15:05 UTC
[GitHub] [shardingsphere] wuxingye opened a new issue #7980: can not hit specific table by hash
wuxingye opened a new issue #7980:
URL: https://github.com/apache/shardingsphere/issues/7980
## 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
i have two table topic_0, topic_1, when i search by id, it search the two table
### Actual behavior
just search specific table by hash which is hit
### 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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] avalon5666 commented on issue #7980: can not hit specific table by hash
Posted by GitBox <gi...@apache.org>.
avalon5666 commented on issue #7980:
URL: https://github.com/apache/shardingsphere/issues/7980#issuecomment-719468087
It will route to all table without sharding key in query sql.
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [shardingsphere] wuxingye edited a comment on issue #7980: can not hit specific table by hash
Posted by GitBox <gi...@apache.org>.
wuxingye edited a comment on issue #7980:
URL: https://github.com/apache/shardingsphere/issues/7980#issuecomment-719461689
```
spring:
shardingsphere:
sharding:
tables:
topic:
actual-data-nodes: live-content.topic_$->{0..1}
table-strategy:
inline:
sharding-column: user_id
algorithm-expression: topic_$->{user_id % 2}
comment:
actual-data-nodes: live-content.comment_$->{0..7}
table-strategy:
inline:
sharding-column: topic_id
algorithm-expression: comment_$->{topic_id % 8}
game:
actual-data-nodes: live-content.game
game_ext:
actual-data-nodes: live-content.game_ext
live:
actual-data-nodes: live-content.live
slideshow:
actual-data-nodes: live-content.slideshow
star:
actual-data-nodes: live-content.star
tag:
actual-data-nodes: live-content.tag
team:
actual-data-nodes: live-content.team
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [shardingsphere] wuxingye commented on issue #7980: can not hit specific table by hash
Posted by GitBox <gi...@apache.org>.
wuxingye commented on issue #7980:
URL: https://github.com/apache/shardingsphere/issues/7980#issuecomment-719461689
spring:
shardingsphere:
sharding:
tables:
topic:
actual-data-nodes: live-content.topic_$->{0..1}
table-strategy:
inline:
sharding-column: user_id
algorithm-expression: topic_$->{user_id % 2}
comment:
actual-data-nodes: live-content.comment_$->{0..7}
table-strategy:
inline:
sharding-column: topic_id
algorithm-expression: comment_$->{topic_id % 8}
game:
actual-data-nodes: live-content.game
game_ext:
actual-data-nodes: live-content.game_ext
live:
actual-data-nodes: live-content.live
slideshow:
actual-data-nodes: live-content.slideshow
star:
actual-data-nodes: live-content.star
tag:
actual-data-nodes: live-content.tag
team:
actual-data-nodes: live-content.team
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [shardingsphere] avalon5666 commented on issue #7980: can not hit specific table by hash
Posted by GitBox <gi...@apache.org>.
avalon5666 commented on issue #7980:
URL: https://github.com/apache/shardingsphere/issues/7980#issuecomment-719451658
Pls reference sharding rule documents.
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [shardingsphere] wuxingye edited a comment on issue #7980: can not hit specific table by hash
Posted by GitBox <gi...@apache.org>.
wuxingye edited a comment on issue #7980:
URL: https://github.com/apache/shardingsphere/issues/7980#issuecomment-719461689
`spring:
shardingsphere:
sharding:
tables:
topic:
actual-data-nodes: live-content.topic_$->{0..1}
table-strategy:
inline:
sharding-column: user_id
algorithm-expression: topic_$->{user_id % 2}
comment:
actual-data-nodes: live-content.comment_$->{0..7}
table-strategy:
inline:
sharding-column: topic_id
algorithm-expression: comment_$->{topic_id % 8}
game:
actual-data-nodes: live-content.game
game_ext:
actual-data-nodes: live-content.game_ext
live:
actual-data-nodes: live-content.live
slideshow:
actual-data-nodes: live-content.slideshow
star:
actual-data-nodes: live-content.star
tag:
actual-data-nodes: live-content.tag
team:
actual-data-nodes: live-content.team
`
----------------------------------------------------------------
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:
users@infra.apache.org