1
0
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:
Daniel Lee
2022-08-09 13:20:56 -05:00
committed by GitHub
parent 8b15e2f6a4
commit 4c9d6e39ac
6839 changed files with 10542409 additions and 77 deletions

View File

@ -0,0 +1,3 @@
# select count customer table
#
select count(*) from customer;

View File

@ -0,0 +1,3 @@
# select count dateinfo table
#
select count(*) from dateinfo;

View File

@ -0,0 +1,3 @@
# select count lineorder table
#
select count(*) from lineorder;

View File

@ -0,0 +1,3 @@
# select count part table
#
select count(*) from part;

View File

@ -0,0 +1,3 @@
# select count supplier table
#
select count(*) from supplier;

View 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;

View 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;

View 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;

View 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;

View 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;

View 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;

View 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;
#

View File

@ -0,0 +1,3 @@
# drop customer table
#
drop table if exists customer;

View File

@ -0,0 +1,3 @@
# drop dateinfo table
#
drop table if exists dateinfo;

View File

@ -0,0 +1,3 @@
# drop lineorder table
#
drop table if exists lineorder;

View File

@ -0,0 +1,3 @@
# drop part table
#
drop table if exists part;

View File

@ -0,0 +1,3 @@
# drop supplier table
#
drop table if exists supplier;

View File

@ -0,0 +1,8 @@
# drop ssb tables
#
DROP TABLE customer;
DROP TABLE dateinfo;
DROP TABLE part;
DROP TABLE lineorder;
DROP TABLE supplier;
#

View File

@ -0,0 +1,3 @@
# ldi customer table
#
LOAD DATA INFILE '/data/qa/source/ssb/1g/customer.tbl' INTO TABLE customer FIELDS TERMINATED BY '|';

View File

@ -0,0 +1,3 @@
# ldi dateinfo table
#
LOAD DATA INFILE '/data/qa/source/ssb/1g/dateinfo.tbl' INTO TABLE dateinfo FIELDS TERMINATED BY '|';

View File

@ -0,0 +1,3 @@
# ldi lineorder table
#
LOAD DATA INFILE '/data/qa/source/ssb/1g/lineorder.tbl' INTO TABLE lineorder FIELDS TERMINATED BY '|';

View File

@ -0,0 +1,3 @@
# ldi part table
#
LOAD DATA INFILE '/data/qa/source/ssb/1g/part.tbl' INTO TABLE part FIELDS TERMINATED BY '|';

View File

@ -0,0 +1,3 @@
# ldi supplier table
#
LOAD DATA INFILE '/data/qa/source/ssb/1g/supplier.tbl' INTO TABLE supplier FIELDS TERMINATED BY '|';

View 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 '|';
#