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.
2 parents 8ced818 + 9414971 commit 9db2c19Copy full SHA for 9db2c19
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
],
tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_sqrt/out.sql
@@ -5,7 +5,7 @@ WITH `bfcte_0` AS (
5
), `bfcte_1` AS (
6
SELECT
7
*,
8
- CASE WHEN `bfcol_0` <= 0 THEN CAST('NaN' AS FLOAT64) ELSE SQRT(`bfcol_0`) END AS `bfcol_1`
+ CASE WHEN `bfcol_0` < 0 THEN CAST('NaN' AS FLOAT64) ELSE SQRT(`bfcol_0`) END AS `bfcol_1`
9
FROM `bfcte_0`
10
11
0 commit comments