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

Parse interval literals as ANSI intervals

    XMLWordPrintableJSON

Details

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

    Description

      If the SQL config spark.sql.legacy.interval.enabled is disabled (by default), parse interval literals as DayTimeIntervalType if the interval literal doesn't have the month field or YearMonthIntervalType of it doesn't have the day-time fields. In the case of mixed fields, throw an exception.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: