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

Updated autopilot adn extended cases

This commit is contained in:
mariadb-DanielLee
2022-08-18 21:08:05 -05:00
parent 471b8e3e09
commit 54329d3ab8
5 changed files with 12 additions and 9 deletions

Binary file not shown.

View File

@ -18,9 +18,7 @@ cInt cVarchar cText
1 [1, 2] [1, 2] 1 [1, 2] [1, 2]
1 [3, 4] [3, 4] 1 [3, 4] [3, 4]
SELECT cVarchar, JSON_MERGE(cVarchar, @json2), cText, JSON_MERGE(cText, @json2) from jsontest; SELECT cVarchar, JSON_MERGE(cVarchar, @json2), cText, JSON_MERGE(cText, @json2) from jsontest;
cVarchar JSON_MERGE(cVarchar, @json2) cText JSON_MERGE(cText, @json2) ERROR 42000: The storage engine for the table doesn't support MCS-1001: Function 'json_merge_preserve' isn't supported.
[1, 2] [1, 2, 3, 4] [1, 2] [1, 2, 3, 4]
[3, 4] [3, 4, 3, 4] [3, 4] [3, 4, 3, 4]
SELECT cVarchar, JSON_MERGE(cVarchar, cText), cText, JSON_MERGE(cText, cVarchar) from jsontest; SELECT cVarchar, JSON_MERGE(cVarchar, cText), cText, JSON_MERGE(cText, cVarchar) from jsontest;
ERROR 42000: The storage engine for the table doesn't support MCS-1001: Function 'json_merge_preserve' isn't supported. ERROR 42000: The storage engine for the table doesn't support MCS-1001: Function 'json_merge_preserve' isn't supported.
TRUNCATE TABLE jsontest; TRUNCATE TABLE jsontest;

View File

@ -19,6 +19,7 @@ INSERT INTO jsontest VALUES (1, @json2, @json2);
SELECT JSON_MERGE(@json1,@json2); SELECT JSON_MERGE(@json1,@json2);
# #
SELECT * FROM jsontest; SELECT * FROM jsontest;
--error 1178
SELECT cVarchar, JSON_MERGE(cVarchar, @json2), cText, JSON_MERGE(cText, @json2) from jsontest; SELECT cVarchar, JSON_MERGE(cVarchar, @json2), cText, JSON_MERGE(cText, @json2) from jsontest;
--error 1178 --error 1178
SELECT cVarchar, JSON_MERGE(cVarchar, cText), cText, JSON_MERGE(cText, cVarchar) from jsontest; SELECT cVarchar, JSON_MERGE(cVarchar, cText), cText, JSON_MERGE(cText, cVarchar) from jsontest;

View File

@ -20,21 +20,23 @@ l_shipmode char (10),
l_comment varchar (44) l_comment varchar (44)
) engine=columnstore DEFAULT CHARSET=utf8mb3; ) engine=columnstore DEFAULT CHARSET=utf8mb3;
LOAD DATA INFILE '/data/qa/source/dbt3/10g/lineitem.tbl' INTO TABLE lineitem FIELDS TERMINATED BY '|'; LOAD DATA INFILE '/data/qa/source/dbt3/10g/lineitem.tbl' INTO TABLE lineitem FIELDS TERMINATED BY '|';
LOAD DATA INFILE '/data/qa/source/dbt3/10g/lineitem.tbl' INTO TABLE lineitem FIELDS TERMINATED BY '|';
LOAD DATA INFILE '/data/qa/source/dbt3/10g/lineitem.tbl' INTO TABLE lineitem FIELDS TERMINATED BY '|';
SELECT COUNT(*) FROM lineitem; SELECT COUNT(*) FROM lineitem;
COUNT(*) COUNT(*)
59986052 179958156
SET autocommit=off; SET autocommit=off;
UPDATE lineitem SET l_orderkey=-1, l_linenumber=-1; UPDATE lineitem SET l_orderkey=-1, l_linenumber=-1;
SELECT COUNT(*) FROM lineitem where l_orderkey=-1 and l_linenumber=-1; SELECT COUNT(*) FROM lineitem where l_orderkey=-1 and l_linenumber=-1;
COUNT(*) COUNT(*)
59986052 179958156
rollback; rollback;
SELECT COUNT(*) FROM lineitem where l_orderkey=-1 and l_linenumber=-1; SELECT COUNT(*) FROM lineitem where l_orderkey=-1 and l_linenumber=-1;
COUNT(*) COUNT(*)
0 0
update lineitem set l_orderkey=-2, l_linenumber=-2,l_comment='hello'; update lineitem set l_orderkey=-2, l_linenumber=-2, l_comment='hello', l_shipinstruct=l_shipmode;
ERROR HY000: Internal error: CAL0002: Update Failed: MCS-2008: The version buffer overflowed. Increase VersionBufferFileSize or limit the rows to be processed. ERROR HY000: Internal error: CAL0002: Update Failed: MCS-2008: The version buffer overflowed. Increase VersionBufferFileSize or limit the rows to be processed.
SELECT COUNT(*) FROM lineitem where l_orderkey=-2 and l_linenumber=-2 and l_comment='hello'; SELECT COUNT(*) FROM lineitem where l_orderkey=-2 and l_linenumber=-2 and l_comment='hello' and l_shipinstruct=l_shipmode;
COUNT(*) COUNT(*)
0 0
DROP DATABASE mcs7000_db; DROP DATABASE mcs7000_db;

View File

@ -37,6 +37,8 @@ l_comment varchar (44)
# LDI 10g dataset for the lineitem table # LDI 10g dataset for the lineitem table
# -------------------------------------------------------------- # # -------------------------------------------------------------- #
LOAD DATA INFILE '/data/qa/source/dbt3/10g/lineitem.tbl' INTO TABLE lineitem FIELDS TERMINATED BY '|'; LOAD DATA INFILE '/data/qa/source/dbt3/10g/lineitem.tbl' INTO TABLE lineitem FIELDS TERMINATED BY '|';
LOAD DATA INFILE '/data/qa/source/dbt3/10g/lineitem.tbl' INTO TABLE lineitem FIELDS TERMINATED BY '|';
LOAD DATA INFILE '/data/qa/source/dbt3/10g/lineitem.tbl' INTO TABLE lineitem FIELDS TERMINATED BY '|';
SELECT COUNT(*) FROM lineitem; SELECT COUNT(*) FROM lineitem;
# #
# Version buffer positive test - successful update expected # Version buffer positive test - successful update expected
@ -48,8 +50,8 @@ SELECT COUNT(*) FROM lineitem where l_orderkey=-1 and l_linenumber=-1;
# Version buffer negative test - overflow error expected # Version buffer negative test - overflow error expected
--error 1815 --error 1815
--error ER_INTERNAL_ERROR --error ER_INTERNAL_ERROR
update lineitem set l_orderkey=-2, l_linenumber=-2,l_comment='hello'; update lineitem set l_orderkey=-2, l_linenumber=-2, l_comment='hello', l_shipinstruct=l_shipmode;
SELECT COUNT(*) FROM lineitem where l_orderkey=-2 and l_linenumber=-2 and l_comment='hello'; SELECT COUNT(*) FROM lineitem where l_orderkey=-2 and l_linenumber=-2 and l_comment='hello' and l_shipinstruct=l_shipmode;
# #
DROP DATABASE mcs7000_db; DROP DATABASE mcs7000_db;
# #