wgtmac opened a new pull request, #49218:
URL: https://github.com/apache/arrow/pull/49218

   ### Rationale for this change
   
   Previously, when converting Parquet schemas back to Arrow schemas with 
serialized ARROW:schema metadata, the key-value metadata on map nested fields 
(key/value fields) was lost. The GetNestedFactory() function lacked a MAP case, 
preventing ApplyOriginalStorageMetadata from recursively restoring metadata to 
map children. This fix adds MAP support to the factory function, enabling 
proper metadata preservation for maps during schema roundtrips.
   
   ### What changes are included in this PR?
   
   Added a MAP case to GetNestedFactory() that returns a lambda to reconstruct 
MapType while preserving the keys_sorted property from the original type.
   
   ### Are these changes tested?
   
   Yes. Added a test case to verify the issue has been fixed.
   
   ### 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]

Reply via email to