You've already forked mariadb-columnstore-engine
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:
committed by
drrtuy
parent
011a1edabb
commit
25b83f1cca
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
13
mysql-test/columnstore/basic/t/mcol6107.test
Normal file
13
mysql-test/columnstore/basic/t/mcol6107.test
Normal file
@@ -0,0 +1,13 @@
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS test_invalid_args;
|
||||
CREATE DATABASE test_invalid_args;
|
||||
USE test_invalid_args;
|
||||
--enable_warnings
|
||||
|
||||
create table cs1(i bigint)engine=columnstore;
|
||||
|
||||
# incorrect args - idbpartition must receive column name and it received a string literal
|
||||
--error 1815
|
||||
select count(i) from cs1 where idbpartition('i') = '0.0.1';
|
||||
# Clean UP
|
||||
DROP DATABASE test_invalid_args;
|
||||
Reference in New Issue
Block a user