File tree 3 files changed +4
-3
lines changed 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,6 @@ impl FilteredParquetRecordBatchReader {
120
120
self . row_filter . take ( )
121
121
}
122
122
123
- #[ inline( never) ]
124
123
/// Take a selection, and return the new selection where the rows are filtered by the predicate.
125
124
fn build_predicate_filter (
126
125
& mut self ,
@@ -372,7 +371,6 @@ impl<R: ChunkReader> Iterator for CachedPageReader<R> {
372
371
373
372
impl < R : ChunkReader > PageReader for CachedPageReader < R > {
374
373
fn get_next_page ( & mut self ) -> Result < Option < Page > , ParquetError > {
375
- // self.inner.get_next_page()
376
374
let next_page_offset = self . inner . peek_next_page_offset ( ) ?;
377
375
378
376
let Some ( offset) = next_page_offset else {
Original file line number Diff line number Diff line change @@ -686,7 +686,7 @@ where
686
686
/// - `Ok(None)` if the stream has ended.
687
687
/// - `Err(error)` if the stream has errored. All subsequent calls will return `Ok(None)`.
688
688
/// - `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 > > {
690
690
loop {
691
691
match & mut self . state {
692
692
StreamState :: Decoding ( _) | StreamState :: Reading ( _) => {
Original file line number Diff line number Diff line change @@ -568,6 +568,9 @@ impl<R: ChunkReader> SerializedPageReader<R> {
568
568
} )
569
569
}
570
570
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.
571
574
#[ cfg( feature = "async" ) ]
572
575
pub ( crate ) fn peek_next_page_offset ( & mut self ) -> Result < Option < usize > > {
573
576
match & mut self . state {
You can’t perform that action at this time.
0 commit comments