Skip to content

Commit

Permalink
remove dup
Browse files Browse the repository at this point in the history
  • Loading branch information
fsdvh committed Sep 26, 2024
1 parent 458fb77 commit 55751ee
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions parquet/src/column/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,24 +414,6 @@ where
}
}

/// Read the next page as a dictionary page. If the next page is not a dictionary page,
/// this will return an error.
fn read_dictionary_page(&mut self) -> Result<()> {
match self.page_reader.get_next_page()? {
Some(Page::DictionaryPage {
buf,
num_values,
encoding,
is_sorted,
}) => self
.values_decoder
.set_dict(buf, num_values, encoding, is_sorted),
_ => Err(ParquetError::General(
"Invalid page. Expecting dictionary page".to_string(),
)),
}
}

/// Reads a new page and set up the decoders for levels, values or dictionary.
/// Returns false if there's no page left.
fn read_new_page(&mut self) -> Result<bool> {
Expand Down

0 comments on commit 55751ee

Please sign in to comment.