Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-27790 Support ANSI SQL INTERVAL types
  3. SPARK-35737

Parse day-time interval literals to tightest types

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.2.0
    • SQL
    • None

    Description

      Modify AstBuilder.visitInterval to parse day-time interval literals to tightest types. For example:
      INTERVAL '10 20:30' DAY TO MINUTE should be parsed as DayTimeIntervalType(DAY, MINUTE) but not as DayTimeIntervalType(DAY, SECOND).

      Attachments

        Issue Links

          Activity

            People

              sarutak Kousuke Saruta
              maxgekk Max Gekk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: