1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

fix: MCOL-5755: incorrect handling of BLOB (and TEXT) in GROUP BY

BLOB fields did not work as grouping keys at all, they were assigned
value NULL for any value, be it NULL or not. The fix is in the
rowaggregation.cpp in the initMapping(), a switch/case branch was added
to handle BLOB field copying there.

Also, TEXT columns did not distinguish between NULL and empty string in
the grouping algorithm, now they do. The fix is in the equals()
function, now we specifically check for isNull() equality between
values.
This commit is contained in:
Serguey Zefirov
2024-07-09 10:29:08 +03:00
committed by Sergey Zefirov
parent f5089c7d80
commit 6e995e2e80
8 changed files with 79 additions and 10 deletions

View File

@ -81,7 +81,7 @@ class ConstString
}
bool eq(const ConstString& rhs) const
{
if (!mStr)
if (!mStr || !rhs.mStr)
{
return mStr == rhs.mStr;
}