mbrobbel commented on code in PR #8381:
URL: https://github.com/apache/arrow-rs/pull/8381#discussion_r2358787569


##########
arrow-avro/examples/read_with_utf8view.rs:
##########
@@ -48,6 +48,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
     let batches: Vec<RecordBatch> = avro_reader.collect::<Result<_, _>>()?;
     let regular_duration = start.elapsed();
 
+    file_for_view.seek(SeekFrom::Start(0))?;

Review Comment:
   Maybe the reader should seek to the start?
   
   
https://github.com/apache/arrow-rs/blob/aed2f3b6a72375acb06cf958c9e3ff3c6ecb760f/arrow-avro/src/reader/mod.rs#L226-L243



-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to