geruh commented on code in PR #2783:
URL: https://github.com/apache/iceberg-python/pull/2783#discussion_r2572652112
##########
pyiceberg/expressions/__init__.py:
##########
@@ -69,6 +69,66 @@ def __or__(self, other: BooleanExpression) ->
BooleanExpression:
return Or(self, other)
+ @model_validator(mode="wrap")
+ @classmethod
+ def handle_primitive_type(cls, v: Any, handler:
ValidatorFunctionWrapHandler) -> BooleanExpression:
Review Comment:
Does the pydantic discriminator not work here because of the type field
missing from boolean expressions?
--
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]