niyue commented on code in PR #12812:
URL: https://github.com/apache/arrow/pull/12812#discussion_r851746729
##########
cpp/src/arrow/record_batch.h:
##########
@@ -227,6 +227,11 @@ class ARROW_EXPORT RecordBatchReader {
/// \return Status
virtual Status ReadNext(std::shared_ptr<RecordBatch>* batch) = 0;
+ virtual Status ReadNext(std::shared_ptr<RecordBatch>* batch,
+ std::shared_ptr<KeyValueMetadata>* custom_metadata) {
+ return Status::NotImplemented("ReadNext with custom metadata");
+ }
Review Comment:
I add this new API with a default implementation so that existing sub class
of `RecordBatchReader` can still be compiled successfully.
--
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]