-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions between rule assignments #24420
Comments
You can use groovy expression configuration in yaml, and groovy expression also supports Java syntax. |
Thanks for the advice @FlyingZC, I'm getting an error when I write it like below, where did I go wrong? rules:
- !SHARDING
tables:
sample:
actualDataNodes: db$->{0..3}.sample_$->{[0,10,20,30]..[9,19,29,39]}
tableStrategy:
complex:
shardingColumns: id1, id2
shardingAlgorithmName: contentTableShardingAlgorithm
|
This seems to be a groovy expression syntax error, you can first verify your expression in the groovy console of idea. |
|
Hello!
I want to utilize shardingsphere to query the existing sharding tables at once.
The current database and table configuration is as follows:
In this situation, how should I write the rule specification in YAML?
Also, the logic that determines the database number, table number is also a situation that requires Java logic. In this case, how can I express it in YAML?
Any help would be very helpful in setting this up, thanks!
The text was updated successfully, but these errors were encountered: