fritzb opened a new issue, #7746:
URL: https://github.com/apache/iceberg/issues/7746
### Apache Iceberg version
1.2.1 (latest release)
### Query engine
None
### Please describe the bug 🐞
I have typing-extensions 4.6.1, and this version caused pydantic to failed
when importing BooleanExpression from pyiceberg. Downgrading to
typing-extension 4.5.0
`
from pyiceberg.expressions import BooleanExpression
`
## Exception generated:
`
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - Traceback (most
recent call last):
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - File
"/usr/local/bin/iceberg_converter", line 5, in <module>
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - from
tasks.iceberg_converter.app import main
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - File
"/usr/local/lib/python3.8/dist-packages/tasks/iceberg_converter/app.py", line
18, in <module>
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - from
pyiceberg.expressions import BooleanExpression
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - File
"/usr/local/lib/python3.8/dist-packages/pyiceberg/expressions/__init__.py",
line 32, in <module>
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - from
pyiceberg.expressions.literals import (
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - File
"/usr/local/lib/python3.8/dist-packages/pyiceberg/expressions/literals.py",
line 33, in <module>
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - from
pyiceberg.types import (
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - File
"/usr/local/lib/python3.8/dist-packages/pyiceberg/types.py", line 251, in
<module>
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - class
StructType(IcebergType):
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - File
"pydantic/main.py", line 198, in pydantic.main.ModelMetaclass.__new__
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - File
"pydantic/fields.py", line 506, in pydantic.fields.ModelField.infer
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - File
"pydantic/fields.py", line 436, in pydantic.fields.ModelField.__init__
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - File
"pydantic/fields.py", line 552, in pydantic.fields.ModelField.prepare
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - File
"pydantic/fields.py", line 668, in pydantic.fields.ModelField._type_analysis
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - File
"/usr/lib/python3.8/typing.py", line 774, in __subclasscheck__
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - return
issubclass(cls, self.__origin__)
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO - TypeError:
issubclass() arg 1 must be a class
[2023-05-31, 20:10:31 UTC] {pod_manager.py:410} ERROR - Error parsing
timestamp (no timestamp in message ''). Will continue execution but won't
update timestamp
[2023-05-31, 20:10:31 UTC] {pod_manager.py:342} INFO -
`
--
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]