chenjipdc opened a new issue #8470:
URL: https://github.com/apache/shardingsphere/issues/8470


   ## Bug Report
   
   **Exception**
   Caused by: java.time.format.DateTimeParseException: Text '2020-03-15 
09:51:17.681' could not be parsed, unparsed text found at index 19
        at 
java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:1952)
        at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1851)
        at java.time.LocalDateTime.parse(LocalDateTime.java:492)
   
   
   **Location**
   
org.apache.shardingsphere.sharding.algorithm.sharding.datetime.AutoIntervalShardingAlgorithm#parseDate
   
   **Reason**
   The parameter type of this method may be java.sql.Timestamp, directly 
calling the toString method will get milliseconds (like 2020-12-01 
01:01:55.601), LocalDateTime uses yyyy-MM-dd HH:mm:ss, this Exceptions will be 
thrown.
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to