mzabaluev commented on code in PR #9611:
URL: https://github.com/apache/arrow-rs/pull/9611#discussion_r3041496893


##########
arrow-avro/src/reader/async_reader/mod.rs:
##########
@@ -512,7 +512,7 @@ impl<R: AsyncFileReader + Unpin + 'static> 
AsyncAvroFileReader<R> {
                     // We have a full batch ready, emit it
                     // (This is not mutually exclusive with the block being 
finished, so the state change is valid)
                     if self.decoder.batch_is_full() {
-                        return match self.decoder.flush() {
+                        return match self.decoder.flush_block() {

Review Comment:
   It was something I noticed while tweaking: the OCF reader does not need the 
schema-updating part of `flush`, the method it calls to decode is 
`decode_block`, the logical companion to which is provided as `flush_block`.



-- 
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]

Reply via email to