Skip to content

Commit 1ccbfa8

Browse files
committed
fix foreachUp
1 parent 30a6e0d commit 1ccbfa8

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/trees/TreeNode.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ abstract class TreeNode[BaseType <: TreeNode[BaseType]] {
8585
* @param f the function to be applied to each node in the tree.
8686
*/
8787
def foreachUp(f: BaseType => Unit): Unit = {
88-
children.foreach(_.foreach(f))
88+
children.foreach(_.foreachUp(f))
8989
f(this)
9090
}
9191

0 commit comments

Comments
 (0)