You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
Update mtr test case for 'show create table' output
This commit is contained in:
@ -26,7 +26,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
|
||||
set columnstore_compression_type=1;
|
||||
CREATE TABLE lineitem (
|
||||
l_orderkey int,
|
||||
@ -65,7 +65,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
|
||||
SELECT `schema`, tablename, columnname, compressiontype FROM calpontsys.syscolumn WHERE `schema`='mcs4000_db';
|
||||
schema tablename columnname compressiontype
|
||||
mcs4000_db orders o_orderkey 2
|
||||
|
File diff suppressed because one or more lines are too long
@ -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
|
||||
drop table if exists lineitem1;
|
||||
create table lineitem1 (
|
||||
l_orderkey int,
|
||||
@ -78,7 +78,7 @@ lineitem1 CREATE TABLE `lineitem1` (
|
||||
`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.'),
|
||||
|
@ -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
|
||||
drop table if exists lineitem1;
|
||||
create table lineitem1 (
|
||||
l_orderkey int,
|
||||
@ -78,7 +78,7 @@ lineitem1 CREATE TABLE `lineitem1` (
|
||||
`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.'),
|
||||
|
@ -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
|
||||
alter table lineitem add column CBIGINT BIGINT;
|
||||
alter table lineitem add column CDECIMAL1 DECIMAL(1);
|
||||
alter table lineitem add column CDECIMAL4 DECIMAL(4);
|
||||
|
@ -16,7 +16,7 @@ nation CREATE TABLE `nation` (
|
||||
`n_name` char(25) DEFAULT NULL,
|
||||
`n_regionkey` int(11) DEFAULT NULL,
|
||||
`n_comment` varchar(152) DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
drop table if exists region;
|
||||
create table region (
|
||||
r_regionkey int,
|
||||
@ -29,7 +29,7 @@ region CREATE TABLE `region` (
|
||||
`r_regionkey` int(11) DEFAULT NULL,
|
||||
`r_name` char(25) DEFAULT NULL,
|
||||
`r_comment` varchar(152) DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
drop table if exists customer;
|
||||
create table customer (
|
||||
c_custkey int,
|
||||
@ -52,7 +52,7 @@ customer CREATE TABLE `customer` (
|
||||
`c_acctbal` decimal(12,2) DEFAULT NULL,
|
||||
`c_mktsegment` char(10) DEFAULT NULL,
|
||||
`c_comment` varchar(117) DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
drop table if exists orders;
|
||||
create table orders (
|
||||
o_orderkey int,
|
||||
@ -77,7 +77,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 supplier;
|
||||
create table supplier (
|
||||
s_suppkey int,
|
||||
@ -98,7 +98,7 @@ supplier CREATE TABLE `supplier` (
|
||||
`s_phone` char(15) DEFAULT NULL,
|
||||
`s_acctbal` decimal(12,2) DEFAULT NULL,
|
||||
`s_comment` varchar(101) DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
drop table if exists partsupp;
|
||||
create table partsupp (
|
||||
ps_partkey int,
|
||||
@ -115,7 +115,7 @@ partsupp CREATE TABLE `partsupp` (
|
||||
`ps_availqty` int(11) DEFAULT NULL,
|
||||
`ps_supplycost` decimal(12,2) DEFAULT NULL,
|
||||
`ps_comment` varchar(199) DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
drop table if exists part;
|
||||
create table part (
|
||||
p_partkey int,
|
||||
@ -140,7 +140,7 @@ part CREATE TABLE `part` (
|
||||
`p_container` char(10) DEFAULT NULL,
|
||||
`p_retailprice` decimal(12,2) DEFAULT NULL,
|
||||
`p_comment` varchar(23) 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,
|
||||
@ -179,7 +179,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
|
||||
LOAD DATA INFILE '/data/qa/source/dbt3/1m/nation.tbl' INTO TABLE nation FIELDS TERMINATED BY '|';
|
||||
LOAD DATA INFILE '/data/qa/source/dbt3/1m/region.tbl' INTO TABLE region FIELDS TERMINATED BY '|';
|
||||
LOAD DATA INFILE '/data/qa/source/dbt3/1m/customer.tbl' INTO TABLE customer FIELDS TERMINATED BY '|';
|
||||
|
@ -16,7 +16,7 @@ nation CREATE TABLE `nation` (
|
||||
`n_name` char(25) DEFAULT NULL,
|
||||
`n_regionkey` int(11) DEFAULT NULL,
|
||||
`n_comment` varchar(152) DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
drop table if exists region;
|
||||
create table region (
|
||||
r_regionkey int,
|
||||
@ -29,7 +29,7 @@ region CREATE TABLE `region` (
|
||||
`r_regionkey` int(11) DEFAULT NULL,
|
||||
`r_name` char(25) DEFAULT NULL,
|
||||
`r_comment` varchar(152) DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
drop table if exists customer;
|
||||
create table customer (
|
||||
c_custkey int,
|
||||
@ -52,7 +52,7 @@ customer CREATE TABLE `customer` (
|
||||
`c_acctbal` decimal(12,2) DEFAULT NULL,
|
||||
`c_mktsegment` char(10) DEFAULT NULL,
|
||||
`c_comment` varchar(117) DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
drop table if exists orders;
|
||||
create table orders (
|
||||
o_orderkey int,
|
||||
@ -77,7 +77,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 supplier;
|
||||
create table supplier (
|
||||
s_suppkey int,
|
||||
@ -98,7 +98,7 @@ supplier CREATE TABLE `supplier` (
|
||||
`s_phone` char(15) DEFAULT NULL,
|
||||
`s_acctbal` decimal(12,2) DEFAULT NULL,
|
||||
`s_comment` varchar(101) DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
drop table if exists partsupp;
|
||||
create table partsupp (
|
||||
ps_partkey int,
|
||||
@ -115,7 +115,7 @@ partsupp CREATE TABLE `partsupp` (
|
||||
`ps_availqty` int(11) DEFAULT NULL,
|
||||
`ps_supplycost` decimal(12,2) DEFAULT NULL,
|
||||
`ps_comment` varchar(199) DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
drop table if exists part;
|
||||
create table part (
|
||||
p_partkey int,
|
||||
@ -140,7 +140,7 @@ part CREATE TABLE `part` (
|
||||
`p_container` char(10) DEFAULT NULL,
|
||||
`p_retailprice` decimal(12,2) DEFAULT NULL,
|
||||
`p_comment` varchar(23) 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,
|
||||
@ -179,7 +179,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
|
||||
LOAD DATA INFILE '/data/qa/source/dbt3/1g/nation.tbl' INTO TABLE nation FIELDS TERMINATED BY '|';
|
||||
LOAD DATA INFILE '/data/qa/source/dbt3/1g/region.tbl' INTO TABLE region FIELDS TERMINATED BY '|';
|
||||
LOAD DATA INFILE '/data/qa/source/dbt3/1g/customer.tbl' INTO TABLE customer FIELDS TERMINATED BY '|';
|
||||
|
@ -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
|
||||
LOAD DATA INFILE '/data/qa/source/dbt3/1g/lineitem.tbl' INTO TABLE lineitem FIELDS TERMINATED BY '|';
|
||||
LOAD DATA INFILE '/data/qa/source/dbt3/1g/lineitem.tbl' INTO TABLE lineitem FIELDS TERMINATED BY '|';
|
||||
LOAD DATA INFILE '/data/qa/source/dbt3/1g/lineitem.tbl' INTO TABLE lineitem FIELDS TERMINATED BY '|';
|
||||
|
@ -18,7 +18,7 @@ nation CREATE TABLE `nation` (
|
||||
`n_name` char(25) DEFAULT NULL,
|
||||
`n_regionkey` int(11) DEFAULT NULL,
|
||||
`n_comment` varchar(152) DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
LOAD DATA INFILE '/data/qa/source/dbt3/1m/nation.tbl' INTO TABLE nation FIELDS TERMINATED BY '|';
|
||||
create table region (
|
||||
r_regionkey int,
|
||||
@ -31,7 +31,7 @@ region CREATE TABLE `region` (
|
||||
`r_regionkey` int(11) DEFAULT NULL,
|
||||
`r_name` char(25) DEFAULT NULL,
|
||||
`r_comment` varchar(152) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
insert into region values (1, 'AMERICA', 'hs use ironic, even requests. s');
|
||||
insert into region values (2, 'ASIA', 'ges. thinly even pinto beans ca');
|
||||
select count(*) from nation n, region r where n.n_regionkey = r.r_regionkey and r.r_regionkey = 2;
|
||||
|
@ -19,7 +19,7 @@ nation CREATE TABLE `nation` (
|
||||
`n_name` char(25) DEFAULT NULL,
|
||||
`n_regionkey` int(11) DEFAULT NULL,
|
||||
`n_comment` varchar(152) DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
RENAME TABLE nation to nation1;
|
||||
drop table if exists nation;
|
||||
create table nation (
|
||||
@ -35,7 +35,7 @@ nation CREATE TABLE `nation` (
|
||||
`n_name` char(25) DEFAULT NULL,
|
||||
`n_regionkey` int(11) DEFAULT NULL,
|
||||
`n_comment` varchar(152) DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
LOAD DATA INFILE '/data/qa/source/dbt3/1m/nation.tbl' INTO TABLE nation FIELDS TERMINATED BY '|';
|
||||
select count(*) from nation where n_regionkey = 2;
|
||||
count(*)
|
@ -13,7 +13,7 @@ Table Create Table
|
||||
to!@#$%^&*$#,()[].;:+-|/%^<>=!&|@\ CREATE TABLE `to!@#$%^&*$#,()[].;:+-|/%^<>=!&|@\` (
|
||||
`i` int(11) DEFAULT NULL,
|
||||
`t` text DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
drop table `to!@#$%^&*$#,()[].;:+-|/%^<>=!&|@\`;
|
||||
show create table `to!@#$%^&*$#,()[].;:+-|/%^<>=!&|@\`;
|
||||
ERROR 42S02: Table 'tpch1.to!@#$%^&*$#,()[].;:+-|/%^<>=!&|@\' doesn't exist
|
||||
|
@ -14,7 +14,7 @@ Table Create Table
|
||||
to!@#$%^&*$#,()[].;:+-|/%^<>=!&|@\ CREATE TABLE "to!@#$%^&*$#,()[].;:+-|/%^<>=!&|@\" (
|
||||
"some" int(11) DEFAULT NULL,
|
||||
"t" text DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
drop table "to!@#$%^&*$#,()[].;:+-|/%^<>=!&|@\";
|
||||
show create table "to!@#$%^&*$#,()[].;:+-|/%^<>=!&|@\";
|
||||
ERROR 42S02: Table 'tpch1.to!@#$%^&*$#,()[].;:+-|/%^<>=!&|@\' doesn't exist
|
||||
|
@ -13,7 +13,7 @@ Table Create Table
|
||||
z k CREATE TABLE `z k` (
|
||||
`a b` int(11) DEFAULT NULL,
|
||||
`c300_500_18 REF NOx` text DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
drop table tpch1.`z k`;
|
||||
show create table `z k`;
|
||||
ERROR 42S02: Table 'tpch1.z k' doesn't exist
|
||||
|
@ -21,7 +21,7 @@ Table Create Table
|
||||
cs3 CREATE TABLE `cs3` (
|
||||
`i` int(11) DEFAULT NULL,
|
||||
`t` text DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
delete from `test023_cs3`.`cs3` where i = 1;
|
||||
update `test023_cs3`.`cs3` set i = 5 where i = 10;
|
||||
select * from `test023_cs3`.`cs3`;
|
||||
|
@ -22,7 +22,7 @@ Table Create Table
|
||||
cs3 CREATE TABLE "cs3" (
|
||||
"i" int(11) DEFAULT NULL,
|
||||
"t" text DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
delete from "test023_cs3"."cs3" where i = 1;
|
||||
update "test023_cs3"."cs3" set i = 5 where i = 10;
|
||||
select * from "test023_cs3"."cs3";
|
||||
|
@ -25,7 +25,7 @@ Table Create Table
|
||||
cs3 CREATE TABLE `cs3` (
|
||||
`i` int(11) DEFAULT NULL,
|
||||
`t` text DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
delete from `test023_cs3`.`cs3` where i = 1;
|
||||
update `test023_cs3`.`cs3` set i = 5 where i = 10;
|
||||
select * from `test023_cs3`.`cs3`;
|
||||
@ -41,7 +41,7 @@ cs3 CREATE TABLE `cs3` (
|
||||
`i` int(11) DEFAULT NULL,
|
||||
`t` text DEFAULT NULL,
|
||||
`nt` text DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
drop table `test023_cs3`.`cs3`;
|
||||
show create table `test023_cs3`.`cs3`;
|
||||
ERROR 42S02: Table 'test023_cs3.cs3' doesn't exist
|
||||
|
Reference in New Issue
Block a user