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

MCOL-5092 addendum modify moda() mtr tests with order by

fix an issue in moda() evaluate for string types
This commit is contained in:
david.hall
2022-08-15 15:50:15 -05:00
parent 56bbef62e6
commit 05bdddf3a9
3 changed files with 14 additions and 14 deletions

View File

@ -589,7 +589,7 @@ mcsv1_UDAF::ReturnCode Moda_impl_T<string>::evaluate(mcsv1Context* context, stat
else if (iter->second == maxCnt)
{
// Tie breaker: choose smallest according to collation
if (cs.strnncollsp(val, lastVal) < 0)
if (cs.strnncollsp(iter->first, lastVal) < 0)
{
val = iter->first;
}