Skip to content

Commit

Permalink
Revert "[SPARK-46417][SQL] Do not fail when calling hive.getTable and…
Browse files Browse the repository at this point in the history
… throwException is false"

This reverts commit 5948803.
  • Loading branch information
yaooqinn committed Jan 23, 2024
1 parent 715b434 commit 2aed25b
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -923,13 +923,7 @@ private[client] class Shim_v2_0 extends Shim with Logging {
tableName: String,
throwException: Boolean): Table = {
recordHiveCall()
val table = try {
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 =>
null
}
val table = hive.getTable(dbName, tableName, throwException)
if (table != null) {
table.getTTable.setTableName(tableName)
table.getTTable.setDbName(dbName)
Expand Down

0 comments on commit 2aed25b

Please sign in to comment.