Tanner Clary created CALCITE-6703:
-------------------------------------

             Summary: RelJson cannot handle timestamps prior to 1970-01-25 
20:31:23.648
                 Key: CALCITE-6703
                 URL: https://issues.apache.org/jira/browse/CALCITE-6703
             Project: Calcite
          Issue Type: Bug
            Reporter: Tanner Clary
            Assignee: Tanner Clary


Because the millisSinceEpoch of 1970-01-25 20:31:23.647 and prior can be stored 
in an Integer, it results in some failed casts to Long (because we assume all  
{{TIMESTAMP}} and {{TIMESTAMP WITH LOCAL TIME ZONE}} will be represented using 
Long. The fix should be simple enough, as we can check the type and if it is a 
TIMESTAMP or TIMESTAMP WITH LOCAL TIME ZONE and the value is an Integer, we can 
use {{.toLongValue()}} instead of casting to Long directly.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to