efegokdemir commented on code in PR #11209:
URL: https://github.com/apache/arrow-rs/pull/11209#discussion_r4145716216
##########
arrow-data/src/transform/mod.rs:
##########
@@ -843,6 +843,16 @@ impl<'a> MutableArrayData<'a> {
));
}
+ if len == 0 {
+ return Ok(());
+ }
+
+ if matches!(&self.data.data_type, DataType::Union(fields, _) if
fields.is_empty()) {
Review Comment:
Updated in `50f611a4`. The empty-union special validation was removed from
`try_extend_nulls`; the existing union `extend_nulls` callbacks remain the
single validation path. The fallible callback now runs before committing the
parent length/null-count/null bitmap state, while the zero-length early return
remains a no-op. `git diff --check` passed; cargo validation could not run
locally because Cargo is not installed.
--
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]