efegokdemir commented on PR #11209:
URL: https://github.com/apache/arrow-rs/pull/11209#issuecomment-5858988376

   Addressed the non-zero case in `fa9d2110`. Empty unions now return 
`InvalidArgumentError` before mutating state when a positive null extension is 
requested; zero-length extensions remain no-ops for both sparse and dense 
unions. The regression test covers both modes and verifies the length remains 
unchanged after the error.
   
   Validation: `/opt/homebrew/bin/rustfmt --check 
arrow-data/src/transform/mod.rs arrow-data/src/transform/union.rs`, `git diff 
--check`, and `cargo test --locked --manifest-path arrow-data/Cargo.toml -p 
arrow-data --lib test_try_extend_nulls_empty_union` all passed.


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