diff --git a/parquet_derive/src/lib.rs b/parquet_derive/src/lib.rs index c60aa131cffb..0b0f1f177eba 100644 --- a/parquet_derive/src/lib.rs +++ b/parquet_derive/src/lib.rs @@ -40,6 +40,9 @@ mod parquet_field; /// Example: /// /// ```no_run +/// use parquet_derive::ParquetRecordWriter; +/// use tempfile::tempfile; +/// use std::io::{self, Write}; /// use parquet::file::properties::WriterProperties; /// use parquet::file::writer::SerializedFileWriter; /// @@ -62,6 +65,7 @@ mod parquet_field; /// a_str: "I'm false" /// } /// ]; +/// let mut file = tempfile()?; /// /// let schema = samples.as_slice().schema(); ///