silence1005 commented on issue #28230:
URL:
https://github.com/apache/shardingsphere/issues/28230#issuecomment-1689439608
I originally used the way of yaml configuration, and there was no error. But
now due to some special circumstances, I need to change it to the way of java
code. I debugged and found that it is
```java ShardingTableRuleConfiguration erp_data = new
ShardingTableRuleConfiguration("erp_data","ds.erp_data_$->{202301..202312}");```
There is a problem here, availableTargetNames normally has 12 tables, but I
use java Implemented but not. Why?
yaml配置时 是正常的:
```yaml
rules:
- !SHARDING
tables:
erp_data:
actualDataNodes: ds.erp_data_$->{202301..202312}
tableStrategy:
standard:
shardingColumn: BUSINESS_TIME
shardingAlgorithmName: alg-datetime-interval
```
--
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]