robreeves opened a new issue, #3297:
URL: https://github.com/apache/iceberg-python/issues/3297
### Apache Iceberg version
None
### Please describe the bug 🐞
`copy.deepcopy()` on `And`, `Or`, or `Not` raises `TypeError` because
Pydantic v2's `BaseModel.__deepcopy__` calls `cls.__new__(cls)` with no args,
but these classes require positional arguments in `__new__`.
```python
import copy
from pyiceberg.expressions import And, EqualTo
copy.deepcopy(And(EqualTo("x", 1), EqualTo("y", 2)))
# TypeError: And.__new__() missing 2 required positional arguments: 'left'
and 'right'
### 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
- [ ] 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]