kylebarron opened a new issue, #5327:
URL: https://github.com/apache/arrow-rs/issues/5327

   **Describe the bug**
   
   Calling `remove_column` on a `RecordBatch` object deletes any schema 
metadata.
   
   In 
https://github.com/apache/arrow-rs/blob/a0148ba4cea1756bd22c534dff14e362cb5ee242/arrow-array/src/record_batch.rs#L357-L362
   
   
   It creates the new `SchemaBuilder` exclusively from the fields which calls 
this `From impl`
   
   
https://github.com/apache/arrow-rs/blob/a0148ba4cea1756bd22c534dff14e362cb5ee242/arrow-schema/src/schema.rs#L125-L132
   
   instead of also taking into account the schema metadata.
   
   **To Reproduce**
   
   I don't have a full repro example but can create one if needed.
   <!--
   Steps to reproduce the behavior:
   -->
   
   **Expected behavior**
   
   Schema metadata not to be dropped
   <!--
   A clear and concise description of what you expected to happen.
   -->
   
   **Additional context**
   <!--
   Add any other context about the problem 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