We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46a227e commit 405be2dCopy full SHA for 405be2d
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/subquery.scala
@@ -597,9 +597,7 @@ object RewriteCorrelatedScalarSubquery extends Rule[LogicalPlan] {
597
attrMap: AttributeMap[Attribute]): Seq[E] = {
598
if (attrMap.nonEmpty) {
599
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)
+ case a: AttributeReference if attrMap.contains(a) => attrMap(a)
603
}}
604
newExprs.asInstanceOf[Seq[E]]
605
} else {
0 commit comments