1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00

MCOL-1510 GROUP BY supports aggregates as arguments in numerical functions.

This commit is contained in:
Roman Nozdrin
2018-07-09 18:36:28 +03:00
parent cdd9bed1ae
commit 80fc93c9df

View File

@@ -3412,6 +3412,13 @@ ReturnedColumn* buildFunctionColumn(
ReturnedColumn* rc = buildReturnedColumn(ifp->arguments()[i], gwi, nonSupport);
// MCOL-1510 It must be a temp table field, so find the corresponding column.
if (pushdownHand
&& ifp->arguments()[i]->type() == Item::REF_ITEM)
{
rc = findCorrespTempField(static_cast<Item_ref*>(ifp->arguments()[i]), gwi);
}
if (!rc || nonSupport)
{
nonSupport = true;