wangyum opened a new pull request #24755: [SPARK-27898][SQL] Support 4 date 
operators(date + integer, integer + date, date - integer and date - date)
URL: https://github.com/apache/spark/pull/24755
 
 
   ## What changes were proposed in this pull request?
   
   This pr add 4 date operators(date + integer, integer + date, date - integer 
and date - date):
   
   Operator | Example | Result
   -- | -- | --
   \+ | date '2001-09-28' + 7 | date '2001-10-05'
   \+ | 7 + date '2001-09-28' | date '2001-10-05'
   \- | date '2001-10-01' - 7 | date '2001-09-24'
   \- | date '2001-10-01' - date '2001-09-28' | integer '3' (days)
   
   
   More details:
   https://www.postgresql.org/docs/12/functions-datetime.html
   
   ## How was this patch tested?
   
   unit tests
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to