pepijnve commented on code in PR #19460: URL: https://github.com/apache/datafusion/pull/19460#discussion_r2643773196
########## datafusion/sqllogictest/test_files/datetime/arith_date_interval.slt: ########## @@ -0,0 +1,27 @@ +# date + interval → timestamp +# Add an interval to a date +# date '2001-09-28' + interval '1 hour' → 2001-09-28 01:00:00 + +query D +SELECT '2001-09-28'::date + interval '1 hour' +---- +2001-09-28 Review Comment: FWIW, both MySQL and DuckDB (the ones I could check quickly) seem to behave the same as PostgreSQL. The current DataFusion behaviour seems rather unexpected. -- 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]
