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

Wenchen Fan updated SPARK-29364:
--------------------------------
        Parent: SPARK-31415
    Issue Type: Sub-task  (was: Improvement)

> Return intervals from date subtracts
> ------------------------------------
>
>                 Key: SPARK-29364
>                 URL: https://issues.apache.org/jira/browse/SPARK-29364
>             Project: Spark
>          Issue Type: Sub-task
>          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