[jira] [Commented] (SPARK-36170) Change quoted interval literal (interval constructor) to be converted to ANSI interval types
[ https://issues.apache.org/jira/browse/SPARK-36170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17381659#comment-17381659 ] Apache Spark commented on SPARK-36170: -- User 'sarutak' has created a pull request for this issue: https://github.com/apache/spark/pull/33380 > 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 >Priority: Major > > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Commented] (SPARK-36170) Change quoted interval literal (interval constructor) to be converted to ANSI interval types
[ https://issues.apache.org/jira/browse/SPARK-36170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17381658#comment-17381658 ] Apache Spark commented on SPARK-36170: -- User 'sarutak' has created a pull request for this issue: https://github.com/apache/spark/pull/33380 > 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 >Priority: Major > > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org