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

Change quoted interval literal (interval constructor) to be converted to ANSI interval types

Details

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

    Description

      The tnit-to-unit interval literals and the unit list interval literals are converted to ANSI interval types but quoted interval literals are still converted to CalendarIntervalType.

      -- Unit list interval literals
      spark-sql> select interval 1 year 2 month;
      1-2
      -- Quoted interval literals
      spark-sql> select interval '1 year 2 month';
      1 years 2 months
      

      Attachments

        Activity

          apachespark Apache Spark added a comment -

          User 'sarutak' has created a pull request for this issue:
          https://github.com/apache/spark/pull/33380

          apachespark Apache Spark added a comment - User 'sarutak' has created a pull request for this issue: https://github.com/apache/spark/pull/33380
          apachespark Apache Spark added a comment -

          User 'sarutak' has created a pull request for this issue:
          https://github.com/apache/spark/pull/33380

          apachespark Apache Spark added a comment - User 'sarutak' has created a pull request for this issue: https://github.com/apache/spark/pull/33380
          maxgekk Max Gekk added a comment -

          Issue resolved by pull request 33380
          https://github.com/apache/spark/pull/33380

          maxgekk Max Gekk added a comment - Issue resolved by pull request 33380 https://github.com/apache/spark/pull/33380

          People

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

            Dates

              Created:
              Updated:
              Resolved: