Skip to content

Commit 7f1bca4

Browse files
committed
fix annotations
1 parent c0b5e68 commit 7f1bca4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bigframes/core/compile/polars/operations/numeric_ops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def sqrt_op_impl(
9494
@polars_compiler.register_op(numeric_ops.IsNanOp)
9595
def is_nan_op_impl(
9696
compiler: polars_compiler.PolarsExpressionCompiler,
97-
op: numeric_ops.SqrtOp, # type: ignore
97+
op: numeric_ops.IsNanOp, # type: ignore
9898
input: pl.Expr,
9999
) -> pl.Expr:
100100
return input.is_nan()
@@ -103,7 +103,7 @@ def is_nan_op_impl(
103103
@polars_compiler.register_op(numeric_ops.IsFiniteOp)
104104
def is_finite_op_impl(
105105
compiler: polars_compiler.PolarsExpressionCompiler,
106-
op: numeric_ops.SqrtOp, # type: ignore
106+
op: numeric_ops.IsFiniteOp, # type: ignore
107107
input: pl.Expr,
108108
) -> pl.Expr:
109109
return input.is_finite()

bigframes/operations/numeric_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def output_type(self, *input_types: dtypes.ExpressionType) -> dtypes.ExpressionT
350350
unsafe_pow_op = UnsafePowOp()
351351

352352
IsNanOp = base_ops.create_unary_op(
353-
name="isnanornull",
353+
name="isnan",
354354
type_signature=op_typing.FixedOutputType(
355355
dtypes.is_numeric, dtypes.BOOL_DTYPE, "numeric"
356356
),

0 commit comments

Comments
 (0)