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

Reply via email to