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

Converting datetime_plus to timestampadd should be done recursively

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • core
    • None

    Description

      The method in RexUtil convertDatetimePlusToTimestampAdd() should handle the case where the timestamp operand is another call to Datetime_plus. (eg SELECT <date_column> - interval '1' hour - interval '1' hour)

      This can be impemented by having the datetime operand accept the same visitor.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jduong James Duong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: