This is an automated email from the ASF dual-hosted git repository.

fokko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/master by this push:
     new 0e74cdf8f0 Python: Struct fields should be provided to Schema 
constructor (#6115)
0e74cdf8f0 is described below

commit 0e74cdf8f0724ae92a5f95b72dc394374162a27c
Author: Douglas Drinka <[email protected]>
AuthorDate: Fri Nov 4 00:55:55 2022 -0500

    Python: Struct fields should be provided to Schema constructor (#6115)
---
 python/pyiceberg/expressions/visitors.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/python/pyiceberg/expressions/visitors.py 
b/python/pyiceberg/expressions/visitors.py
index 4853490315..6bcc6bd2ef 100644
--- a/python/pyiceberg/expressions/visitors.py
+++ b/python/pyiceberg/expressions/visitors.py
@@ -613,6 +613,7 @@ class 
_ManifestEvalVisitor(BoundBooleanExpressionVisitor[bool]):
 def manifest_evaluator(
     partition_spec: PartitionSpec, schema: Schema, partition_filter: 
BooleanExpression, case_sensitive: bool = True
 ) -> Callable[[ManifestFile], bool]:
-    partition_schema = Schema(*partition_spec.partition_type(schema))
+    partition_type = partition_spec.partition_type(schema)
+    partition_schema = Schema(*partition_type.fields)
     evaluator = _ManifestEvalVisitor(partition_schema, partition_filter, 
case_sensitive)
     return evaluator.eval

Reply via email to