findepi commented on code in PR #6608:
URL: https://github.com/apache/arrow-rs/pull/6608#discussion_r1809470943
##########
arrow-array/src/array/primitive_array.rs:
##########
@@ -1161,6 +1161,10 @@ impl<T: ArrowPrimitiveType> Array for PrimitiveArray<T> {
self.nulls.as_ref()
}
+ fn logical_null_count(&self) -> usize {
+ self.null_count()
+ }
Review Comment:
To make logical_null_count as performant as null_count for primitive types
(where they happen to be equivalent), so that logical_null_count can be used
without, or with fewer, performance drawbacks.
--
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]