You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "LuciferYang (via GitHub)" <gi...@apache.org> on 2026/06/10 13:00:33 UTC
Re: [PR] [SPARK-57263][SQL][FOLLOWUP] Fix Hive 4.2 getTablesByName compatibility [spark]
LuciferYang commented on code in PR #56390:
URL: https://github.com/apache/spark/pull/56390#discussion_r3388483340
##########
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala:
##########
@@ -426,6 +426,10 @@ private[hive] class HiveClientImpl(
msClient.getTableObjectsByName(dbName, tableNames.asJava).asScala
.map(extraFixesForNonView).map(new HiveTable(_)).toSeq
} catch {
+ // SPARK-57263: HIVE-27473 may fail batch lookup on missing tables; keep Spark's
+ // contract of returning only tables that exist.
+ case _: NoSuchObjectException if shim.databaseExists(client, dbName) =>
+ tableNames.flatMap(getRawTableOption(dbName, _))
Review Comment:
cc @dongjoon-hyun
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org