huangconghe opened a new issue, #20642:
URL: https://github.com/apache/shardingsphere/issues/20642
version sharding-jdbc 5.1.2
my yml
rules:
sharding:
tables:
t_order_temp:
actual-data-nodes: ds$->{0..1}.t_order_temp
database-strategy:
standard:
sharding-column: user_id
sharding-algorithm-name: db-inline
t_order:
actual-data-nodes: ds$->{0..1}.t_order_$->{0..1}
database-strategy:
standard:
sharding-column: user_id
sharding-algorithm-name: db-inline
table-strategy:
standard:
sharding-column: order_id
sharding-algorithm-name: table-inline
t_order_item:
actual-data-nodes: ds$->{0..1}.t_order_item_$->{0..1}
database-strategy:
standard:
sharding-column: user_id
sharding-algorithm-name: db-inline
table-strategy:
standard:
sharding-column: order_id
sharding-algorithm-name: order-itrm-inline
sharding-algorithms:
db-inline:
type: INLINE
props:
algorithm-expression: ds$->{user_id % 2}
table-inline:
type: INLINE
props:
algorithm-expression: t_order_$->{order_id % 2}
order-itrm-inline:
type: INLINE
props:
algorithm-expression: t_order_item_$->{order_id % 2}
binding-tables:
- t_order_temp,t_order

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