Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1178

Allow SqlBetweenOperator to compare DATE and TIMESTAMP

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.22.0
    • Component/s: core

      Description

      An expression such as

      date '1999-03-02' between date '1999-03-01' and timestamp '1999-03-03 00:00:00.0'
      

      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.

        Attachments

          Activity

            People

            • Assignee:
              danny0405 Danny Chen
              Reporter:
              seanhychu Sean Hsuan-Yi Chu

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m

                  Issue deployment