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

   # Which issue does this PR close?
   
   - Closes #9664 
   
   # Rationale for this change
   
   This PR fixes `union_extract_by_type` to select children by type id instead 
of field name
   
   `union_extract` resolves children by field name, greedily returning the 
first match. When `union_extract_by_type` resolved the correct child via type 
and then called `union_extract` with just the field name, that name-based 
lookup could pick the wrong child if another field shared the same name
   
   This commit exposes a public method `union_extract_by_id` that selects the 
child by type id directly. This way, it avoids the ambiguity mentioned above


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