alamb opened a new issue #1091:
URL: https://github.com/apache/arrow-rs/issues/1091


   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   
   There are a few issues that make it annoying to work with Schema and Field 
metadata:
   1. there is no way to create and set metadata on fields or schema in one 
statement; Instead a `mut Field` or `mut Schema` has to be created
   2. There is no constructor for create a field with metadata (and thus it is 
inconsistent with Schema which has `new_with_schema`)
   3. The accessors are different. Schema provides a `&HashMap` and Field 
provides a `Option<&BtreeMap>`
   
   
   **Describe the solution you'd like**
   
   My proposal will be two parts:
   1. Some simpler API functions (like `with_metatada()`)
   2. A more invasive API change to make the metadata handling more uniform
   
   **Describe alternatives you've considered**
   A clear and concise description of any alternative solutions or features 
you've considered.
   
   **Additional context**
   Add any other context or screenshots about the feature request here.
   


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