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/05 18:19:00 UTC
[jira] [Created] (SPARK-29364) Return intervals from date subtracts
Maxim Gekk created SPARK-29364:
----------------------------------
Summary: Return intervals from date subtracts
Key: SPARK-29364
URL: https://issues.apache.org/jira/browse/SPARK-29364
Project: Spark
Issue Type: Improvement
Components: SQL
Affects Versions: 2.4.4
Reporter: Maxim Gekk
According to the SQL standard, date1 - date2 is an interval. See http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt at +_4.5.3 Operations involving datetimes and intervals_+. The ticket aims to modify the DateDiff expression to produce another expression of the INTERVAL type When wspark.sql.ansi.enabled` is set to *true* and `spark.sql.dialect` is *Spark*.
--
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