Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-37513

date +/- interval with only day-time fields returns different data type between Spark3.2 and Spark3.1

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.2.1, 3.3.0
    • SQL
    • None

    Description

      select date '2011-11-11' + interval 12 hours;
      

      Previously returned the date type, now it returns the timestamp type.

      Attachments

        Activity

          People

            beliefer Jiaan Geng
            beliefer Jiaan Geng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: