1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-24 22:42:05 +03:00

MCOL-1734 This patch fixes the error for NOT IN + subquery when outer query has NULLs in a key

column.
The if statement that decides whether to add the Row into a result set
or not has a logic error thus produces false positives for the case
described in MCOL-1734.
This commit is contained in:
drrtuy
2019-12-06 20:31:23 +03:00
committed by Roman Nozdrin
parent 38e0114eff
commit 5174c40bfe

View File

@ -1190,7 +1190,7 @@ void BatchPrimitiveProcessor::executeTupleJoin()
*/
if (((!found || isNull) && !(joinTypes[j] & (LARGEOUTER | ANTI))) ||
((joinTypes[j] & ANTI) && ((isNull && (joinTypes[j] & MATCHNULLS)) || (found && !isNull))))
((joinTypes[j] & ANTI) && ((isNull && !(joinTypes[j] & MATCHNULLS)) || (found && !isNull))))
{
//cout << " - not in the result set\n";
break;