Github user twalthr commented on a diff in the pull request: https://github.com/apache/flink/pull/5438#discussion_r167503729 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/codegen/calls/ScalarOperators.scala --- @@ -351,7 +351,7 @@ object ScalarOperators { else { s""" |${operand.code} - |boolean $resultTerm = false; + |boolean $resultTerm = ${operand.resultTerm} == null; --- End diff -- This is not a bug but intended. The result type should be a primitive at this point. I remove it and all tests are still working correctly.
---