srilman commented on issue #1778:
URL:
https://github.com/apache/iceberg-python/issues/1778#issuecomment-2715886974
Sounds good, here is the full stacktrace just in case. Sorry about that, I
truncated it to keep the issue description short.
```
/Users/slade/bodo/mono/develop/.pixi/envs/default/lib/python3.12/site-packages/pyiceberg/avro/decoder.py:185:
UserWarning: Falling back to pure Python Avro decoder, missing Cython
implementation
warnings.warn("Falling back to pure Python Avro decoder, missing Cython
implementation")
Traceback (most recent call last):
File "/Users/slade/bodo/mono/develop/test.py", line 27, in <module>
print(list(table.scan(row_filter=pe.NotNull("structs")).plan_files()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/slade/bodo/mono/develop/.pixi/envs/default/lib/python3.12/site-packages/pyiceberg/table/__init__.py",
line 1370, in plan_files
if manifest_evaluators[manifest_file.partition_spec_id](manifest_file)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/slade/bodo/mono/develop/.pixi/envs/default/lib/python3.12/site-packages/pyiceberg/typedef.py",
line 71, in __missing__
val = self.default_factory(key)
^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/slade/bodo/mono/develop/.pixi/envs/default/lib/python3.12/site-packages/pyiceberg/table/__init__.py",
line 1323, in _build_manifest_evaluator
return manifest_evaluator(spec, self.table_metadata.schema(),
self.partition_filters[spec_id], self.case_sensitive)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File
"/Users/slade/bodo/mono/develop/.pixi/envs/default/lib/python3.12/site-packages/pyiceberg/typedef.py",
line 71, in __missing__
val = self.default_factory(key)
^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/slade/bodo/mono/develop/.pixi/envs/default/lib/python3.12/site-packages/pyiceberg/table/__init__.py",
line 1315, in _build_partition_projection
return project(self.row_filter)
^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/slade/bodo/mono/develop/.pixi/envs/default/lib/python3.12/site-packages/pyiceberg/expressions/visitors.py",
line 810, in project
return visit(bind(self.schema, rewrite_not(expr), self.case_sensitive),
self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/slade/bodo/mono/develop/.pixi/envs/default/lib/python3.12/site-packages/pyiceberg/expressions/visitors.py",
line 213, in bind
return visit(expression, BindVisitor(schema, case_sensitive))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/slade/bodo/mono/develop/.pixi/envs/default/lib/python3.12/functools.py",
line 912, in wrapper
return dispatch(args[0].__class__)(*args, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/slade/bodo/mono/develop/.pixi/envs/default/lib/python3.12/site-packages/pyiceberg/expressions/visitors.py",
line 185, in _
return visitor.visit_unbound_predicate(predicate=obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/slade/bodo/mono/develop/.pixi/envs/default/lib/python3.12/site-packages/pyiceberg/expressions/visitors.py",
line 250, in visit_unbound_predicate
return predicate.bind(self.schema, case_sensitive=self.case_sensitive)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/slade/bodo/mono/develop/.pixi/envs/default/lib/python3.12/site-packages/pyiceberg/expressions/__init__.py",
line 379, in bind
bound_term = self.term.bind(schema, case_sensitive)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/slade/bodo/mono/develop/.pixi/envs/default/lib/python3.12/site-packages/pyiceberg/expressions/__init__.py",
line 187, in bind
accessor = schema.accessor_for_field(field.field_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/slade/bodo/mono/develop/.pixi/envs/default/lib/python3.12/site-packages/pyiceberg/schema.py",
line 280, in accessor_for_field
raise ValueError(f"Could not find accessor for field with id:
{field_id}")
ValueError: Could not find accessor for field with id: 1
```
--
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]