Skip to content

Commit e38f264

Browse files
committed
Comment.
1 parent f9d6a73 commit e38f264

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ object ProjectCollapsing extends Rule[LogicalPlan] {
186186
}
187187

188188
def apply(plan: LogicalPlan): LogicalPlan = plan transformUp {
189-
// We only collapse these two
189+
// We only collapse these two Projects if the child Project's expressions are all
190+
// deterministic.
190191
case Project(projectList1, Project(projectList2, child))
191192
if !hasNondeterministic(projectList2) =>
192193
// Create a map of Aliases to their values from the child projection.

0 commit comments

Comments
 (0)