simonvandel opened a new issue, #11097:
URL: https://github.com/apache/datafusion/issues/11097
### Is your feature request related to a problem or challenge?
I would like to be able to cast a duration to a different timeunit.
Current behavior:
```
DataFusion CLI v39.0.0
> SELECT arrow_cast(1, 'Duration(Millisecond)');
+----------------------------------------------------+
| arrow_cast(Int64(1),Utf8("Duration(Millisecond)")) |
+----------------------------------------------------+
| 0 days 0 hours 0 mins 0.001 secs |
+----------------------------------------------------+
1 row(s) fetched.
Elapsed 0.065 seconds.
> SELECT arrow_cast(arrow_cast(1, 'Duration(Millisecond)'),
'Duration(Second)');
This feature is not implemented: Unsupported CAST from Duration(Millisecond)
to Duration(Second)
```
### Describe the solution you'd like
The cast works
### 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]