wangyum commented on a change in pull request #30325:
URL: https://github.com/apache/spark/pull/30325#discussion_r524845159



##########
File path: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveExternalCatalog.scala
##########
@@ -1267,9 +1267,19 @@ private[spark] class HiveExternalCatalog(conf: 
SparkConf, hadoopConf: Configurat
     val catalogTable = restoreTableMetadata(rawTable)
 
     val partColNameMap = buildLowerCasePartColNameMap(catalogTable)
+    val hivePredicates = predicates.map {
+      // Avoid Hive metastore stack overflow.

Review comment:
       I have a little concern, we don’t use `HiveClient.getPartitionsByFilter` 
in other code path, but I’m not sure if any users use it.
   
   
![image](https://user-images.githubusercontent.com/5399861/99322759-9c326880-28ab-11eb-88fb-d0e5dfb52533.png)




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to