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

Inconsistent behavior when casting interval literals to integer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.16.0
    • 1.17.0
    • core
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: