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

   ### Describe the bug
   
   ```sql
   > select '2024-03-04'::date::timestamp + '1970-01-01T05:12:34'::timestamp;
   Error during planning: Cannot get result type for temporal operation 
Timestamp(ns) + Timestamp(ns): Invalid argument error: Invalid timestamp 
arithmetic operation: Timestamp(ns) + Timestamp(ns)
   
   > select '2024-03-04'::date::timestamp - '1970-01-01T05:12:34'::timestamp;
   +--------------------------------------------------+
   | Utf8("2024-03-04") - Utf8("1970-01-01T05:12:34") |
   +--------------------------------------------------+
   | 19785 days 18 hours 47 mins 26.000000000 secs    |
   +--------------------------------------------------+
   ```
   
   I suspect this is an arrow-rs issue but needs investigation
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   timestamp + timestamp should work as expected.
   
   ### 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