mapleFU commented on code in PR #42239:
URL: https://github.com/apache/arrow/pull/42239#discussion_r1650547476
##########
cpp/src/arrow/record_batch.h:
##########
@@ -310,7 +310,20 @@ class ARROW_EXPORT RecordBatchReader {
/// \brief Read the next record batch in the stream. Return null for batch
/// when reaching end of stream
///
- /// \param[out] batch the next loaded batch, null at end of stream
+ /// example:
+ /// ```
+ /// std::shared_ptr<RecordBatch> batch;
+ /// while (true) {
+ /// ARROW_RETURN_NOT_OK(reader->ReadNext(&batch));
+ /// if (batch == nullptr) {
Review Comment:
Personally I found some place handled this( like DatasetWriter ) but some
not...
--
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]