vinaykpud opened a new pull request, #12563: URL: https://github.com/apache/arrow-rs/pull/12563
# Which issue does this PR close? - Closes #12544 # Rationale for this change A valid nullable union inside a struct fails to decode over Flight because its field is advertised as non-nullable. Custom metadata on union fields is also silently dropped during schema preparation. # What changes are included in this PR? - Preserve the original union field's nullability and metadata when rebuilding the Flight schema. - Add Flight round-trip regressions for nullable unions and metadata on non-nullable unions, at the top level and inside structs and lists. Both sparse and dense unions and both dictionary handling modes are covered. # Are these changes tested? The new regressions fail on the original encoder: one detects lost metadata, and the other reproduces the struct decoding failure. Both pass with the fix, along with the existing Flight tests and examples. # Are there any significant user-facing changes? No public API changes. # AI usage disclosure Codex helped implement the fix and regression tests and prepare this PR. -- 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]
