1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-4800 emit error if IN filter > 65535 entries (#2480)

* MCOL-4800 emit error if IN filter > 65535 entries
This commit is contained in:
David.Hall
2022-08-04 11:21:58 -05:00
committed by GitHub
parent a9d8924683
commit d3b57ec767

View File

@ -3899,6 +3899,16 @@ ReturnedColumn* buildFunctionColumn(Item_func* ifp, gp_walk_info& gwi, bool& non
{ {
return NULL; return NULL;
} }
if (ifp->argument_count() > std::numeric_limits<uint16_t>::max())
{
nonSupport = true;
gwi.fatalParseError = true;
Message::Args args;
string info = funcName + " with argument count > " + std::to_string(std::numeric_limits<uint16_t>::max());
args.add(info);
gwi.parseErrorText = IDBErrorInfo::instance()->errorMsg(ERR_NON_SUPPORTED_FUNCTION, args);
return NULL;
}
if (!selectBetweenIn && (ifp->arguments()[0]->type() == Item::FIELD_ITEM || if (!selectBetweenIn && (ifp->arguments()[0]->type() == Item::FIELD_ITEM ||
(ifp->arguments()[0]->type() == Item::REF_ITEM && (ifp->arguments()[0]->type() == Item::REF_ITEM &&