chaubold commented on code in PR #46354:
URL: https://github.com/apache/arrow/pull/46354#discussion_r2081730011


##########
python/pyarrow/ipc.pxi:
##########
@@ -1192,6 +1198,13 @@ cdef class _RecordBatchFileReader(_Weakrefable):
             raise ValueError("Operation on closed reader")
         return _wrap_read_stats(self.reader.get().stats())
 
+    @property
+    def metadata(self):
+        """
+        File-level custom KeyValueMetadata written via ``ipc.new_file(..., 
metadata=)``.
+        """
+        return pyarrow_wrap_metadata(self.reader.get().metadata())

Review Comment:
   Thanks for the feedback @raulcd! I also adjusted the docstring and the test 
to reflect the change (and added a unit test to check that 
`pyarrow.ipc.open_file(...).metadata is None` in case nothing was set.)



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