Skip to content

Commit 6c291e1

Browse files
committed
Compat: Translate is.na() to isnan()
1 parent 8cd22c6 commit 6c291e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/relational-duckdb.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ duckplyr_macros <- c(
3333
#
3434
"___divide" = "(x, y) AS CASE WHEN y = 0 THEN CASE WHEN x = 0 THEN CAST('NaN' AS double) WHEN x > 0 THEN CAST('+Infinity' AS double) ELSE CAST('-Infinity' AS double) END ELSE CAST(x AS double) / y END",
3535
#
36-
"is.na" = "(x) AS (x IS NULL)",
36+
"is.na" = "(x) AS (x IS NULL OR isnan(x))",
3737
"n" = "() AS CAST(COUNT(*) AS int32)",
3838
#
3939
"___log10" = "(x) AS CASE WHEN x < 0 THEN CAST('NaN' AS double) WHEN x = 0 THEN CAST('-Inf' AS double) ELSE log10(x) END",

0 commit comments

Comments
 (0)