Skip to content

Commit

Permalink
Update parquet/src/file/serialized_reader.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Lamb <[email protected]>
  • Loading branch information
XiangpengHao and alamb authored Jan 7, 2025
1 parent 53bcfc0 commit 7804621
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parquet/src/file/serialized_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,8 @@ impl<R: ChunkReader> SerializedPageReader<R> {
///
/// This is used when we need to read parquet with row-filter, and we don't want to decompress the page twice.
/// This function allows us to check if the next page is being cached or read previously.
pub fn peek_next_page_offset(&mut self) -> Result<Option<usize>> {
#[cfg(test)]
fn peek_next_page_offset(&mut self) -> Result<Option<usize>> {
match &mut self.state {
SerializedPageReaderState::Values {
offset,
Expand Down

0 comments on commit 7804621

Please sign in to comment.