fix #34001: NULL handling in search condition CASE/WHEN#38146
fix #34001: NULL handling in search condition CASE/WHEN#38146pumpkin-bit wants to merge 1 commit intodotnet:mainfrom
Conversation
|
/cc @ranma42 |
|
IIRC this approach works, but it is very likely to cause significant regressions, because it duplicates the subexpression and always introduces the |
Yes, I completely agree with you to fix this, you could use a three state case wrapper only for expressions that can actually be |
For this, see #33889 - this is something I believe we should definitely consider. But it's a really non-trivial architectural change to the way the query pipeline works. |
fixes #34001 bug issue
Description
The SqlServer
SearchConditionConverterpreviously forced a binary translationCASE WHEN <condition> THEN 1 ELSE 0 END. This caused UNKNOWN evaluations when NULL was involved in the original expression to erroneously fall back to 0 false.My local test
Log test