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

Improve the implementation for DateType +/- DayTimeIntervalType(DAY)

    XMLWordPrintableJSON

Details

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

    Description

      At now, `DateType +/- DayTimeIntervalType()` will convert the DateType to TimestampType, then TimeAdd. When interval type is  DayTimeIntervalType(DAY), it can use DateAdd instead of TimeAdd.

      Attachments

        Activity

          People

            xiaopenglei PengLei
            xiaopenglei PengLei
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: