Skip to content

Commit 50b7b39

Browse files
kevinjqliuCopilot
andauthored
Update pyiceberg/expressions/visitors.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 7568b0d commit 50b7b39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyiceberg/expressions/visitors.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,9 @@ def visit_bound_predicate(self, predicate: BoundPredicate[L]) -> BooleanExpressi
898898

899899
# In the case of schema evolution or column projection, the field might not be present in the file schema
900900
if file_column_name is None:
901-
# If the field has no initial_default, return AlwaysTrue to include all rows for further evaluation
901+
# If the field has no initial_default, return AlwaysTrue to include all rows for further evaluation.
902+
# This ensures that the predicate is evaluated during row-level filtering rather than being eliminated
903+
# at the file level, preserving the ability to apply more granular filtering later in the process.
902904
if field.initial_default is None:
903905
return AlwaysTrue()
904906

0 commit comments

Comments
 (0)