Skip to content

Commit cd4af89

Browse files
committed
add comments
1 parent 2061d27 commit cd4af89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bigframes/core/compile/sqlglot/expressions/bool_ops.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def _(left: TypedExpr, right: TypedExpr) -> sge.Expression:
6060

6161
@register_binary_op(ops.xor_op)
6262
def _(left: TypedExpr, right: TypedExpr) -> sge.Expression:
63+
# For XOR, cast NULL operands to BOOLEAN to ensure the resulting expression
64+
# maintains the boolean data type.
6365
left_expr = left.expr
6466
left_dtype = left.dtype
6567
if left_expr == sge.null():

0 commit comments

Comments
 (0)