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

Make use of DATETIME_PLUS operator in calcite for arithmetics on DATE and TIME

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Syntax of arithmetics on DATE or TIME type are different in calcite but in phoenix we can use + and - for the same. For example

      date '2014-02-11' + interval '2' day
      

      So any arithmetics on date or time should replace with it. We need to add it as compatibility change so added calcite-compat-change flag to it.

      Wdyt jamestaylor julianhyde maryannxue?
      FYI ankit@apache.org.

      Attachments

        Activity

          People

            rajeshbabu Rajeshbabu Chintaguntla
            rajeshbabu Rajeshbabu Chintaguntla
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: