You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Max Gekk (Jira)" <ji...@apache.org> on 2022/03/02 08:55:00 UTC

[jira] [Created] (SPARK-38389) Add the `DATEDIFF` and `DATE_DIFF` aliases for `TIMESTAMPDIFF()`

Max Gekk created SPARK-38389:
--------------------------------

             Summary: Add the `DATEDIFF` and `DATE_DIFF` aliases for `TIMESTAMPDIFF()`
                 Key: SPARK-38389
                 URL: https://issues.apache.org/jira/browse/SPARK-38389
             Project: Spark
          Issue Type: New Feature
          Components: SQL
    Affects Versions: 3.3.0
            Reporter: Max Gekk
            Assignee: Max Gekk
             Fix For: 3.3.0


Introduce the dateadd() function, which takes three arguments: unit, number of units and datetime expression, i.e.,
{code:sql}
dateadd(unit, number_of_units, expr)
{code}
The function can be an alias to timestampadd().



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org