[TRAFODION-3190] expression involving NULL should be treated as FALSE, not TRUE.
Can one of the admins verify this patch?
Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/3027/
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Test Passed. https://jenkins.esgyn.com/job/Check-PR-master/3027/
New Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/3035/
Test Passed. https://jenkins.esgyn.com/job/Check-PR-master/3035/
New Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/3036/
Test Passed. https://jenkins.esgyn.com/job/Check-PR-master/3036/
Dave is correct. Thanks for pointing it out.
Branch clause need to evaluate the second leg if the first leg is 'not false' which means it is 'true or null'. With this change, it will branch out by treating null as false.
Similar comments were added to an earlier PR 1705 for this same jira and those comments apply here as well.
For the original issue where CASE WHEN stmt was not proceeding to ELSE leg, a change need to be added so boolean result is evaluated to at the very end of THEN clause. At that time, NULL can be treated as FALSE and control to move to ELSE part. This is same as a WHERE predicate where only at the end of predicate evaluation can one determine if the result is true or false/null.