Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions crates/iceberg/src/arrow/reader/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ use parquet::arrow::{
};
use parquet::encryption::decrypt::FileDecryptionProperties;

use super::predicate_visitor::residual_for_missing_fields;
use super::row_lineage::synthesize_row_id_column;
use super::{
ArrowFileReader, ArrowReader, ParquetReadOptions, add_fallback_field_ids_to_arrow_schema,
Expand Down Expand Up @@ -563,6 +564,16 @@ impl FileScanTaskReader {
&predicate,
use_position_fallback,
)?;
// Apply the residual before the row filter and every pruning layer below, so they all
// see the same predicate.
let predicate = residual_for_missing_fields(
Comment thread
mbutrovich marked this conversation as resolved.
Resolved
predicate,
&iceberg_field_ids,
&field_id_map,
task.schema(),
task.partition_spec().map(Arc::as_ref),
task.partition(),
)?;

let row_filter = ArrowReader::get_row_filter(
&predicate,
Expand Down
Loading
Loading