comphead commented on code in PR #6312: URL: https://github.com/apache/arrow-datafusion/pull/6312#discussion_r1189112986
########## datafusion/core/tests/sqllogictests/test_files/interval.slt: ########## @@ -186,6 +186,30 @@ select interval '1 year' - '1 month' - '1 day' - '1 hour' - '1 minute' - '1 seco ---- 0 years 11 mons -1 days -1 hours -1 mins -1.001001001 secs +# Interval with string literal negation and leading field +query ? +select -interval '5' - '1' - '2' year; +---- +0 years -24 mons 0 days 0 hours 0 mins 0.000000000 secs Review Comment: ``` select extract( year from interval '5' year); ``` This works in PG and returns 5 years But fails in DF, I'll create another ticket on this. -- 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]
