File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,6 @@ impl FilteredParquetRecordBatchReader {
120120 self . row_filter . take ( )
121121 }
122122
123- #[ inline( never) ]
124123 /// Take a selection, and return the new selection where the rows are filtered by the predicate.
125124 fn build_predicate_filter (
126125 & mut self ,
@@ -372,7 +371,6 @@ impl<R: ChunkReader> Iterator for CachedPageReader<R> {
372371
373372impl < R : ChunkReader > PageReader for CachedPageReader < R > {
374373 fn get_next_page ( & mut self ) -> Result < Option < Page > , ParquetError > {
375- // self.inner.get_next_page()
376374 let next_page_offset = self . inner . peek_next_page_offset ( ) ?;
377375
378376 let Some ( offset) = next_page_offset else {
Original file line number Diff line number Diff line change @@ -686,7 +686,7 @@ where
686686 /// - `Ok(None)` if the stream has ended.
687687 /// - `Err(error)` if the stream has errored. All subsequent calls will return `Ok(None)`.
688688 /// - `Ok(Some(reader))` which holds all the data for the row group.
689- pub async fn next_row_group ( & mut self ) -> Result < Option < ParquetRecordBatchReader > > {
689+ pub async fn next_row_group ( & mut self ) -> Result < Option < FilteredParquetRecordBatchReader > > {
690690 loop {
691691 match & mut self . state {
692692 StreamState :: Decoding ( _) | StreamState :: Reading ( _) => {
Original file line number Diff line number Diff line change @@ -568,6 +568,9 @@ impl<R: ChunkReader> SerializedPageReader<R> {
568568 } )
569569 }
570570
571+ /// Similar to `peek_next_page`, but returns the offset of the next page instead of the page metadata.
572+ /// Unlike page metadata, an offset can uniquely identify a page.
573+ /// Useful when we want to if the next page is being cached or read previously.
571574 #[ cfg( feature = "async" ) ]
572575 pub ( crate ) fn peek_next_page_offset ( & mut self ) -> Result < Option < usize > > {
573576 match & mut self . state {
You can’t perform that action at this time.
0 commit comments