This is an automated email from the ASF dual-hosted git repository.
yao pushed a commit to branch branch-3.5
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.5 by this push:
new 20da7c0f3c44 Revert "[SPARK-46417][SQL] Do not fail when calling
hive.getTable and throwException is false"
20da7c0f3c44 is described below
commit 20da7c0f3c44b1b435171058da36d8cd59391ba8
Author: Kent Yao <[email protected]>
AuthorDate: Tue Jan 23 17:35:59 2024 +0800
Revert "[SPARK-46417][SQL] Do not fail when calling hive.getTable and
throwException is false"
This reverts commit 8abf9583ac2303765255299af3e843d8248f313f.
---
.../main/scala/org/apache/spark/sql/hive/client/HiveShim.scala | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git
a/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveShim.scala
b/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveShim.scala
index 7025e09ae9d9..60ff9ec42f29 100644
--- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveShim.scala
+++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveShim.scala
@@ -620,13 +620,7 @@ private[client] class Shim_v0_12 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)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]