brancz commented on issue #7988: URL: https://github.com/apache/arrow-rs/issues/7988#issuecomment-3116741507
Commented on the PR as well, but I didn't realize that this already works, just not directly from int64 to interval, it first has to go through a duration nanoseconds. ``` > 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 | +--------------------------------------------------------------------------------------------------------------------------------+ ``` -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org