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

Parse year-month 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 year-month interval literals to tightest types. For example:
      INTERVAL '10' YEAR should be parsed as YearMonthIntervalType(YEAR, YEAR) but not as YearMonthIntervalType(YEAR, MONTH).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: