kou opened a new issue, #49415:
URL: https://github.com/apache/arrow/issues/49415

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   I'm preparing an integration test for pure Ruby Apache Arrow reader/writer 
and found this.
   
   In our integration test, we have an integration test that uses 
`some_key`/`some_item`/`some_entries` as key/item/value field names: 
https://github.com/apache/arrow/blob/007903c2ac783a98c320b91024a8b789c2648236/dev/archery/archery/integration/datagen.py#L1730-L1733
   
   The C++ implementation rewrites key/item/value field names as 
`key`/`value`/`entries`:
   
   
https://github.com/apache/arrow/blob/007903c2ac783a98c320b91024a8b789c2648236/cpp/src/arrow/ipc/metadata_internal.cc#L393-L394
   
   
https://github.com/apache/arrow/blob/007903c2ac783a98c320b91024a8b789c2648236/cpp/src/arrow/type.cc#L1042-L1043
   
   So the expected value represented in JSON uses 
`some_key`/`some_item`/`some_entries` but the generated Apache Arrow data by 
the C++ implementation uses `key`/`item`/`entries`.
   
   FYI: The above `WithName()` code was added by #35297.
   
   
   ### Component(s)
   
   C++


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