We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7d928c commit 0753ee6Copy full SHA for 0753ee6
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/EquivalentExpressions.scala
@@ -87,7 +87,8 @@ class EquivalentExpressions {
87
def childrenToRecurse: Seq[Expression] = expr match {
88
case _: CodegenFallback => Nil
89
case i: If => i.predicate :: Nil
90
- case c: CaseWhenBase => c.children.head :: Nil
+ // `CaseWhen` implements `CodegenFallback`, we only need to handle `CaseWhenCodegen` here.
91
+ case c: CaseWhenCodegen => c.children.head :: Nil
92
case c: Coalesce => c.children.head :: Nil
93
case other => other.children
94
}
0 commit comments