You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by GitBox <gi...@apache.org> on 2021/08/24 11:56:44 UTC

[GitHub] [phoenix] richardantal commented on pull request #1289: PHOENIX-6486 Phoenix uses inconsistent chronologies internally, break…

richardantal commented on pull request #1289:
URL: https://github.com/apache/phoenix/pull/1289#issuecomment-904573038


   We had a private discussion about it with Istvan.
   Thank you @stoty for the recap.
   
   Added a test with java.time API to visualise  some scenario.
   
   Small correction about the current behaviour:
   
   - upserting java.sql.Timestamp.valueOf(java.time.LocalDateTme.of(10,10,10,10,10,10)) will be read back as rs.getString() == "10-10-10 10:10:10"
   - dayofmonth will return 10 
   
   but
   
   - upserting new java.sql.Timestamp(java.time.Instant.parse("0010-10-10T10:10:10.111Z").toEpochMilli()) will be read back as rs.getString() == "10-10-12 10:10:10"
   - dayofmonth will return 12
   


-- 
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: issues-unsubscribe@phoenix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org