LaurentMazare commented on a change in pull request #451:
URL: https://github.com/apache/arrow-rs/pull/451#discussion_r650391154
##########
File path: arrow/src/json/reader.rs
##########
@@ -1569,6 +1569,18 @@ impl ReaderBuilder {
}
}
+impl<R: Read> Iterator for Reader<R> {
+ type Item = Result<RecordBatch>;
+
+ fn next(&mut self) -> Option<Self::Item> {
+ match self.next() {
Review comment:
Ah indeed that sounds more idiomatic, I just pushed this change.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]