Skip to content

Commit 405be2d

Browse files
committed
Fix
1 parent 46a227e commit 405be2d

File tree

1 file changed

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

1 file changed

+1
-3
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/subquery.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -597,9 +597,7 @@ object RewriteCorrelatedScalarSubquery extends Rule[LogicalPlan] {
597597
attrMap: AttributeMap[Attribute]): Seq[E] = {
598598
if (attrMap.nonEmpty) {
599599
val newExprs = exprs.map { _.transform {
600-
case a: AttributeReference if attrMap.contains(a) =>
601-
val exprId = attrMap.getOrElse(a, a).exprId
602-
a.withExprId(exprId)
600+
case a: AttributeReference if attrMap.contains(a) => attrMap(a)
603601
}}
604602
newExprs.asInstanceOf[Seq[E]]
605603
} else {

0 commit comments

Comments
 (0)