Yuming Wang created SPARK-27898:
-----------------------------------

             Summary: Support 4 date operators(date + integer, integer + date, 
date - integer and date - date)
                 Key: SPARK-27898
                 URL: https://issues.apache.org/jira/browse/SPARK-27898
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: Yuming Wang


Support 4 date operators(date + integer, integer + date, date - integer and 
date - date):
|Operator|Example|Result|
|+|date '2001-09-28' + integer '7'|date '2001-10-05'|
|-|date '2001-10-01' - integer '7'|date '2001-09-24'|
|-|date '2001-10-01' - date '2001-09-28'|integer '3' (days)|

[https://www.postgresql.org/docs/12/functions-datetime.html]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to