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 67fca18 commit 4f049ccCopy full SHA for 4f049cc
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala
@@ -236,7 +236,7 @@ case class CaseWhen(branches: Seq[Expression]) extends Expression {
236
237
override def nullable = {
238
// If no value is nullable and no elseValue is provided, the whole statement defaults to null.
239
- values.exists(_.nullable) || (values.length % 2 == 0)
+ values.exists(_.nullable) || (branches.length % 2 == 0)
240
}
241
242
override lazy val resolved = {
0 commit comments