cloud-fan commented on a change in pull request #30325:
URL: https://github.com/apache/spark/pull/30325#discussion_r524198995
##########
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:
`HiveExternalCatalog.prunePartitionsByFilter` will prune the partitions
returned by hive client again. It doesn't seem to matter where we handle this
special logic. Since it's hive specific, I think we should put it as close to
hive client as possible.
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]