adiranjan25 commented on issue #18701:
URL: https://github.com/apache/iceberg/issues/18701#issuecomment-7355423364

   Thanks @sdaberdaku for the detailed reproduction. The `lt`/`ltEq` findings 
appear particularly important because they demonstrate an observable 
correctness issue beyond the original `notEq`/`notIn` inconsistency.
   
   The `deleteFromRowFilter` behavior is especially concerning: a NULL identity 
partition should not be treated as matching `lessThan("part", 2)` merely 
because the comparator orders NULL before non-NULL values.
   
   I think this raises three points worth validating before changing the 
implementation:
   
   1. **Safety of metadata deletes:** Verify that `ResidualEvaluator` does not 
reduce a predicate to `alwaysTrue()` for a NULL partition unless every row in 
that partition actually satisfies the filter.
   2. **Evaluator consistency:** Compare the behavior of `Evaluator`, 
`ResidualEvaluator`, `InclusiveMetricsEvaluator`, and `StrictMetricsEvaluator` 
for `LT`, `LT_EQ`, `NOT_EQ`, and `NOT_IN` on NULL values.
   3. **Regression coverage:** Include identity-partitioned tables containing 
NULL partitions, and test both files with complete metrics and files without 
column-level metrics to prevent inconsistent pruning or unintended file 
deletion.
   
   @Revanth14, I understand you're already working on the Java implementation, 
and I don't want to duplicate that effort.
   
   I'm happy to independently reproduce the `deleteFromRowFilter` case and 
contribute focused regression tests or a validation matrix covering these 
evaluator interactions, subject to maintainer guidance on the intended NULL 
semantics.
   
   It would also be useful to clarify whether the metadata-delete safety issue 
should be addressed independently of the broader two-valued versus three-valued 
expression semantics discussion.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to