aboutsummaryrefslogtreecommitdiff
path: root/R/pkg/inst/tests
diff options
context:
space:
mode:
authorSun Rui <rui.sun@intel.com>2015-04-23 16:08:14 -0700
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2015-04-23 16:08:14 -0700
commit73db132bf503341c7a5cf9409351c282a8464175 (patch)
tree978eecc5d5a1c5d5ab93ae25954b16d892fbd577 /R/pkg/inst/tests
parent6220d933e5ce4ba890f5d6a50a69b95d319dafb4 (diff)
downloadspark-73db132bf503341c7a5cf9409351c282a8464175.tar.gz
spark-73db132bf503341c7a5cf9409351c282a8464175.tar.bz2
spark-73db132bf503341c7a5cf9409351c282a8464175.zip
[SPARK-6818] [SPARKR] Support column deletion in SparkR DataFrame API.
Author: Sun Rui <rui.sun@intel.com> Closes #5655 from sun-rui/SPARK-6818 and squashes the following commits: 7c66570 [Sun Rui] [SPARK-6818][SPARKR] Support column deletion in SparkR DataFrame API.
Diffstat (limited to 'R/pkg/inst/tests')
-rw-r--r--R/pkg/inst/tests/test_sparkSQL.R5
1 files changed, 5 insertions, 0 deletions
diff --git a/R/pkg/inst/tests/test_sparkSQL.R b/R/pkg/inst/tests/test_sparkSQL.R
index 25831ae2d9..af7a6c5820 100644
--- a/R/pkg/inst/tests/test_sparkSQL.R
+++ b/R/pkg/inst/tests/test_sparkSQL.R
@@ -449,6 +449,11 @@ test_that("select operators", {
df$age2 <- df$age * 2
expect_equal(columns(df), c("name", "age", "age2"))
expect_equal(count(where(df, df$age2 == df$age * 2)), 2)
+
+ df$age2 <- NULL
+ expect_equal(columns(df), c("name", "age"))
+ df$age3 <- NULL
+ expect_equal(columns(df), c("name", "age"))
})
test_that("select with column", {