programmerhes opened a new issue #12236:
URL: https://github.com/apache/shardingsphere/issues/12236
When I try to use a string to receive the
date,preciseShardingValue.getValue() return -1
sql:select * from order_main where createtime = '2021-04-01 00:00:00'
```
public class USerTablePreciseShardingAlgorithm implements
PreciseShardingAlgorithm<String> {
@Override
public String doSharding(Collection<String> availableTargetNames,
PreciseShardingValue<String> preciseShardingValue) {
System.out.println(preciseShardingValue.getValue()); //Expected
value is "2021-04-01 00:00:00" but -1
System.out.println(preciseShardingValue.getLogicTableName());
return "order_main_202104";
}
```
version:3.1.0
Thanks for answering
--
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]