Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit d258614

Browse files
actually fix bool handling
1 parent 1b1fd53 commit d258614

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bigframes/core/blocks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2797,7 +2797,9 @@ def _get_rows_as_json_values(self) -> Block:
27972797
elif type_ == bigframes.dtypes.BOOL_DTYPE:
27982798
# cast operator produces True/False, but function template expects lower case
27992799
column_references.append(
2800-
ops.where_op.as_expr(ex.const("true"), col, ex.const("false"))
2800+
ops.lower_op.as_expr(
2801+
ops.AsTypeOp(bigframes.dtypes.STRING_DTYPE).as_expr(col)
2802+
)
28012803
)
28022804
else:
28032805
column_references.append(

0 commit comments

Comments
 (0)