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-3485 Fix ORDER BY not working with multiple aggregates of same type in SELECT
This commit is contained in:
@ -4941,7 +4941,8 @@ ReturnedColumn* buildAggregateColumn(Item* item, gp_walk_info& gwi)
|
||||
{
|
||||
for (uint32_t i = 0; i < gwi.returnedCols.size(); i++)
|
||||
{
|
||||
if (*ac == gwi.returnedCols[i].get())
|
||||
if (*ac == gwi.returnedCols[i].get()
|
||||
&& ac->alias() == gwi.returnedCols[i].get()->alias())
|
||||
ac->expressionId(gwi.returnedCols[i]->expressionId());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user