You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "tustvold (via GitHub)" <gi...@apache.org> on 2023/06/14 09:01:32 UTC

[GitHub] [arrow-rs] tustvold commented on a diff in pull request #4412: Fix bad cast in create_primitive_array

tustvold commented on code in PR #4412:
URL: https://github.com/apache/arrow-rs/pull/4412#discussion_r1229264615


##########
arrow-ipc/src/reader.rs:
##########
@@ -250,24 +242,23 @@ fn create_primitive_array(
         | UInt32
         | Time32(_)
         | Date32
-        | Interval(IntervalUnit::YearMonth) => {
-            if buffers[1].len() / 8 == length && length != 1 {

Review Comment:
   This dates from the earliest version of the IPC reader added in https://github.com/apache/arrow/pull/4167/files#diff-c9e901cbd035c1eefca19e8a63765c428e11c4a2e732d9075368477f96348d31R220 by @nevi-me 
   
   My recollection is that some of the arrow implementations only support 64-bit primitives, perhaps Go or Javascript?
   
   I would like to understand why this code was added before we go about removing it, and if we do we should also remove the similar case for Float32. Is this code causing you issues?



-- 
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