Skip to content

Commit 41ce94b

Browse files
authored
Update bigframes/core/compile/sqlglot/scalar_compiler.py
1 parent aae2902 commit 41ce94b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bigframes/core/compile/sqlglot/scalar_compiler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ def _register(
185185

186186
@scalar_op_compiler.register_unary_op(numeric_ops.isnanornull_op)
187187
def isnanornull(arg: TypedExpr) -> sge.Expression:
188-
return sge.Or(this=sge.IsNan(this=arg.expr), right=sge.IsNull(this=arg.expr))
188+
return sge.Or(
189+
this=sge.IsNan(this=arg.expr),
190+
right=sge.Is(this=arg.expr, expression=sge.Null()),
191+
)
189192

190193

191194
@scalar_op_compiler.register_unary_op(numeric_ops.isfinite_op)

0 commit comments

Comments
 (0)