tshauck commented on issue #12190:
URL: https://github.com/apache/datafusion/issues/12190#issuecomment-2318921594

   I don't know the root cause, but I'd just add it seems to to where there's 
subtraction. E.g.
   
   ```
   > select interval '1 day' + interval '2 day' + interval '1 day' as i;
   +-------------------------------------------------------+
   | i                                                     |
   +-------------------------------------------------------+
   | 0 years 0 mons 4 days 0 hours 0 mins 0.000000000 secs |
   +-------------------------------------------------------+
   ```
   
   works, but 
   
   ```
   > select interval '1 day' - interval '2 day' - interval '1 day' as i;
   +-------------------------------------------------------+
   | i                                                     |
   +-------------------------------------------------------+
   | 0 years 0 mons 0 days 0 hours 0 mins 0.000000000 secs |
   +-------------------------------------------------------+
   1 row(s) fetched. 
   Elapsed 0.007 seconds.
   ```
   
   doesn't. I wasn't able to find a purely add case that doesn't produce the 
correct answer (though doesn't necessarily rule it out).


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