aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorgatorsmile <gatorsmile@gmail.com>2016-04-10 20:46:15 -0700
committerYin Huai <yhuai@databricks.com>2016-04-10 20:46:15 -0700
commit9f838bd24242866a687a2655a1b8ac2f5d562526 (patch)
tree54d9f3de5e7513ba5e62e2bafff12bf59349268a /R
parentfbf8d008833c985d0e222dd2360c7f7375caa68a (diff)
downloadspark-9f838bd24242866a687a2655a1b8ac2f5d562526.tar.gz
spark-9f838bd24242866a687a2655a1b8ac2f5d562526.tar.bz2
spark-9f838bd24242866a687a2655a1b8ac2f5d562526.zip
[SPARK-14362][SPARK-14406][SQL][FOLLOW-UP] DDL Native Support: Drop View and Drop Table
#### What changes were proposed in this pull request? This PR is to address the comment: https://github.com/apache/spark/pull/12146#discussion-diff-59092238. It removes the function `isViewSupported` from `SessionCatalog`. After the removal, we still can capture the user errors if users try to drop a table using `DROP VIEW`. #### How was this patch tested? Modified the existing test cases Author: gatorsmile <gatorsmile@gmail.com> Closes #12284 from gatorsmile/followupDropTable.
Diffstat (limited to 'R')
-rw-r--r--R/pkg/inst/tests/testthat/test_sparkSQL.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/pkg/inst/tests/testthat/test_sparkSQL.R b/R/pkg/inst/tests/testthat/test_sparkSQL.R
index 22eb3ec984..d747d4f83f 100644
--- a/R/pkg/inst/tests/testthat/test_sparkSQL.R
+++ b/R/pkg/inst/tests/testthat/test_sparkSQL.R
@@ -1853,7 +1853,7 @@ test_that("approxQuantile() on a DataFrame", {
test_that("SQL error message is returned from JVM", {
retError <- tryCatch(sql(sqlContext, "select * from blah"), error = function(e) e)
- expect_equal(grepl("Table not found", retError), TRUE)
+ expect_equal(grepl("Table or View not found", retError), TRUE)
expect_equal(grepl("blah", retError), TRUE)
})