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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]