[ https://issues.apache.org/jira/browse/SPARK-29342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun resolved SPARK-29342. ----------------------------------- Fix Version/s: 3.0.0 Resolution: Fixed Issue resolved by pull request 26010 [https://github.com/apache/spark/pull/26010] > 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 > Fix For: 3.0.0 > > > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org