Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
fix decoding Binary Plain pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Petrov committed May 6, 2022
1 parent d035964 commit 1352de5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io/parquet/read/deserialize/binary/nested.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ impl<'a, O: Offset> utils::Decoder<'a> for BinaryDecoder<O> {
ValuesDictionary::new(page, dict),
))
}
(Encoding::Plain, None, true, false) => {
(Encoding::Plain, _, true, false) => {
let (_, _, values) = utils::split_buffer(page);

let values = BinaryIter::new(values);

Ok(State::Optional(Optional::new(page), values))
}
(Encoding::Plain, None, false, false) => Ok(State::Required(Required::new(page))),
(Encoding::Plain, _, false, false) => Ok(State::Required(Required::new(page))),
_ => Err(utils::not_implemented(page)),
}
}
Expand Down

0 comments on commit 1352de5

Please sign in to comment.