zhangwl9 opened a new issue, #2630:
URL: https://github.com/apache/iceberg-python/issues/2630
### Apache Iceberg version
0.10.0 (latest release)
### Please describe the bug 🐞
code:
import pyarrow as pa
df = pa.Table.from_pylist(
[
{"city": "Amsterdam", "lat": 52.371807, "long": 4.896029},
{"city": "San Francisco", "lat": 37.773972, "long": -122.431297},
{"city": "Drachten", "lat": 53.11254, "long": 6.0989},
{"city": "Paris", "lat": 48.864716, "long": 2.349014},
],
)
tbl = catalog.create_table("docs_example.cities", schema=df.schema)
table = catalog.load_table(("docs_example", "cities"))
**error:**
>>> table = catalog.load_table(("docs_example", "cities"))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/usr/local/python3.9/lib/python3.9/site-packages/tenacity/__init__.py", line
338, in wrapped_f
return copy(f, *args, **kw)
File
"/usr/local/python3.9/lib/python3.9/site-packages/tenacity/__init__.py", line
477, in __call__
do = self.iter(retry_state=retry_state)
File
"/usr/local/python3.9/lib/python3.9/site-packages/tenacity/__init__.py", line
378, in iter
result = action(retry_state)
File
"/usr/local/python3.9/lib/python3.9/site-packages/tenacity/__init__.py", line
400, in <lambda>
self._add_action_func(lambda rs: rs.outcome.result())
File "/usr/local/python3.9/lib/python3.9/concurrent/futures/_base.py",
line 439, in result
return self.__get_result()
File "/usr/local/python3.9/lib/python3.9/concurrent/futures/_base.py",
line 391, in __get_result
raise self._exception
File
"/usr/local/python3.9/lib/python3.9/site-packages/tenacity/__init__.py", line
480, in __call__
result = fn(*args, **kwargs)
File
"/usr/local/python3.9/lib/python3.9/site-packages/pyiceberg/catalog/rest/__init__.py",
line 633, in load_table
table_response = TableResponse.model_validate_json(response.text)
File "/usr/local/python3.9/lib/python3.9/site-packages/pydantic/main.py",
line 766, in model_validate_json
return cls.__pydantic_validator__.validate_json(
File
"/usr/local/python3.9/lib/python3.9/site-packages/pyiceberg/table/metadata.py",
line 496, in check_schemas
return check_schemas(table_metadata)
File
"/usr/local/python3.9/lib/python3.9/site-packages/pyiceberg/table/metadata.py",
line 82, in check_schemas
current_schema_id = table_metadata.current_schema_id
AttributeError: 'pydantic_core._pydantic_core.ValidationInfo' object has no
attribute 'current_schema_id'
### Willingness to contribute
- [ ] I can contribute a fix for this bug independently
- [ ] I would be willing to contribute a fix for this bug with guidance from
the Iceberg community
- [x] I cannot contribute a fix for this bug at this time
--
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]