neilconway opened a new pull request, #25510: URL: https://github.com/apache/datafusion/pull/25510
## Which issue does this PR close? - N/A ## Rationale for this change Arrow 60 introduced a new `Metadata` type to represent field and schema metadata. Iterating over a `Metadata` is guaranteed to proceed in ascending key order. This PR simplifies a few needless conversions and sorts when dealing with `Metadata` values. ## What changes are included in this PR? - `VALUES` schema builder: pass `Metadata` directly instead of converting to a `HashMap` - `arrow_metadata` and `arrow_field`: remove temporary vectors and redundant sorting - Add test to verify `arrow_field` returns metadata in ascending key order ## What is the testing strategy for this PR? Existing tests pass; new test added. ## Are there any user-facing changes? No. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
