Skip to content

Commit 9db2c19

Browse files
committed
Merge remote-tracking branch 'origin/tswast-doctest-boilerplate' into tswast-doctest-boilerplate
2 parents 8ced818 + 9414971 commit 9db2c19

File tree

2 files changed

+2
-2
lines changed
  • bigframes/core/compile/sqlglot/expressions
  • tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_sqrt

2 files changed

+2
-2
lines changed

bigframes/core/compile/sqlglot/expressions/numeric_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def _(expr: TypedExpr) -> sge.Expression:
207207
return sge.Case(
208208
ifs=[
209209
sge.If(
210-
this=expr.expr <= sge.convert(0),
210+
this=expr.expr < sge.convert(0),
211211
true=constants._NAN,
212212
)
213213
],

tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_sqrt/out.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ WITH `bfcte_0` AS (
55
), `bfcte_1` AS (
66
SELECT
77
*,
8-
CASE WHEN `bfcol_0` <= 0 THEN CAST('NaN' AS FLOAT64) ELSE SQRT(`bfcol_0`) END AS `bfcol_1`
8+
CASE WHEN `bfcol_0` < 0 THEN CAST('NaN' AS FLOAT64) ELSE SQRT(`bfcol_0`) END AS `bfcol_1`
99
FROM `bfcte_0`
1010
)
1111
SELECT

0 commit comments

Comments
 (0)