You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2019/10/07 16:34:00 UTC
[jira] [Assigned] (SPARK-29342) Make casting strings to intervals
case insensitive
[ https://issues.apache.org/jira/browse/SPARK-29342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun reassigned SPARK-29342:
-------------------------------------
Assignee: Maxim Gekk
> Make casting strings to intervals case insensitive
> ---------------------------------------------------
>
> Key: SPARK-29342
> URL: https://issues.apache.org/jira/browse/SPARK-29342
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.0.0
> Reporter: Maxim Gekk
> Assignee: Maxim Gekk
> Priority: Minor
>
> PostgreSQL is not sensitive to case of interval string values:
> {code}
> maxim=# select cast('10 Days' as INTERVAL);
> interval
> ----------
> 10 days
> (1 row)
> {code}
> but Spark is not tolerant to case:
> {code}
> spark-sql> select cast('INTERVAL 10 DAYS' as INTERVAL);
> NULL
> spark-sql> select cast('interval 10 days' as INTERVAL);
> interval 1 weeks 3 days
> {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