brancz opened a new pull request, #7989: URL: https://github.com/apache/arrow-rs/pull/7989
# Which issue does this PR close? Closes #7988 # What changes are included in this PR? Support casting int64 to interval types. # Are these changes tested? Tested in unit tests, and ultimately for the use case that I actually want it I also tested it in datafusion-cli: ``` > select arrow_cast(arrow_cast(100000000, 'Int64'), 'Interval(MonthDayNano)'); +---------------------------------------------------------------------------------------+ | arrow_cast(arrow_cast(Int64(100000000),Utf8("Int64")),Utf8("Interval(MonthDayNano)")) | +---------------------------------------------------------------------------------------+ | 0.100000000 secs | +---------------------------------------------------------------------------------------+ 1 row(s) fetched. Elapsed 0.002 seconds. ``` Which previously failed: ``` > select arrow_cast(arrow_cast(100000000, 'Int64'), 'Interval(MonthDayNano)'); This feature is not implemented: Unsupported CAST from Int64 to Interval(MonthDayNano) ``` # Are there any user-facing changes? No API changes, purely added support that failed/didn't exist before. @alamb @tustvold -- 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