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

MCOL-603 Add error message for sum(a=1) (#2597)

* MCOL-603 Add error message for sum(a=1)
This isn't currently supported, but rather than emitting an error, it asserted and crashed.
This commit is contained in:
David.Hall
2022-11-01 10:13:40 -05:00
committed by GitHub
parent 511a9e726f
commit 6d680ceb8c

View File

@ -5206,17 +5206,17 @@ ReturnedColumn* buildAggregateColumn(Item* item, gp_walk_info& gwi)
// @bug 3603. for cases like max(rand()). try to build function first.
if (!rc)
{
rc = buildFunctionColumn(ifp, gwi, gwi.fatalParseError);
}
if (!rc)
{
gwi.fatalParseError = true;
}
parm.reset(rc);
gwi.clauseType = clauseType;
if (gwi.fatalParseError)
break;
break;
}
case Item::REF_ITEM:
{
ReturnedColumn* rc = buildReturnedColumn(sfitemp, gwi, gwi.fatalParseError);