Fokko commented on code in PR #2783:
URL: https://github.com/apache/iceberg-python/pull/2783#discussion_r2582432618


##########
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:
   Exactly, Pydantic has difficulties with the boolean values (`true`/`false`), 
instead of a dict `{"type": "in", ...}`



-- 
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]

Reply via email to