diff options
author | gatorsmile <gatorsmile@gmail.com> | 2016-04-10 20:46:15 -0700 |
---|---|---|
committer | Yin Huai <yhuai@databricks.com> | 2016-04-10 20:46:15 -0700 |
commit | 9f838bd24242866a687a2655a1b8ac2f5d562526 (patch) | |
tree | 54d9f3de5e7513ba5e62e2bafff12bf59349268a /sql/hive/src/main/scala/org/apache | |
parent | fbf8d008833c985d0e222dd2360c7f7375caa68a (diff) | |
download | spark-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/src/main/scala/org/apache')
-rw-r--r-- | sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionCatalog.scala | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionCatalog.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionCatalog.scala index 875652c226..0cccc22e5a 100644 --- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionCatalog.scala +++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionCatalog.scala @@ -70,8 +70,6 @@ private[sql] class HiveSessionCatalog( } } - override def isViewSupported: Boolean = true - // ---------------------------------------------------------------- // | Methods and fields for interacting with HiveMetastoreCatalog | // ---------------------------------------------------------------- |