Skip to content

Commit

Permalink
Update sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expr…
Browse files Browse the repository at this point in the history
…essions/Expression.scala

Co-authored-by: Pat Sukprasert <pat.sukprasert@databricks.com>
  • Loading branch information
cloud-fan and patsukp-db authored Oct 17, 2024
1 parent be4bdb1 commit fbea11f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1354,8 +1354,7 @@ trait CommutativeExpression extends Expression {
// [SPARK-49977]: Use iterative approach to avoid creating many temporary List objects
// for deep expression trees through recursion.
while (stack.nonEmpty) {
val current = stack.pop()
current match {
stack.pop() match {
case c: CommutativeExpression if f.isDefinedAt(c) =>
stack.pushAll(f(c))
case other =>
Expand Down

0 comments on commit fbea11f

Please sign in to comment.