Skip to content

Commit

Permalink
fix: Parquet decoding of nested dictionary values (pola-rs#19605)
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite authored Nov 3, 2024
1 parent 1eb2fcc commit 7d93ec4
Show file tree
Hide file tree
Showing 9 changed files with 116 additions and 136 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -686,16 +686,19 @@ impl<D: utils::Decoder> PageNestedDecoder<D> {

batched_collector.finalize()?;

let leaf_validity = leaf_validity.freeze();
let leaf_filter = leaf_filter.freeze();

let state = utils::State::new_nested(
&self.decoder,
&page,
self.dict.as_ref(),
Some(leaf_validity.freeze()),
Some(leaf_validity),
)?;
state.decode(
&mut self.decoder,
&mut target,
Some(Filter::Mask(leaf_filter.freeze())),
Some(Filter::Mask(leaf_filter)),
)?;

self.iter.reuse_page_buffer(page);
Expand Down
Loading

0 comments on commit 7d93ec4

Please sign in to comment.