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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to