Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-3104 Enable Phoenix test cases with Calcite-Phoenix
  3. PHOENIX-3440

Calcite has specific requirements for date and datetime operations

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      This popped up just today in the Calcite mailing list, and I noticed numerous failures in phoenix test cases.

      Just a few of many:

      testDateSubtractExpressionMetaData1
      testDateSubtractExpressionMetaData2
      testDateSubtractExpressionMetaData3
      testDateAdditionExpressionMetaData1
      testDateAdditionExpressionMetaData2
      testTwoDateSubtractExpressionMetaData

      These tests fail due to the difference in support.

      Summary of acceptable operations from the various exception codes:

      Supported form(s): 
      '<NUMERIC> - <NUMERIC>'
      '<NUMERIC> + <NUMERIC>'
      '<DATETIME_INTERVAL> - <DATETIME_INTERVAL>'
      '<DATETIME_INTERVAL> + <DATETIME_INTERVAL>'
      '<DATETIME> - <DATETIME_INTERVAL>'
      '<DATETIME> + <DATETIME_INTERVAL>'
      

      Some of the incompatibilities thrown:

      '<NULL> - <DATE>'
      '<NULL> + <DATE>'
      <INTEGER> + <DATE>
      <DATE> - <DECIMAL(2, 1)>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lomoree Eric Lomore
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: