Skip to content

Commit ae25004

Browse files
committed
Fix check of literal.
1 parent e413043 commit ae25004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/ExpressionCodegen.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ object ExpressionCodegen {
223223
}
224224

225225
// If it is a nullable expression and `isNull` is not a literal.
226-
if (inputVar.nullable && ev.isNull != "true" && ev.isNull != "false") {
226+
if (inputVar.nullable && !ev.isNull.isInstanceOf[LiteralValue]) {
227227
params += ((ev.isNull, s"boolean ${ev.isNull}"))
228228
}
229229

0 commit comments

Comments
 (0)