You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kousuke Saruta (Jira)" <ji...@apache.org> on 2021/07/16 01:54:00 UTC

[jira] [Created] (SPARK-36170) Change quoted interval literal (interval constructor) to be converted to ANSI interval types

Kousuke Saruta created SPARK-36170:
--------------------------------------

             Summary: Change quoted interval literal (interval constructor) to be converted to ANSI interval types
                 Key: SPARK-36170
                 URL: https://issues.apache.org/jira/browse/SPARK-36170
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 3.2.0, 3.3.0
            Reporter: Kousuke Saruta
            Assignee: Kousuke Saruta


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.

{code}
-- 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
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org