Skip to content

Commit c4d6a80

Browse files
committed
fix for R test
1 parent d1bad7c commit c4d6a80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/pkg/tests/fulltests/test_sparkSQL.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,7 @@ test_that("column functions", {
16741674

16751675
# check for unparseable
16761676
df <- as.DataFrame(list(list("a" = "")))
1677-
expect_equal(collect(select(df, from_json(df$a, schema)))[[1]][[1]], NA)
1677+
expect_equal(collect(select(df, from_json(df$a, schema)))[[1]][[1]]$a, NA)
16781678

16791679
# check if array type in string is correctly supported.
16801680
jsonArr <- "[{\"name\":\"Bob\"}, {\"name\":\"Alice\"}]"

0 commit comments

Comments
 (0)