alamb commented on issue #4339: URL: https://github.com/apache/arrow-datafusion/issues/4339#issuecomment-1329213763
Converting to `isize` will now cause issues for large positive numbers What do you think about first trying `to_usize` and if that fails (returns an `Option`) then try `to_isize`? There is also `NATIVE` on `ArrowPrimtiveType` (as this function is already parameterized on `T` in theory we should be able to pick the correct conversion at compile time: https://docs.rs/arrow/27.0.0/arrow/array/trait.ArrowPrimitiveType.html -- 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