tustvold commented on code in PR #5769: URL: https://github.com/apache/arrow-rs/pull/5769#discussion_r1602083214
########## arrow-buffer/src/native.rs: ########## @@ -239,6 +239,60 @@ impl ArrowNativeType for i256 { } } +impl private::Sealed for IntervalMonthDayNano {} +impl ArrowNativeType for IntervalMonthDayNano { + fn from_usize(_: usize) -> Option<Self> { + None + } + + fn as_usize(self) -> usize { + (self.months as usize) | ((self.days as usize) << 32) Review Comment: This is a bit contrived, but tests make use of this logic so we need to at least partially support it -- 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