You've already forked mariadb-columnstore-engine
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:
committed by
Leonid Fedorov
parent
6d1c6d8242
commit
3bb2496ca1
@ -86,7 +86,11 @@ COUNT(*)
|
||||
9
|
||||
SELECT COUNT(*) FROM t1 GROUP BY t1_blob;
|
||||
COUNT(*)
|
||||
14
|
||||
1
|
||||
1
|
||||
3
|
||||
3
|
||||
6
|
||||
SELECT COUNT(*) FROM t1 GROUP BY t1_text;
|
||||
COUNT(*)
|
||||
1
|
||||
|
Reference in New Issue
Block a user