Skip to content

Commit 30a9ef6

Browse files
committed
Revert scalar_op_registry.py chnage
1 parent 11daddb commit 30a9ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bigframes/core/compile/ibis_compiler/scalar_op_registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ def astype_op_impl(x: ibis_types.Value, op: ops.AsTypeOp):
10361036
if to_type == ibis_dtypes.bool:
10371037
return cast_json_to_bool_in_safe(x) if op.safe else cast_json_to_bool(x)
10381038
if to_type == ibis_dtypes.string:
1039-
return to_json_string(x)
1039+
return cast_json_to_string_in_safe(x) if op.safe else cast_json_to_string(x)
10401040

10411041
# TODO: either inline this function, or push rest of this op into the function
10421042
return bigframes.core.compile.ibis_types.cast_ibis_value(x, to_type, safe=op.safe)

0 commit comments

Comments
 (0)