heronshoes commented on code in PR #34441:
URL: https://github.com/apache/arrow/pull/34441#discussion_r1125135206
##########
ruby/red-arrow/lib/arrow/record-batch-file-reader.rb:
##########
@@ -20,6 +20,8 @@ class RecordBatchFileReader
include Enumerable
def each
+ return to_enum(__method__) unless block_given?
Review Comment:
How about to supply the size of Enumerator?
```suggestion
return to_enum(__method__) {n_record_batches} unless block_given?
```
--
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]