You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Sean Hsuan-Yi Chu (JIRA)" <ji...@apache.org> on 2016/03/30 02:36:25 UTC

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

Sean Hsuan-Yi Chu created CALCITE-1178:
------------------------------------------

             Summary: 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: Sean Hsuan-Yi Chu


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
(v6.3.4#6332)