cloud-fan commented on a change in pull request #26589: [SPARK-29947][SQL]
Improve ResolveRelations performance
URL: https://github.com/apache/spark/pull/26589#discussion_r362699345
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
##########
@@ -858,7 +861,12 @@ class Analyzer(
}
case u: UnresolvedRelation =>
- lookupRelation(u.multipartIdentifier).map(resolveViews).getOrElse(u)
+ val relationCache = AnalysisContext.get.relationCache
+ relationCache.getOrElse(u.tableName, {
Review comment:
shall we apply the cache in `lookupRelation` where we expand the name and
get the qualified table name?
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]