aboutsummaryrefslogtreecommitdiff
path: root/sql/hive-thriftserver
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 /sql/hive-thriftserver
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 'sql/hive-thriftserver')
-rw-r--r--sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/CliSuite.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/CliSuite.scala b/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/CliSuite.scala
index 9ec8b9a9a6..bfc3d195ff 100644
--- a/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/CliSuite.scala
+++ b/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/CliSuite.scala
@@ -230,7 +230,7 @@ class CliSuite extends SparkFunSuite with BeforeAndAfterAll with Logging {
runCliWithin(timeout = 2.minute,
errorResponses = Seq("AnalysisException"))(
"select * from nonexistent_table;"
- -> "Error in query: Table not found: nonexistent_table;"
+ -> "Error in query: Table or View not found: nonexistent_table;"
)
}