rdblue commented on code in PR #6140:
URL: https://github.com/apache/iceberg/pull/6140#discussion_r1017243851


##########
python/tests/expressions/test_visitors.py:
##########
@@ -1585,27 +1326,14 @@ def test_manifest_evaluator_not():
             upper_bound=_to_byte_buffer(LongType(), 10),
         )
     )
-    assert not _create_manifest_evaluator(expr).eval(manifest)
+    assert not _ManifestEvalVisitor(long_schema, expr).eval(manifest)
 
 
-def test_manifest_evaluator_and():
+def test_manifest_evaluator_and(long_schema: Schema):
     expr = And(
-        BoundIn(
-            term=BoundReference(
-                field=NestedField(field_id=1, name="foo", 
field_type=LongType(), required=False),
-                accessor=Accessor(position=0, inner=None),
-            ),
-            literals={LongLiteral(i) for i in range(22)},
-        ),
-        BoundIn(
-            term=BoundReference(
-                field=NestedField(field_id=1, name="foo", 
field_type=LongType(), required=False),
-                accessor=Accessor(position=0, inner=None),
-            ),
-            literals={LongLiteral(i) for i in range(22)},
-        ),
+        In(Reference[int]("col_long"), tuple({LongLiteral(i) for i in 
range(22)})),
+        In(Reference[int]("col_long"), tuple({LongLiteral(i) for i in 
range(22)})),

Review Comment:
   See my comment below about the predicates inside `Or`.



-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to