friendlymatthew opened a new pull request, #7833: URL: https://github.com/apache/arrow-rs/pull/7833
_note: this PR is based off of https://github.com/apache/arrow-rs/pull/7808_ # Which issue does this PR close? - Closes https://github.com/apache/arrow-rs/issues/7698. # Rationale for this change The Parquet variant supports creating objects with sorted dictionaries, where field names are sorted in lexicographical order. Sorting the dictionary and reassigning field IDs afterward can be computationally expensive. This PR offers an alternative: allowing users to specify the field names upfront, so that the correct field IDs can be assigned directly. (The correct field ids being correlated to the lexicographical sort order). This PR introduces two new public methods to `VariantBuilder`: - `with_field_names`, a builder method that takes in a `self`, initializes the dictionary, and returns the modified builder - `add_field_name`, a method to add individual field names to the dictionary manually -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org