Skip to content

Commit 0a79d39

Browse files
committed
Revert "Undo part of a SparkPlanTest change in #7162 that broke my test."
This reverts commit 7c3c864.
1 parent 7c3c864 commit 0a79d39

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sql/core/src/test/scala/org/apache/spark/sql/execution/SparkPlanTest.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,7 @@ object SparkPlanTest {
301301
val resolvedPlan = TestSQLContext.prepareForExecution.execute(
302302
outputPlan transform {
303303
case plan: SparkPlan =>
304-
val inputMap = plan.children.flatMap(_.output).zipWithIndex.map { case (a, i) =>
305-
(a.name, BoundReference(i, a.dataType, a.nullable))
306-
}.toMap
304+
val inputMap = plan.children.flatMap(_.output).map(a => (a.name, a)).toMap
307305
plan.transformExpressions {
308306
case UnresolvedAttribute(Seq(u)) =>
309307
inputMap.getOrElse(u,

0 commit comments

Comments
 (0)