alamb commented on issue #6876:
URL: 
https://github.com/apache/arrow-datafusion/issues/6876#issuecomment-1628907091

   https://spark.apache.org/docs/2.3.0/api/sql/#date_add
   
   It appears that date_add should take the number of days as the second 
argument
   
   To model this in DataFusion you could probably do a rewrite like this
   
   ```
   date_add(x, y)
   ```
   
   ```
   cast(x as date) + cast(y as IntervalMonthDayNano)
   ``
   
   You could also add a new built in function (which would probably make the 
type casting logic more explicit)
   
   


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

Reply via email to