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

Inconsistent behavior when casting interval literals to integer

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.16.0
    • Fix Version/s: 1.17.0
    • Component/s: core
    • Labels:
      None

      Description

      Ensure casting intervals to integers always returns the result in terms
      of the trailing unit.

      Currently we have the following behavior:

      • Casting a standalone day interval literal returns results in terms of the field.
      • Casting a standalone year interval literal returned results in terms of months.
      • Casting a day interval expression returned results in terms of milliseconds.
      • Casting a year interval expression returned results in terms of months.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julianhyde Julian Hyde
                Reporter:
                jduong James Duong
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: