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

Converting datetime_plus to timestampadd should be done recursively

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      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

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

              Dates

              • Created:
                Updated: