HippoBaro commented on code in PR #9447:
URL: https://github.com/apache/arrow-rs/pull/9447#discussion_r2833677097
##########
parquet/src/column/writer/mod.rs:
##########
@@ -409,8 +413,8 @@ impl<'a, E: ColumnValueEncoder> GenericColumnWriter<'a, E> {
codec,
compressor,
encoder,
- def_levels_sink: vec![],
- rep_levels_sink: vec![],
+ def_levels_encoder,
Review Comment:
Field initializers in struct literals are evaluated left-to-right, so by the
time we reach `def_levels_encoder`, `descr` and `props` are already moved. TLDR
the borrow checker won't let us do that 😞
--
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]