[ 
https://issues.apache.org/jira/browse/CALCITE-6703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stamatis Zampetakis resolved CALCITE-6703.
------------------------------------------
    Fix Version/s: 1.39.0
       Resolution: Fixed

Fixed in 
[72e689e22c288789c322e498f0eacd45bebb375a|https://github.com/apache/calcite/commit/72e689e22c288789c322e498f0eacd45bebb375a].

> 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
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.39.0
>
>
> 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