bineea opened a new issue, #32684:
URL: https://github.com/apache/shardingsphere/issues/32684
## Question
To configure binding table groups using
org.apache.shardingsphere.sharding.api.config.ShardingRuleConfiguration#bindingTableGroups,
you can follow these steps. This configuration is necessary because custom
sharding logic (implemented via
org.apache.shardingsphere.sharding.api.sharding.standard.StandardShardingAlgorithm)
is being used. The table name format is "logictablename_year_quarter". In the
org.apache.shardingsphere.sharding.rule.TableRule#createTableDataNode logic, a
regular expression Pattern.compile("\\d+$") is used to parse the prefix,
leading to "logictablename_year" being considered as the prefix, which results
in the failure of
org.apache.shardingsphere.sharding.rule.ShardingRule#isValidActualTableName
validation.
shardingsphere:5.1.1
jdk1.8
--
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]