Weijun-H commented on code in PR #5823:
URL: https://github.com/apache/arrow-rs/pull/5823#discussion_r1623133729


##########
parquet_derive/src/lib.rs:
##########
@@ -160,6 +167,7 @@ pub fn parquet_record_writer(input: 
proc_macro::TokenStream) -> proc_macro::Toke
 ///
 /// pub fn read_some_records() -> Vec<ACompleteRecord> {
 ///   let mut samples: Vec<ACompleteRecord> = Vec::new();
+///   let mut file = tempfile().unwrap();

Review Comment:
   It does not work.
   ```rust
   error[E0277]: the trait bound `(): std::io::Write` is not satisfied
      --> parquet_derive/src/lib.rs:73:19
       |
   34  |  let mut writer = SerializedFileWriter::new(file, schema, 
Default::default()).unwrap();
       |                   
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait 
`std::io::Write` is not implemented for `()`
       |
   note: required by a bound in `SerializedFileWriter`
      --> /Users/hwj/Desktop/rust/arrow-rs/parquet/src/file/writer.rs:141:36
       |
   141 | pub struct SerializedFileWriter<W: Write> {
       |                                    ^^^^^ required by this bound in 
`SerializedFileWriter`
   ```



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