Skip to content

Commit

Permalink
Strip the partition columns domains from the effective predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
findinpath authored and raunaqmorarka committed Dec 30, 2023
1 parent 89105bd commit b4f2803
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,9 @@ private TupleDomain<IcebergColumnHandle> getEffectivePredicate(
if (!partitionMatchesPredicate(partitionColumns, partitionValues, dynamicFilterPredicate)) {
return TupleDomain.none();
}

// Filter out partition columns domains from the dynamic filter because they should be irrelevant at data file level
dynamicFilterPredicate = dynamicFilterPredicate
.filter((columnHandle, domain) -> !partitionKeys.containsKey(columnHandle.getId()));
return unenforcedPredicate.intersect(dynamicFilterPredicate);
}

Expand Down

0 comments on commit b4f2803

Please sign in to comment.