brancz commented on PR #7989:
URL: https://github.com/apache/arrow-rs/pull/7989#issuecomment-3116736754
Ah awesome, I simply didn't realize that int64 -> duration -> interval works.
```
> select arrow_cast(arrow_cast(arrow_cast(100000000, 'Int64'),
'Duration(Nanosecond)'), 'Interval(MonthDayNano)');
+--------------------------------------------------------------------------------------------------------------------------------+
|
arrow_cast(arrow_cast(arrow_cast(Int64(100000000),Utf8("Int64")),Utf8("Duration(Nanosecond)")),Utf8("Interval(MonthDayNano)"))
|
+--------------------------------------------------------------------------------------------------------------------------------+
| 0.100000000 secs
|
+--------------------------------------------------------------------------------------------------------------------------------+
```
Indeed it does, so everything I need already works, I was just holding it
wrong.
--
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]