junxchen opened a new issue #11420:
URL: https://github.com/apache/shardingsphere/issues/11420
Factory method 'shardingDataSource' threw exception; nested exception is
java.lang.NullPointerException
If me tables strategy has been defined with range algorithm, it throws the
above error.
If I include precise with range, then only precise is picked up.
What is wrong here?
spring.shardingsphere.sharding.tables.xx.actual-data-nodes=ds0.xxxx$->{1..12}
spring.shardingsphere.sharding.tables.xx.table-strategy.standard.sharding-column=xx
spring.shardingsphere.sharding.tables.xx.table-strategy.standard.range-algorithm-class-name=com.xx.xx.DateShardingAlgorithm
spring.shardingsphere.sharding.tables.xx.key-generator.column=xx
spring.shardingsphere.sharding.tables.xx.key-generator.type=SNOWFLAKE
I do not need Precise, just Range would do.
--
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]