izveigor commented on PR #4179: URL: https://github.com/apache/arrow-rs/pull/4179#issuecomment-1538950265
Hello, @tustvold! I agree with the fact, that `cast` function can replace `add_dyn` between different types in the same group (like `Int16` + `Int32`). But, the `cast` function does not support `Intervals`. See the problem: #4181 Even if the implementation is done in code, in my opinion, adding different types of intervals can make life easier (for example, if you need to add a day (DayTimeType) to the year (YearMonthType), you get a ready-made type with ready-made calculations, instead of translating two data types into a third (MonthDayNanoType) and producing calculations) -- 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]
