You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/05/31 14:03:54 UTC

[GitHub] [spark] wangyum opened a new pull request #24755: [SPARK-27898][SQL] Support 4 date operators(date + integer, integer + date, date - integer and date - date)

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:
users@infra.apache.org


With regards,
Apache Git Services

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