Skip to content

Commit 77b739a

Browse files
committed
Fix test error
1 parent 07e6b7f commit 77b739a

File tree

1 file changed

+1
-1
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,6 @@ class Analyzer(
799799
* Replaces [[UnresolvedRelation]]s with concrete relations from the catalog.
800800
*/
801801
object ResolveRelations extends Rule[LogicalPlan] {
802-
private val relationToLogicalPlanMaps = AnalysisContext.get.relationToLogicalPlanMaps
803802

804803
// If an unresolved relation is given, it is looked up from the session catalog and either v1
805804
// or v2 relation is returned. Otherwise, we look up the table from catalog
@@ -867,6 +866,7 @@ class Analyzer(
867866
}
868867

869868
case u: UnresolvedRelation =>
869+
val relationToLogicalPlanMaps = AnalysisContext.get.relationToLogicalPlanMaps
870870
relationToLogicalPlanMaps.getOrElse(u, {
871871
val relation = resolveRelation(u)
872872
relationToLogicalPlanMaps.update(u, relation)

0 commit comments

Comments
 (0)