Skip to content

Commit 9d333ee

Browse files
committed
Make UnaryPredicate JSON serializable and add unit test
1 parent 16b261d commit 9d333ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyiceberg/expressions/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,12 @@ def bind(self, schema: Schema, case_sensitive: bool = True) -> BooleanExpression
429429
def as_bound(self) -> Type[BoundPredicate[L]]: ...
430430

431431

432-
class UnaryPredicate(UnboundPredicate[Any], IcebergBaseModel, ABC):
432+
class UnaryPredicate(IcebergBaseModel, UnboundPredicate[Any], ABC):
433433
type: str
434434
column: str
435435

436+
model_config = {"arbitrary_types_allowed": True}
437+
436438
def __init__(self, term: Union[str, UnboundTerm[Any]]):
437439
if isinstance(term, Reference):
438440
term_name = term.name

0 commit comments

Comments
 (0)