cloud-fan commented on a change in pull request #34241:
URL: https://github.com/apache/spark/pull/34241#discussion_r735702643
##########
File path:
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala
##########
@@ -662,6 +667,10 @@ private[hive] class HiveClientImpl(
|======================
""".stripMargin)
throw e
+ } finally {
+ // Since Spark can't know the actual num of matching partitions,
+ // here Spark update hive client calls one by one.
+ HiveCatalogMetrics.incrementHiveClientCalls(1)
Review comment:
Why not do it right before `shim.dropPartition`?
--
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]