Skip to content

Commit 1d2f980

Browse files
fix(bool) - Correctly use boolean operator in table aggregation
1 parent 8ea289c commit 1d2f980

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rayforce/types/table.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def distinct(self) -> Expression:
7272

7373
def is_(self, other: bool) -> Expression:
7474
if other is True:
75-
return Expression(Operation.EVAL, self)
76-
return Expression(Operation.EVAL, Expression(Operation.NOT, self))
75+
return Expression(Operation.EQUALS, *[self, True])
76+
return Expression(Operation.EQUALS, *[self, False])
7777

7878
def isin(self, values: list[t.Any] | RayObject) -> Expression:
7979
if isinstance(values, RayObject):

0 commit comments

Comments
 (0)