You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
Dlee mtr restructure (#2494)
* Restructured test suites and added autopilot and extended suites * Updated autopilot with correct branch - develop * Moved setup test case to a 'setup' directory, for consistency * Fixed a path issue * Updated some tests cases to keep up with development Co-authored-by: root <root@rocky8.localdomain>
This commit is contained in:
3
mysql-test/columnstore/include/ssb/countCustomer.inc
Executable file
3
mysql-test/columnstore/include/ssb/countCustomer.inc
Executable file
@ -0,0 +1,3 @@
|
||||
# select count customer table
|
||||
#
|
||||
select count(*) from customer;
|
3
mysql-test/columnstore/include/ssb/countDateinfo.inc
Executable file
3
mysql-test/columnstore/include/ssb/countDateinfo.inc
Executable file
@ -0,0 +1,3 @@
|
||||
# select count dateinfo table
|
||||
#
|
||||
select count(*) from dateinfo;
|
3
mysql-test/columnstore/include/ssb/countLineorder.inc
Executable file
3
mysql-test/columnstore/include/ssb/countLineorder.inc
Executable file
@ -0,0 +1,3 @@
|
||||
# select count lineorder table
|
||||
#
|
||||
select count(*) from lineorder;
|
3
mysql-test/columnstore/include/ssb/countPart.inc
Executable file
3
mysql-test/columnstore/include/ssb/countPart.inc
Executable file
@ -0,0 +1,3 @@
|
||||
# select count part table
|
||||
#
|
||||
select count(*) from part;
|
3
mysql-test/columnstore/include/ssb/countSupplier.inc
Executable file
3
mysql-test/columnstore/include/ssb/countSupplier.inc
Executable file
@ -0,0 +1,3 @@
|
||||
# select count supplier table
|
||||
#
|
||||
select count(*) from supplier;
|
7
mysql-test/columnstore/include/ssb/countTables.inc
Executable file
7
mysql-test/columnstore/include/ssb/countTables.inc
Executable file
@ -0,0 +1,7 @@
|
||||
# select count ssb tables
|
||||
#
|
||||
SELECT COUNT(*) FROM customer;
|
||||
SELECT COUNT(*) FROM dateinfo;
|
||||
SELECT COUNT(*) FROM part;
|
||||
SELECT COUNT(*) FROM lineorder;
|
||||
SELECT COUNT(*) FROM supplier;
|
16
mysql-test/columnstore/include/ssb/createCustomer.inc
Executable file
16
mysql-test/columnstore/include/ssb/createCustomer.inc
Executable file
@ -0,0 +1,16 @@
|
||||
# create customer table
|
||||
#
|
||||
--disable_warnings
|
||||
drop table if exists customer;
|
||||
--enable_warnings
|
||||
create table customer (
|
||||
c_custkey int,
|
||||
c_name varchar (25),
|
||||
c_address varchar (25),
|
||||
c_city char (10),
|
||||
c_nation char (15),
|
||||
c_region char (12),
|
||||
c_phone char (15),
|
||||
c_mktsegment char (10)
|
||||
) engine=Columnstore;
|
||||
SHOW CREATE TABLE customer;
|
25
mysql-test/columnstore/include/ssb/createDateinfo.inc
Executable file
25
mysql-test/columnstore/include/ssb/createDateinfo.inc
Executable file
@ -0,0 +1,25 @@
|
||||
# create dateinfo table
|
||||
#
|
||||
--disable_warnings
|
||||
drop table if exists dateinfo;
|
||||
--enable_warnings
|
||||
create table `dateinfo` (
|
||||
d_datekey int,
|
||||
d_date char (18),
|
||||
d_dayofweek char (9),
|
||||
d_month char (9),
|
||||
d_year int,
|
||||
d_yearmonthnum int,
|
||||
d_yearmonth char (7),
|
||||
d_daynuminweek int,
|
||||
d_daynuminmonth int,
|
||||
d_daynuminyear int,
|
||||
d_monthnuminyear int,
|
||||
d_weeknuminyear int,
|
||||
d_sellingseason varchar (12),
|
||||
d_lastdayinweekfl tinyint,
|
||||
d_lastdayinmonthfl tinyint,
|
||||
d_holidayfl tinyint,
|
||||
d_weekdayfl tinyint
|
||||
) engine=Columnstore;
|
||||
SHOW CREATE TABLE dateinfo;
|
25
mysql-test/columnstore/include/ssb/createLineorder.inc
Executable file
25
mysql-test/columnstore/include/ssb/createLineorder.inc
Executable file
@ -0,0 +1,25 @@
|
||||
# create lineorder table
|
||||
#
|
||||
--disable_warnings
|
||||
drop table if exists lineorder;
|
||||
--enable_warnings
|
||||
create table lineorder (
|
||||
lo_orderkey bigint,
|
||||
lo_linenumber int,
|
||||
lo_custkey int,
|
||||
lo_partkey int,
|
||||
lo_suppkey int,
|
||||
lo_orderdate int,
|
||||
lo_orderpriority char (15),
|
||||
lo_shippriority char (1),
|
||||
lo_quantity decimal (12,2),
|
||||
lo_extendedprice decimal (12,2),
|
||||
lo_ordtotalprice decimal (12,2),
|
||||
lo_discount decimal (12,2),
|
||||
lo_revenue decimal (12,2),
|
||||
lo_supplycost decimal (12,2),
|
||||
lo_tax decimal (12,2),
|
||||
lo_commitdate int,
|
||||
lo_shipmode char (10)
|
||||
) engine=Columnstore;
|
||||
SHOW CREATE TABLE lineorder;
|
17
mysql-test/columnstore/include/ssb/createPart.inc
Executable file
17
mysql-test/columnstore/include/ssb/createPart.inc
Executable file
@ -0,0 +1,17 @@
|
||||
# create part table
|
||||
#
|
||||
--disable_warnings
|
||||
drop table if exists part;
|
||||
--enable_warnings
|
||||
create table part (
|
||||
p_partkey int,
|
||||
p_name varchar (22),
|
||||
p_mfgr char (6),
|
||||
p_category char (7),
|
||||
p_brand1 char (9),
|
||||
p_color varchar (11),
|
||||
p_type varchar (25),
|
||||
p_size int,
|
||||
p_container char (10)
|
||||
) engine=Columnstore;
|
||||
SHOW CREATE TABLE part;
|
15
mysql-test/columnstore/include/ssb/createSupplier.inc
Executable file
15
mysql-test/columnstore/include/ssb/createSupplier.inc
Executable file
@ -0,0 +1,15 @@
|
||||
# create supplier table
|
||||
#
|
||||
--disable_warnings
|
||||
drop table if exists supplier;
|
||||
--enable_warnings
|
||||
create table supplier (
|
||||
s_suppkey int,
|
||||
s_name char (25),
|
||||
s_address varchar (25),
|
||||
s_city char (10),
|
||||
s_nation char (15),
|
||||
s_region char (12),
|
||||
s_phone char (15)
|
||||
) engine=Columnstore;
|
||||
SHOW CREATE TABLE supplier;
|
95
mysql-test/columnstore/include/ssb/createTables.inc
Executable file
95
mysql-test/columnstore/include/ssb/createTables.inc
Executable file
@ -0,0 +1,95 @@
|
||||
# create ssb tables
|
||||
#
|
||||
--disable_warnings
|
||||
drop table if exists customer;
|
||||
--enable_warnings
|
||||
create table customer (
|
||||
c_custkey int,
|
||||
c_name varchar (25),
|
||||
c_address varchar (25),
|
||||
c_city char (10),
|
||||
c_nation char (15),
|
||||
c_region char (12),
|
||||
c_phone char (15),
|
||||
c_mktsegment char (10)
|
||||
) engine=Columnstore;
|
||||
SHOW CREATE TABLE customer;
|
||||
#
|
||||
--disable_warnings
|
||||
drop table if exists dateinfo;
|
||||
--enable_warnings
|
||||
create table `dateinfo` (
|
||||
d_datekey int,
|
||||
d_date char (18),
|
||||
d_dayofweek char (9),
|
||||
d_month char (9),
|
||||
d_year int,
|
||||
d_yearmonthnum int,
|
||||
d_yearmonth char (7),
|
||||
d_daynuminweek int,
|
||||
d_daynuminmonth int,
|
||||
d_daynuminyear int,
|
||||
d_monthnuminyear int,
|
||||
d_weeknuminyear int,
|
||||
d_sellingseason varchar (12),
|
||||
d_lastdayinweekfl tinyint,
|
||||
d_lastdayinmonthfl tinyint,
|
||||
d_holidayfl tinyint,
|
||||
d_weekdayfl tinyint
|
||||
) engine=Columnstore;
|
||||
SHOW CREATE TABLE dateinfo;
|
||||
#
|
||||
--disable_warnings
|
||||
drop table if exists lineorder;
|
||||
--enable_warnings
|
||||
create table lineorder (
|
||||
lo_orderkey bigint,
|
||||
lo_linenumber int,
|
||||
lo_custkey int,
|
||||
lo_partkey int,
|
||||
lo_suppkey int,
|
||||
lo_orderdate int,
|
||||
lo_orderpriority char (15),
|
||||
lo_shippriority char (1),
|
||||
lo_quantity decimal (12,2),
|
||||
lo_extendedprice decimal (12,2),
|
||||
lo_ordtotalprice decimal (12,2),
|
||||
lo_discount decimal (12,2),
|
||||
lo_revenue decimal (12,2),
|
||||
lo_supplycost decimal (12,2),
|
||||
lo_tax decimal (12,2),
|
||||
lo_commitdate int,
|
||||
lo_shipmode char (10)
|
||||
) engine=Columnstore;
|
||||
SHOW CREATE TABLE lineorder;
|
||||
#
|
||||
--disable_warnings
|
||||
drop table if exists part;
|
||||
--enable_warnings
|
||||
create table part (
|
||||
p_partkey int,
|
||||
p_name varchar (22),
|
||||
p_mfgr char (6),
|
||||
p_category char (7),
|
||||
p_brand1 char (9),
|
||||
p_color varchar (11),
|
||||
p_type varchar (25),
|
||||
p_size int,
|
||||
p_container char (10)
|
||||
) engine=Columnstore;
|
||||
SHOW CREATE TABLE part;
|
||||
#
|
||||
--disable_warnings
|
||||
drop table if exists supplier;
|
||||
--enable_warnings
|
||||
create table supplier (
|
||||
s_suppkey int,
|
||||
s_name char (25),
|
||||
s_address varchar (25),
|
||||
s_city char (10),
|
||||
s_nation char (15),
|
||||
s_region char (12),
|
||||
s_phone char (15)
|
||||
) engine=Columnstore;
|
||||
SHOW CREATE TABLE supplier;
|
||||
#
|
3
mysql-test/columnstore/include/ssb/dropCustomer.inc
Executable file
3
mysql-test/columnstore/include/ssb/dropCustomer.inc
Executable file
@ -0,0 +1,3 @@
|
||||
# drop customer table
|
||||
#
|
||||
drop table if exists customer;
|
3
mysql-test/columnstore/include/ssb/dropDateinfo.inc
Executable file
3
mysql-test/columnstore/include/ssb/dropDateinfo.inc
Executable file
@ -0,0 +1,3 @@
|
||||
# drop dateinfo table
|
||||
#
|
||||
drop table if exists dateinfo;
|
3
mysql-test/columnstore/include/ssb/dropLineorder.inc
Executable file
3
mysql-test/columnstore/include/ssb/dropLineorder.inc
Executable file
@ -0,0 +1,3 @@
|
||||
# drop lineorder table
|
||||
#
|
||||
drop table if exists lineorder;
|
3
mysql-test/columnstore/include/ssb/dropPart.inc
Executable file
3
mysql-test/columnstore/include/ssb/dropPart.inc
Executable file
@ -0,0 +1,3 @@
|
||||
# drop part table
|
||||
#
|
||||
drop table if exists part;
|
3
mysql-test/columnstore/include/ssb/dropSupplier.inc
Executable file
3
mysql-test/columnstore/include/ssb/dropSupplier.inc
Executable file
@ -0,0 +1,3 @@
|
||||
# drop supplier table
|
||||
#
|
||||
drop table if exists supplier;
|
8
mysql-test/columnstore/include/ssb/dropTables.inc
Executable file
8
mysql-test/columnstore/include/ssb/dropTables.inc
Executable file
@ -0,0 +1,8 @@
|
||||
# drop ssb tables
|
||||
#
|
||||
DROP TABLE customer;
|
||||
DROP TABLE dateinfo;
|
||||
DROP TABLE part;
|
||||
DROP TABLE lineorder;
|
||||
DROP TABLE supplier;
|
||||
#
|
3
mysql-test/columnstore/include/ssb/ldiCustomer1g.inc
Executable file
3
mysql-test/columnstore/include/ssb/ldiCustomer1g.inc
Executable file
@ -0,0 +1,3 @@
|
||||
# ldi customer table
|
||||
#
|
||||
LOAD DATA INFILE '/data/qa/source/ssb/1g/customer.tbl' INTO TABLE customer FIELDS TERMINATED BY '|';
|
3
mysql-test/columnstore/include/ssb/ldiDateinfo1g.inc
Executable file
3
mysql-test/columnstore/include/ssb/ldiDateinfo1g.inc
Executable file
@ -0,0 +1,3 @@
|
||||
# ldi dateinfo table
|
||||
#
|
||||
LOAD DATA INFILE '/data/qa/source/ssb/1g/dateinfo.tbl' INTO TABLE dateinfo FIELDS TERMINATED BY '|';
|
3
mysql-test/columnstore/include/ssb/ldiLineorder1g.inc
Executable file
3
mysql-test/columnstore/include/ssb/ldiLineorder1g.inc
Executable file
@ -0,0 +1,3 @@
|
||||
# ldi lineorder table
|
||||
#
|
||||
LOAD DATA INFILE '/data/qa/source/ssb/1g/lineorder.tbl' INTO TABLE lineorder FIELDS TERMINATED BY '|';
|
3
mysql-test/columnstore/include/ssb/ldiPart1g.inc
Executable file
3
mysql-test/columnstore/include/ssb/ldiPart1g.inc
Executable file
@ -0,0 +1,3 @@
|
||||
# ldi part table
|
||||
#
|
||||
LOAD DATA INFILE '/data/qa/source/ssb/1g/part.tbl' INTO TABLE part FIELDS TERMINATED BY '|';
|
3
mysql-test/columnstore/include/ssb/ldiSupplier1g.inc
Executable file
3
mysql-test/columnstore/include/ssb/ldiSupplier1g.inc
Executable file
@ -0,0 +1,3 @@
|
||||
# ldi supplier table
|
||||
#
|
||||
LOAD DATA INFILE '/data/qa/source/ssb/1g/supplier.tbl' INTO TABLE supplier FIELDS TERMINATED BY '|';
|
8
mysql-test/columnstore/include/ssb/ldiTables1g.inc
Executable file
8
mysql-test/columnstore/include/ssb/ldiTables1g.inc
Executable file
@ -0,0 +1,8 @@
|
||||
# ldi ssb tables - 1g
|
||||
#
|
||||
LOAD DATA INFILE '/data/qa/source/ssb/1g/customer.tbl' INTO TABLE customer FIELDS TERMINATED BY '|';
|
||||
LOAD DATA INFILE '/data/qa/source/ssb/1g/dateinfo.tbl' INTO TABLE dateinfo FIELDS TERMINATED BY '|';
|
||||
LOAD DATA INFILE '/data/qa/source/ssb/1g/lineorder.tbl' INTO TABLE lineorder FIELDS TERMINATED BY '|';
|
||||
LOAD DATA INFILE '/data/qa/source/ssb/1g/part.tbl' INTO TABLE part FIELDS TERMINATED BY '|';
|
||||
LOAD DATA INFILE '/data/qa/source/ssb/1g/supplier.tbl' INTO TABLE supplier FIELDS TERMINATED BY '|';
|
||||
#
|
Reference in New Issue
Block a user