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

Add common class/trait for ANSI interval types

    XMLWordPrintableJSON

Details

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

    Description

      Currently, there are many places where we check both YearMonthIntervalType and DayTimeIntervalType in the same match case, like

      case _: YearMonthIntervalType | _: DayTimeIntervalType => false
      

      Need to add new trait or abstract class that should be extended by YearMonthIntervalType and DayTimeIntervalType. So, we can transform the code above to:

      case _: AnsiIntervalType => false
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: