Omega359 opened a new issue, #19038:
URL: https://github.com/apache/datafusion/issues/19038
### Is your feature request related to a problem or challenge?
```sql
select '2024-02-23'::date::timestamp +
arrow_cast(arrow_cast('03:12:44'::time, 'Time32(Second)')::int,
'Duration(Second)');
Error during planning: Cannot coerce arithmetic expression
Timestamp(Nanosecond, None) + Duration(Second) to valid types
```
The following works however it's less than ideal:
```sql
> select '2024-02-23'::date::timestamp +
arrow_cast(arrow_cast('03:12:44'::time, 'Time32(Second)')::int::bigint *
1000000000, 'Duration(Nanosecond)');
+---------------------------------------------------------------------------------------------------------------------------------------+
| Utf8("2024-02-23") +
arrow_cast(arrow_cast(Utf8("03:12:44"),Utf8("Time32(Second)")) *
Int64(1000000000),Utf8("Duration(Nanosecond)")) |
+---------------------------------------------------------------------------------------------------------------------------------------+
| 2024-02-23T03:12:44
|
+---------------------------------------------------------------------------------------------------------------------------------------+
1 row(s) fetched.
```
### Describe the solution you'd like
_No response_
### Describe alternatives you've considered
_No response_
### 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]