timmyb32r opened a new pull request, #11827:
URL: https://github.com/apache/arrow-rs/pull/11827

   # Which issue does this PR close?
   
   None — standalone bug fix.
   
   # Rationale for this change
   
   `Field::try_merge` accepted unions with different modes, even though
   sparse and dense unions have different physical layouts. The result
   retained the mode of `self`, silently ignoring the incompatible mode
   of the other field.
   
   # What changes are included in this PR?
   
   Return `ArrowError::SchemaError` when the union modes differ.
   
   # Are these changes tested?
   
   Added a regression test covering rejection of sparse/dense merges
   in both directions. It also verifies that unions with matching modes
   can still merge distinct variants.
   
   # Are there any significant user-facing changes?


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