Skip to content

Commit 7f51b44

Browse files
committed
Add test for non-numeric column.
1 parent c6a25c5 commit 7f51b44

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

R/pkg/inst/tests/test_sparkSQL.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,11 @@ test_that("column functions", {
619619
expect_equal(collect(df2)[[2, 2]], FALSE)
620620
expect_equal(collect(df2)[[3, 1]], FALSE)
621621
expect_equal(collect(df2)[[3, 2]], TRUE)
622+
623+
df3 <- select(df, between(df$name, c("Apache", "Spark")))
624+
expect_equal(collect(df3)[[1, 1]], TRUE)
625+
expect_equal(collect(df3)[[2, 1]], FALSE)
626+
expect_equal(collect(df3)[[3, 1]], TRUE)
622627
})
623628

624629
test_that("column binary mathfunctions", {

0 commit comments

Comments
 (0)