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/10/07 17:54:22 UTC

[GitHub] [spark] cloud-fan commented on issue #26034: [SPARK-29364][SQL] Return an interval from date subtract according to SQL standard

cloud-fan commented on issue #26034: [SPARK-29364][SQL] Return an interval from date subtract according to SQL standard
URL: https://github.com/apache/spark/pull/26034#issuecomment-539129965
 
 
   I looked into this problem a while ago. IIRC some DBs do not support `dateValue - dateValue`, they can only subtract date values via functions like `datediff`.
   
   The SQL standard defines the behavior of `dateValue - dateValue`, but not a specific function. It seems that the common behavior of the `datediff` function is to return a int, shall we keep it and only change `dateValue - dateValue`?

----------------------------------------------------------------
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