Skip to content

Commit

Permalink
Update sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveS…
Browse files Browse the repository at this point in the history
…him.scala
  • Loading branch information
cloud-fan authored Dec 15, 2023
1 parent bc2a44f commit 17ea0bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ private[client] class Shim_v2_0 extends Shim with Logging {
hive.getTable(dbName, tableName, throwException)
} catch {
// Hive may have bugs and still throw an exception even if `throwException` is false.
case e: HiveException if !throwException && e.getMessage.contains("Unable to fetch table") =>
case e: HiveException if !throwException =>
null
}
if (table != null) {
Expand Down

0 comments on commit 17ea0bc

Please sign in to comment.