wiedld commented on code in PR #6303:
URL: https://github.com/apache/arrow-rs/pull/6303#discussion_r1776355794


##########
arrow-array/src/array/union_array.rs:
##########
@@ -380,6 +392,254 @@ impl UnionArray {
             _ => unreachable!(),
         }
     }
+
+    /// Computes the logical nulls for a sparse union, optimized for when 
there's a lot of fields without nulls
+    fn mask_sparse_skip_without_nulls(&self, nulls: Vec<(i8, NullBuffer)>) -> 
BooleanBuffer {

Review Comment:
   This function is not hit by any of the test cases, but does get used by the 
benchmark. 
   
   There are also several other branch points in these mask methods, also only 
used in the benchmark. I don't believe the benchmark tests for correctness (is 
`black_box(array.logical_nulls()`). What is the policy here @alamb ?



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

Reply via email to