codephage2020 commented on code in PR #7855:
URL: https://github.com/apache/arrow-rs/pull/7855#discussion_r2184186509
##########
arrow-array/src/array/union_array.rs:
##########
@@ -781,13 +781,23 @@ impl Array for UnionArray {
};
if fields.len() <= 1 {
- return self
+ if let Some(logical_nulls) = self
.fields
.iter()
.flatten()
.map(Array::logical_nulls)
.next()
- .flatten();
+ .flatten()
+ {
+ if logical_nulls.len() != self.len() {
Review Comment:
Yes, I have made some improvements for this
--
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]