You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2021/07/16 02:03:00 UTC
[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&focusedCommentId=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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org