We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f36cce2 commit 7ed9029Copy full SHA for 7ed9029
bigframes/core/compile/polars/operations/numeric_ops.py
@@ -88,4 +88,4 @@ def sqrt_op_impl(
88
) -> pl.Expr:
89
import polars as pl
90
91
- return pl.when(input <= 0).then(float("nan")).otherwise(input.sqrt())
+ return pl.when(input < 0).then(float("nan")).otherwise(input.sqrt())
bigframes/core/compile/sqlglot/expressions/numeric_ops.py
@@ -207,7 +207,7 @@ def _(expr: TypedExpr) -> sge.Expression:
207
return sge.Case(
208
ifs=[
209
sge.If(
210
- this=expr.expr <= sge.convert(0),
+ this=expr.expr < sge.convert(0),
211
true=constants._NAN,
212
)
213
],
0 commit comments