Skip to content

Commit 0753ee6

Browse files
committed
address comments
1 parent e7d928c commit 0753ee6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/EquivalentExpressions.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ class EquivalentExpressions {
8787
def childrenToRecurse: Seq[Expression] = expr match {
8888
case _: CodegenFallback => Nil
8989
case i: If => i.predicate :: Nil
90-
case c: CaseWhenBase => c.children.head :: Nil
90+
// `CaseWhen` implements `CodegenFallback`, we only need to handle `CaseWhenCodegen` here.
91+
case c: CaseWhenCodegen => c.children.head :: Nil
9192
case c: Coalesce => c.children.head :: Nil
9293
case other => other.children
9394
}

0 commit comments

Comments
 (0)