diff options
author | Yin Huai <yhuai@databricks.com> | 2015-02-24 19:51:36 -0800 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2015-02-24 19:51:36 -0800 |
commit | 769e092bdc51582372093f76dbaece27149cc4ea (patch) | |
tree | 7137803c94c84e0cd78811d2d09b0950fbf6b31e /sql | |
parent | 922b43b3cc1cca04e0313bf9e31c5f944ac06d1f (diff) | |
download | spark-769e092bdc51582372093f76dbaece27149cc4ea.tar.gz spark-769e092bdc51582372093f76dbaece27149cc4ea.tar.bz2 spark-769e092bdc51582372093f76dbaece27149cc4ea.zip |
[SPARK-5286][SQL] SPARK-5286 followup
https://issues.apache.org/jira/browse/SPARK-5286
Author: Yin Huai <yhuai@databricks.com>
Closes #4755 from yhuai/SPARK-5286-throwable and squashes the following commits:
4c0c450 [Yin Huai] Catch Throwable instead of Exception.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/commands.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/commands.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/commands.scala index c88d0e6b79..9934a5d3c3 100644 --- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/commands.scala +++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/commands.scala @@ -63,10 +63,10 @@ case class DropTable( } catch { // This table's metadata is not in case _: org.apache.hadoop.hive.ql.metadata.InvalidTableException => - // Other exceptions can be caused by users providing wrong parameters in OPTIONS + // Other Throwables can be caused by users providing wrong parameters in OPTIONS // (e.g. invalid paths). We catch it and log a warning message. - // Users should be able to drop such kinds of tables regardless if there is an exception. - case e: Exception => log.warn(s"${e.getMessage}") + // Users should be able to drop such kinds of tables regardless if there is an error. + case e: Throwable => log.warn(s"${e.getMessage}") } hiveContext.invalidateTable(tableName) hiveContext.runSqlHive(s"DROP TABLE $ifExistsClause$tableName") |