You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +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:
@ -5206,17 +5206,17 @@ ReturnedColumn* buildAggregateColumn(Item* item, gp_walk_info& gwi)
|
|||||||
|
|
||||||
// @bug 3603. for cases like max(rand()). try to build function first.
|
// @bug 3603. for cases like max(rand()). try to build function first.
|
||||||
if (!rc)
|
if (!rc)
|
||||||
|
{
|
||||||
rc = buildFunctionColumn(ifp, gwi, gwi.fatalParseError);
|
rc = buildFunctionColumn(ifp, gwi, gwi.fatalParseError);
|
||||||
|
}
|
||||||
|
if (!rc)
|
||||||
|
{
|
||||||
|
gwi.fatalParseError = true;
|
||||||
|
}
|
||||||
parm.reset(rc);
|
parm.reset(rc);
|
||||||
gwi.clauseType = clauseType;
|
gwi.clauseType = clauseType;
|
||||||
|
|
||||||
if (gwi.fatalParseError)
|
|
||||||
break;
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case Item::REF_ITEM:
|
case Item::REF_ITEM:
|
||||||
{
|
{
|
||||||
ReturnedColumn* rc = buildReturnedColumn(sfitemp, gwi, gwi.fatalParseError);
|
ReturnedColumn* rc = buildReturnedColumn(sfitemp, gwi, gwi.fatalParseError);
|
||||||
|
Reference in New Issue
Block a user