Fokko commented on code in PR #6140: URL: https://github.com/apache/iceberg/pull/6140#discussion_r1016944001
########## python/tests/expressions/test_visitors.py: ########## @@ -827,24 +834,23 @@ def _to_manifest_file(*partitions: PartitionFieldSummary) -> ManifestFile: ) -def _create_manifest_evaluator(bound_expr: BoundPredicate) -> _ManifestEvalVisitor: - """For testing. Creates a bogus evaluator, and then replaces the expression""" - evaluator = _ManifestEvalVisitor( - Schema(NestedField(1, "id", LongType())), EqualTo(term=Reference("id"), literal=literal("foo")) - ) - evaluator.partition_filter = bound_expr - return evaluator +@pytest.fixture +def string_schema() -> Schema: Review Comment: Added all of them: https://github.com/apache/iceberg/pull/6140/commits/8b3f2696291f8bdfa8007bbd55c6f3738a4182e6 With one minor change, I made the field IDs consecutive 🙀: https://github.com/apache/iceberg/blob/master/api/src/test/java/org/apache/iceberg/expressions/TestInclusiveManifestEvaluator.java#L57-L58 -- 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