Fokko commented on code in PR #6140:
URL: https://github.com/apache/iceberg/pull/6140#discussion_r1015798033
##########
python/tests/expressions/test_visitors.py:
##########
@@ -836,15 +843,23 @@ def _create_manifest_evaluator(bound_expr:
BoundPredicate) -> _ManifestEvalVisit
return evaluator
-def test_manifest_evaluator_less_than_no_overlap():
- expr = BoundLessThan(
- term=BoundReference(
- field=NestedField(field_id=1, name="foo", field_type=StringType(),
required=False),
- accessor=Accessor(position=0, inner=None),
- ),
- literal=StringLiteral("c"),
- )
[email protected]
+def string_schema() -> Schema:
+ return Schema(NestedField(field_id=1, name="foo", field_type=StringType(),
required=False))
Review Comment:
Ah, I like that a lot. You can see the type from which fixture is being
used, but more explicit is more better indeed. Thanks!
--
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]