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
MCOL-5092 addendum modify moda() mtr tests with order by
fix an issue in moda() evaluate for string types
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user