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

Dongjoon Hyun resolved SPARK-27898.
-----------------------------------
       Resolution: Fixed
         Assignee: Yuming Wang
    Fix Version/s: 3.0.0

This is resolved via https://github.com/apache/spark/pull/24755

> 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
>            Assignee: Yuming Wang
>            Priority: Major
>             Fix For: 3.0.0
>
>
> 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