You've already forked mariadb-columnstore-engine
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user