Skip to content

Commit

Permalink
[SPARK-25150][SQL] Fix review findings 5
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-toth committed Sep 6, 2018
1 parent 3f15aab commit 938bd7f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,6 @@ class Analyzer(
* a logical plan node's children.
*/
object ResolveReferences extends Rule[LogicalPlan] {

private val emptyAttrMap = new AttributeMap[Attribute](Map.empty)

/**
Expand Down Expand Up @@ -930,7 +929,7 @@ class Analyzer(
case j @ Join(left, right, _, condition) if !j.duplicateResolved =>
val (dedupedRight, attributeRewrites) = dedupRight(left, right)
val changedCondition = condition.map(_.transform {
case attr: Attribute if attr.resolved => attributeRewrites.getOrElse(attr, attr)
case attr: Attribute if attr.resolved => dedupAttr(attr, attributeRewrites)
})
j.copy(right = dedupedRight, condition = changedCondition)
case i @ Intersect(left, right, _) if !i.duplicateResolved =>
Expand Down

0 comments on commit 938bd7f

Please sign in to comment.