ncc0706 commented on issue #31587:
URL:
https://github.com/apache/shardingsphere/issues/31587#issuecomment-2149394520
```yaml
rules:
- !SINGLE
tables:
# MySQL style
# - master.tb_sample # Load specified single table
- "*.*" # Load all single tables
# defaultDataSource: master
- !SHARDING
tables:
tb_sample:
actualDataNodes: master.tb_sample_$->{2024..2200}0$->{1..9}
tableStrategy:
standard:
shardingColumn: date1
shardingAlgorithmName: time-sharding-algorithm
bindingTables:
- tb_sample
shardingAlgorithms:
time-sharding-algorithm:
type: CLASS_BASED
props:
strategy: STANDARD
algorithmClassName: io.arukas.algorithm.TimeShardingAlgorithm
props:
sql-show: true
```
--
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]