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 (#982)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrei Petrov <andrei.p@180bytwo.com>
  • Loading branch information
aptr322 and Andrei Petrov committed May 6, 2022
1 parent d035964 commit 7d0908f
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 7d0908f

Please sign in to comment.