[ 
https://issues.apache.org/jira/browse/SPARK-29364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yuming Wang resolved SPARK-29364.
---------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

> 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
>            Assignee: Maxim Gekk
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to