kevinjqliu commented on code in PR #3817:
URL: https://github.com/apache/iceberg-python/pull/3817#discussion_r3832754689


##########
pyiceberg/expressions/visitors.py:
##########
@@ -1880,25 +1880,29 @@ def visit_not_nan(self, term: BoundTerm) -> 
BooleanExpression:
             return self.visit_true()
 
     def visit_less_than(self, term: BoundTerm, literal: LiteralValue) -> 
BooleanExpression:
-        if term.eval(self.struct) < literal.value:
+        value = term.eval(self.struct)
+        if value is None or value < literal.value:

Review Comment:
   Fixed. Null identity values now return `AlwaysFalse` for all ordered 
comparisons, consistent with row evaluation. Added public 
`DataScan.count()`/`to_arrow()` regression coverage and a Spark cross-engine 
integration test.



-- 
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