1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-10-31 18:30:33 +03:00

add error and MTR test

This commit is contained in:
mariadb-KristinaPavlova
2025-08-13 15:18:20 +03:00
committed by drrtuy
parent 011a1edabb
commit 25b83f1cca
2 changed files with 20 additions and 1 deletions

View File

@@ -250,9 +250,15 @@ void gp_walk(const Item* item, void* arg)
{
Item* ncitem = const_cast<Item*>(item);
Item_func* ifp = static_cast<Item_func*>(ncitem);
std::string funcName = ifp->func_name();
if(ifp->arguments()[0] != nullptr && ifp->arguments()[0]->type()!= Item::FIELD_ITEM)
{
logging::Message::Args args;
args.add(funcName);
gwip->fatalParseError = true;
gwip->parseErrorText =
logging::IDBErrorInfo::instance()->errorMsg(logging::ERR_DATATYPE_NOT_SUPPORT, args);
std::cout<<gwip->parseErrorText<<std::endl;
return;
}