You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (Jira)" <ji...@apache.org> on 2019/10/16 13:28:00 UTC

[jira] [Assigned] (SPARK-29364) Return intervals from date subtracts

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

Yuming Wang reassigned SPARK-29364:
-----------------------------------

    Assignee: Maxim Gekk

> 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
>
> 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