You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maxim Gekk (Jira)" <ji...@apache.org> on 2019/10/03 08:00:25 UTC
[jira] [Created] (SPARK-29342) Make casting strings to intervals
case insensitive
Maxim Gekk created SPARK-29342:
----------------------------------
Summary: 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
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