rkyleg opened a new pull request, #554: URL: https://github.com/apache/arrow-go/pull/554
I could not find a method to read the custom metadata out of the RecordBatch message, only the metadata from the schema, so I added an option to read custom metadata from record batch message in ipc reader. This was the api I came up with. I tried to follow the existing methodology of updating the current record batch in Read/Next. Let me know if any api changes should be made or if I am completely missing this functionality somewhere. ### Rationale for this change Allow reading custom metadata from record batch message similar to the [iter_batches_with_custom_metadata](https://arrow.apache.org/docs/python/generated/pyarrow.ipc.RecordBatchStreamReader.html#pyarrow.ipc.RecordBatchStreamReader.iter_batches_with_custom_metadata) function in the pyarrow library. ### What changes are included in this PR? Add an ipc.Option (WithCustomRecordBatchMetadata) Add meta field in ipc.Reader struct to hold metadata Check WithCustomRecordBatchMetadata option in next() method on Reader and, if true, read metadata from the ### Are these changes tested? Not sure how to use the current test setup to test these changes because there isn't an api (that I can tell) to write this custom metadata to an ipc either. I will look into that next. I did create an example of using these changes [here](https://github.com/rkyleg/record-batch-custom-metadata-test) ### 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]
