You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Jess Balint (Jira)" <ji...@apache.org> on 2019/11/11 17:20:00 UTC
[jira] [Updated] (CALCITE-3489) Cast to interval is ignored
[ https://issues.apache.org/jira/browse/CALCITE-3489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jess Balint updated CALCITE-3489:
---------------------------------
Summary: Cast to interval is ignored (was: Adding day interval to timestamp returns incorrect value)
> Cast to interval is ignored
> ---------------------------
>
> Key: CALCITE-3489
> URL: https://issues.apache.org/jira/browse/CALCITE-3489
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.21.0
> Reporter: Jess Balint
> Priority: Major
> Labels: correctness, datetime
>
> when adding day to timestamp, the day interval is not converted to ms, in the generated code I see "-2208944806000L + 2L;" where 2 is the number of days. same for hour/minute/second. the return value is the original timestamp (at least when represented as a string, perhaps the two ms are added to it)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)