alamb commented on issue #8018:
URL: https://github.com/apache/arrow-rs/issues/8018#issuecomment-3133350394

   I think this should do it
   
   ```diff
   diff -du -r arrow-avro/src/reader/mod.rs arrow-avro-orig/src/reader/mod.rs
   --- arrow-avro/src/reader/mod.rs     2025-07-29 13:02:04
   +++ arrow-avro-orig/src/reader/mod.rs        2025-07-29 12:59:36
   @@ -34,12 +34,8 @@
    //! # use std::fs::File;
    //! # use std::io::BufReader;
    //! # use arrow_avro::reader::ReaderBuilder;
   -//! # let path = "avro/alltypes_plain.avro";
   -//! # let path = match std::env::var("ARROW_TEST_DATA") {
   -//! #   Ok(dir) => format!("{dir}/{path}"),
   -//! #   Err(_) => format!("../testing/data/{path}")
   -//! # };
   -//! let file = File::open(path).unwrap();
   +//!
   +//! let file = 
File::open("../testing/data/avro/alltypes_plain.avro").unwrap();
    //! let mut avro = 
ReaderBuilder::new().build(BufReader::new(file)).unwrap();
    //! let batch = avro.next().unwrap();
    //! ```
   ```


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