Skip to content

Commit b394ff9

Browse files
committed
update
1 parent eae2850 commit b394ff9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

parquet/src/arrow/async_reader/arrow_reader.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

373372
impl<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 {

parquet/src/arrow/async_reader/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(_) => {

parquet/src/file/serialized_reader.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)