Skip to content

Commit 2f13311

Browse files
1 parent 1388ae7 commit 2f13311

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎bigframes/core/compile/sqlglot/scalar_compiler.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
from bigframes.core.compile.sqlglot.expressions.typed_expr import TypedExpr
2222
import bigframes.core.compile.sqlglot.sqlglot_ir as ir
2323
import bigframes.core.expression as ex
24-
import bigframes.operations as ops
2524
from bigframes.operations import numeric_ops
25+
import bigframes.operations as ops
2626

2727

2828
class ScalarOpCompiler:
@@ -190,4 +190,6 @@ def isnan(arg: TypedExpr) -> sge.Expression:
190190

191191
@scalar_op_compiler.register_unary_op(numeric_ops.isfinite_op)
192192
def isfinite(arg: TypedExpr) -> sge.Expression:
193-
return sge.Not(this=sge.Or(this=sge.IsInf(this=arg.expr), right=sge.IsNan(this=arg.expr)))
193+
return sge.Not(
194+
this=sge.Or(this=sge.IsInf(this=arg.expr), right=sge.IsNan(this=arg.expr))
195+
)

0 commit comments

Comments
 (0)