Skip to content

Commit 8f67cb2

Browse files
authored
Update bigframes/core/compile/sqlglot/scalar_compiler.py
1 parent 3b0af20 commit 8f67cb2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bigframes/core/compile/sqlglot/scalar_compiler.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,5 +191,11 @@ def isnanornull(arg: TypedExpr) -> sge.Expression:
191191
@scalar_op_compiler.register_unary_op(numeric_ops.isfinite_op)
192192
def isfinite(arg: TypedExpr) -> sge.Expression:
193193
return sge.Not(
194-
this=sge.Or(this=sge.Is(this=expr.expr, expression=sge.Null()), right=sge.Or(this=sge.IsInf(this=arg.expr), right=sge.IsNan(this=arg.expr))
194+
this=sge.Or(
195+
this=sge.Is(this=expr.expr, expression=sge.Null()),
196+
right=sge.Or(
197+
this=sge.IsInf(this=arg.expr),
198+
right=sge.IsNan(this=arg.expr),
199+
),
200+
),
195201
)

0 commit comments

Comments
 (0)