From 55751eecae3b4d1ee6d946b122f649c24c1a4c97 Mon Sep 17 00:00:00 2001 From: Faiaz Sanaulla Date: Thu, 26 Sep 2024 12:29:14 +0200 Subject: [PATCH] remove dup --- parquet/src/column/reader.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/parquet/src/column/reader.rs b/parquet/src/column/reader.rs index f77b0336dd47..0c7cbb412a42 100644 --- a/parquet/src/column/reader.rs +++ b/parquet/src/column/reader.rs @@ -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 {