You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "2010YOUY01 (via GitHub)" <gi...@apache.org> on 2023/05/24 22:22:13 UTC

[GitHub] [arrow-rs] 2010YOUY01 commented on issue #3959: Support casting to/from different interval units (eg `YearDay` --> `MonthDayNano`, etc)

2010YOUY01 commented on issue #3959:
URL: https://github.com/apache/arrow-rs/issues/3959#issuecomment-1562003684

   The independence of fields inside `Interval` type makes it really tricky 🤔 
   Suppose a `DataType::Interval(IntervalUnit::MonthDayNano)` has value "1 months 40 days 0 nanos", and it's cast to `DataType::Interval(IntervalUnit::YearMonth)`, should it be truncated to "1 months" or "2 months"


-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org