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_r362442490
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
 ##########
 @@ -861,7 +865,13 @@ class Analyzer(
           case other => i.copy(table = other)
         }
 
-      case u: UnresolvedRelation => resolveRelation(u)
+      case u: UnresolvedRelation =>
+        val relationToLogicalPlanMaps = 
AnalysisContext.get.relationToLogicalPlanMaps
+        relationToLogicalPlanMaps.getOrElse(u, {
 
 Review comment:
   I think it's safer to use the qualified table name as the key, i.e. after 
calling `withNewNamespace`

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

Reply via email to