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

1. Fix for group_concat(distinct ... ) to use all unique values in a row.

2. Explicitly set array bounds for Row::hash() and Row::equals().
This commit is contained in:
Gagan Goel
2019-08-15 01:15:05 -04:00
parent 4a4d35180a
commit 6ccdb4ac10
3 changed files with 5 additions and 5 deletions

View File

@ -506,8 +506,8 @@ uint64_t IdbOrderBy::Hasher::operator()(const Row::Pointer& p) const
{
Row& row = ts->row1;
row.setPointer(p);
// MCOL-1829 Row::h uses colcount as an array idx down a callstack.
uint64_t ret = row.hash();
// MCOL-1829 Row::hash uses colcount - 1 as an array idx down a callstack.
uint64_t ret = row.hash(colCount - 1);
return ret;
}
@ -517,7 +517,7 @@ bool IdbOrderBy::Eq::operator()(const Row::Pointer& d1, const Row::Pointer& d2)
r1.setPointer(d1);
r2.setPointer(d2);
// MCOL-1829 Row::equals uses 2nd argument as key columns container size boundary
bool ret = r1.equals(r2, colCount);
bool ret = r1.equals(r2, colCount - 1);
return ret;
}