andygrove opened a new issue, #18012:
URL: https://github.com/apache/datafusion/issues/18012

   ### Describe the bug
   
   ## Spark
   
   ```
   scala> spark.sql("SELECT date_add(cast('2016-07-30' as date), 100000)").show
   +------------------------------------------+
   |date_add(CAST(2016-07-30 AS DATE), 100000)|
   +------------------------------------------+
   |                                2290-05-15|
   +------------------------------------------+
   ```
   
   ## datafusion-spark
   
   ```
   query D
   SELECT date_sub('2016-07-30'::date, 100000::int);
   ----
   2290-05-15
   ```
   
   ```
   1. query result mismatch:
   [SQL] SELECT date_sub('2016-07-30'::date, 100000::int);
   [Diff] (-expected|+actual)
   -   2290-05-15
   +   1742-10-15
   ```
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _No response_


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to