kentkwu opened a new pull request, #334:
URL: https://github.com/apache/arrow-js/pull/334

   ## What's Changed
   
     Summary:
   
   - Added `Field.withMetadata()` and `Schema.withMetadata()` so callers can 
replace or clear metadata maps without manually juggling Map<string,string> 
instances. Both helpers accept either a Map, a plain object, or null (to 
clear), and always return a new instance, matching the C++/PyArrow/Rust 
behavior.
   - Added `test/unit/schema-tests.ts` with coverage for the new helpers. I 
couldn't find a better place to put these but let me know if I missed something.
   
   Closes https://github.com/apache/arrow-js/issues/333
   


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