You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-5333: Full MTR tests for custom Build (#2732)
* Add MTR_SUITE_LIST * Typo * Add data download * Install tar and lz4 * Change the way MTR_SUITE_LIST is set up * Use bash for MTR_SUITE_LIST * Another one * Fix reference results for full MTR develop, disable broken JSON test and tests with 10GB database * Fix timestamps and truncate cos * Fix some more references * Fix dokcerhub step for custom build * One more fix for dockerhub step on custom build * Fix tests for regr functions with truncate * Full mtr set on nghtly + MTR_FULL_SET flag * One more fix for dockerhub * Fix MTR_FULL_SET * Testing MTR_FULL_SET * sorted_result in tests + fix typo * Truncate even more * Typo * truncate 2 more tests * Disable regr_* functions tests * fix setup mtr step * correct settings for table creation * Put setup for tests into drone * Fix for debian based distros * More truncates * Disable the rest --------- Co-authored-by: Leonid Fedorov <leonid.fedorov@mariadb.com>
This commit is contained in:
@ -39,7 +39,7 @@ lineitem CREATE TABLE `lineitem` (
|
||||
`l_shipinstruct` char(25) DEFAULT NULL,
|
||||
`l_shipmode` char(10) DEFAULT NULL,
|
||||
`l_comment` varchar(44) DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
insert into lineitem values
|
||||
(10,128449,3474,3,27,39890.88,0.06,0.07,'A','F','1994-01-16','1993-11-22','1994-01-23','DELIVER IN PERSON','SHIP','nal foxes wake.'),
|
||||
(10,128449,3474,3,27,39890.88,0.06,0.07,'A','F','1994-01-16','1993-11-22','1994-01-23','DELIVER IN PERSON','SHIP','nal foxes wake.'),
|
||||
|
@ -25,7 +25,7 @@ orders CREATE TABLE `orders` (
|
||||
`o_clerk` char(15) DEFAULT NULL,
|
||||
`o_shippriority` int(11) DEFAULT NULL,
|
||||
`o_comment` varchar(79) DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
drop table if exists lineitem;
|
||||
create table lineitem (
|
||||
l_orderkey int,
|
||||
@ -64,14 +64,14 @@ lineitem CREATE TABLE `lineitem` (
|
||||
`l_shipinstruct` char(25) DEFAULT NULL,
|
||||
`l_shipmode` char(10) DEFAULT NULL,
|
||||
`l_comment` varchar(44) DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
create table if not exists quicktest (c1 int, c2 char(15)) engine=columnstore;
|
||||
SHOW CREATE TABLE quicktest;
|
||||
Table Create Table
|
||||
quicktest CREATE TABLE `quicktest` (
|
||||
`c1` int(11) DEFAULT NULL,
|
||||
`c2` char(15) DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
insert into quicktest values (1,'Hello');
|
||||
insert into quicktest values (2,'world');
|
||||
select * from quicktest;
|
||||
|
@ -40,12 +40,30 @@ LOAD DATA INFILE '/data/qa/source/dbt3/1m/nation.tbl' INTO TABLE nation FIELDS T
|
||||
select count(*) from nation where n_regionkey = 2;
|
||||
count(*)
|
||||
5
|
||||
Warnings:
|
||||
Note 9999 Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-7; CacheI/O-7; BlocksTouched-7; PartitionBlocksEliminated-0; MsgBytesIn-0B; MsgBytesOut-0B; Mode-Distributed
|
||||
insert into nation values(25, 'Hawaiian Nation',5,'Hello world');
|
||||
Warnings:
|
||||
Note 9999 Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-7; CacheI/O-7; BlocksTouched-7; PartitionBlocksEliminated-0; MsgBytesIn-0B; MsgBytesOut-0B; Mode-Distributed
|
||||
update nation set n_regionkey = -1 where n_regionkey = 5;
|
||||
Warnings:
|
||||
Note 9999 Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-7; CacheI/O-7; BlocksTouched-7; PartitionBlocksEliminated-0; MsgBytesIn-0B; MsgBytesOut-0B; Mode-Distributed
|
||||
insert into nation1 select * from nation;
|
||||
Warnings:
|
||||
Note 9999 Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-30; CacheI/O-13; BlocksTouched-12; PartitionBlocksEliminated-0; MsgBytesIn-0B; MsgBytesOut-0B; Mode-Distributed
|
||||
LOAD DATA INFILE '/data/qa/source/dbt3/1m/nation.tbl' INTO TABLE nation FIELDS TERMINATED BY '|';
|
||||
Warnings:
|
||||
Note 9999 Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-30; CacheI/O-13; BlocksTouched-12; PartitionBlocksEliminated-0; MsgBytesIn-0B; MsgBytesOut-0B; Mode-Distributed
|
||||
delete from nation;
|
||||
Warnings:
|
||||
Note 9999 Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-30; CacheI/O-13; BlocksTouched-12; PartitionBlocksEliminated-0; MsgBytesIn-0B; MsgBytesOut-0B; Mode-Distributed
|
||||
select user, priority, queryType, query from infinidb_querystats.querystats;
|
||||
user priority queryType query
|
||||
root LOW LOAD_DATA_INFILE LOAD DATA INFILE '/data/qa/source/dbt3/1m/nation.tbl' INTO TABLE nation FIELDS TERMINATED BY '|'
|
||||
root LOW SELECT select count(*) from nation where n_regionkey = 2
|
||||
root LOW UPDATE update nation set n_regionkey = -1 where n_regionkey = 5
|
||||
root LOW SELECT insert into nation1 select * from nation
|
||||
root LOW LOAD_DATA_INFILE LOAD DATA INFILE '/data/qa/source/dbt3/1m/nation.tbl' INTO TABLE nation FIELDS TERMINATED BY '|'
|
||||
root LOW DELETE delete from nation
|
||||
DROP USER 'cejuser'@'localhost';
|
||||
DROP DATABASE mcs4011_db;
|
||||
|
@ -8,9 +8,9 @@ cidx CDECIMAL1 COS(CDECIMAL1)
|
||||
select cidx, CDECIMAL4, COS(CDECIMAL4) from datatypetestm order by cidx;
|
||||
cidx CDECIMAL4 COS(CDECIMAL4)
|
||||
1 -999 0.9996498529808264
|
||||
select cidx, CDECIMAL4_2, COS(CDECIMAL4_2) from datatypetestm order by cidx;
|
||||
cidx CDECIMAL4_2 COS(CDECIMAL4_2)
|
||||
1 -9.99 -0.8444696962887724
|
||||
select cidx, CDECIMAL4_2, TRUNCATE(COS(CDECIMAL4_2), 15) from datatypetestm order by cidx;
|
||||
cidx CDECIMAL4_2 TRUNCATE(COS(CDECIMAL4_2), 15)
|
||||
1 -9.99 -0.844469696288772
|
||||
select cidx, CDECIMAL5, COS(CDECIMAL5) from datatypetestm order by cidx;
|
||||
cidx CDECIMAL5 COS(CDECIMAL5)
|
||||
1 -999 0.9996498529808264
|
||||
|
@ -1,4 +1,5 @@
|
||||
USE autopilot;
|
||||
SET @@session.time_zone = "+00:00";
|
||||
select cidx, CBIGINT, FROM_UNIXTIME(CBIGINT) from datatypetestm order by cidx;
|
||||
cidx CBIGINT FROM_UNIXTIME(CBIGINT)
|
||||
1 -72036854775806 NULL
|
||||
|
@ -8,9 +8,9 @@ cidx CDECIMAL1 COS(CDECIMAL1)
|
||||
select cidx, CDECIMAL4, COS(CDECIMAL4) from datatypetestm order by cidx;
|
||||
cidx CDECIMAL4 COS(CDECIMAL4)
|
||||
1 -999 0.9996498529808264
|
||||
select cidx, CDECIMAL4_2, COS(CDECIMAL4_2) from datatypetestm order by cidx;
|
||||
cidx CDECIMAL4_2 COS(CDECIMAL4_2)
|
||||
1 -9.99 -0.8444696962887724
|
||||
select cidx, CDECIMAL4_2, TRUNCATE(COS(CDECIMAL4_2), 15) from datatypetestm order by cidx;
|
||||
cidx CDECIMAL4_2 TRUNCATE(COS(CDECIMAL4_2), 15)
|
||||
1 -9.99 -0.844469696288772
|
||||
select cidx, CDECIMAL5, COS(CDECIMAL5) from datatypetestm order by cidx;
|
||||
cidx CDECIMAL5 COS(CDECIMAL5)
|
||||
1 -999 0.9996498529808264
|
||||
|
@ -1,4 +1,5 @@
|
||||
USE autopilot;
|
||||
SET @@session.time_zone = "+00:00";
|
||||
select cidx, CBIGINT, FROM_UNIXTIME(CBIGINT) from datatypetestm order by cidx;
|
||||
cidx CBIGINT FROM_UNIXTIME(CBIGINT)
|
||||
1 -72036854775806 NULL
|
||||
|
@ -1,4 +1,5 @@
|
||||
USE autopilot;
|
||||
SET @@session.time_zone = "+00:00";
|
||||
select cidx, CDATE, UNIX_TIMESTAMP(CDATE) from datatypetestm order by cidx;
|
||||
cidx CDATE UNIX_TIMESTAMP(CDATE)
|
||||
1 1997-01-01 852076800
|
||||
|
@ -1,4 +1,5 @@
|
||||
USE autopilot;
|
||||
SET @@session.time_zone = "+00:00";
|
||||
select cidx, CDATE, UNIX_TIMESTAMP(CDATE) from datatypetestm order by cidx;
|
||||
cidx CDATE UNIX_TIMESTAMP(CDATE)
|
||||
1 1997-01-01 852076800
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user