You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Danny Chan (Jira)" <ji...@apache.org> on 2019/09/23 06:56:00 UTC

[jira] [Resolved] (CALCITE-1178) Allow SqlBetweenOperator to compare DATE and TIMESTAMP

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

Danny Chan resolved CALCITE-1178.
---------------------------------
    Fix Version/s: 1.22.0
       Resolution: Fixed

Fixed in [64068d6|https://github.com/apache/calcite/commit/64068d69ceee8450e56c4705d26b7a2f944909b9] !

> Allow SqlBetweenOperator to compare DATE and TIMESTAMP
> ------------------------------------------------------
>
>                 Key: CALCITE-1178
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1178
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: Sean Hsuan-Yi Chu
>            Assignee: Danny Chan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.22.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> An expression such as 
> {code}
> date '1999-03-02' between date '1999-03-01' and timestamp '1999-03-03 00:00:00.0'
> {code}
> will incur SqlValidatorException since SqlBetweenOperator does not allow DATE and TIMESTAMP comparison. In terms of usability, it would be great if this type of comparison is allowed in Calcite.  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)