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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
