Skip to content

Commit a40db10

Browse files
committed
fix UT failures
1 parent da2c82e commit a40db10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,8 @@ class Dataset[T] private[sql](
21732173
!output.exists(f => resolver(f.name, colName))
21742174
}.map { case (colName, col) => col.as(colName).named }
21752175

2176-
CollapseProject(Project(replacedAndExistingColumns ++ newColumns, logicalPlan))
2176+
val newPlan = Project(replacedAndExistingColumns ++ newColumns, logicalPlan)
2177+
CollapseProject(sparkSession.sessionState.analyzer.execute(newPlan))
21772178
}
21782179

21792180
/**

0 commit comments

Comments
 (0)