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:
@ -0,0 +1,56 @@
|
||||
USE tpch1;
|
||||
DROP TABLE if exists `source`;
|
||||
Warnings:
|
||||
Note 1051 Unknown table 'tpch1.source'
|
||||
DROP TABLE if exists `dest`;
|
||||
Warnings:
|
||||
Note 1051 Unknown table 'tpch1.dest'
|
||||
CREATE TABLE `source` (
|
||||
`datum` date NOT NULL,
|
||||
`datum_hour` datetime NOT NULL,
|
||||
`datum_month` date NOT NULL,
|
||||
`datum_week` tinyint(3) unsigned NOT NULL,
|
||||
`us_id` int(10) unsigned NOT NULL,
|
||||
`xy_id` int(10) unsigned NOT NULL,
|
||||
`yellow` char(2) DEFAULT NULL,
|
||||
`device` tinyint(3) unsigned NOT NULL,
|
||||
`device_sys` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
||||
`r_id` tinyint(4) NOT NULL DEFAULT '1',
|
||||
`os_id` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
||||
`br_id` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
||||
`op_id` smallint(5) unsigned NOT NULL DEFAULT '0',
|
||||
`pa_id` int(10) unsigned NOT NULL,
|
||||
`ba_id` int(10) unsigned NOT NULL,
|
||||
`rule_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`sub_id` varchar(24) DEFAULT NULL,
|
||||
`watchme` tinyint(3) unsigned DEFAULT NULL
|
||||
) engine=columnstore DEFAULT CHARSET=latin1 COMMENT='compression=0';
|
||||
CREATE TABLE `dest` (
|
||||
`datum` date NOT NULL,
|
||||
`datum_hour` datetime NOT NULL,
|
||||
`datum_month` date NOT NULL,
|
||||
`datum_week` tinyint(3) unsigned NOT NULL,
|
||||
`us_id` int(10) unsigned NOT NULL,
|
||||
`xy_id` int(10) unsigned NOT NULL,
|
||||
`yellow` char(2) DEFAULT NULL,
|
||||
`device` tinyint(3) unsigned NOT NULL,
|
||||
`device_sys` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
||||
`r_id` tinyint(4) NOT NULL DEFAULT '1',
|
||||
`os_id` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
||||
`br_id` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
||||
`op_id` smallint(5) unsigned NOT NULL DEFAULT '0',
|
||||
`pa_id` int(10) unsigned NOT NULL,
|
||||
`ba_id` int(10) unsigned NOT NULL,
|
||||
`rule_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`sub_id` varchar(24) DEFAULT NULL,
|
||||
`watchme` tinyint(3) unsigned DEFAULT NULL
|
||||
) engine=columnstore DEFAULT CHARSET=latin1 COMMENT='compression=0';
|
||||
INSERT INTO source VALUES(
|
||||
'2015-04-17','2015-04-17 03:00:00','2015-04-01' , 16, 19, 90, 24 , 2, 0, 2, 1, 15, 196, 3617,100018, 1114,NULL , 9
|
||||
);
|
||||
INSERT INTO dest SELECT * FROM source;
|
||||
select * from dest;
|
||||
datum datum_hour datum_month datum_week us_id xy_id yellow device device_sys r_id os_id br_id op_id pa_id ba_id rule_id sub_id watchme
|
||||
2015-04-17 2015-04-17 03:00:00 2015-04-01 16 19 90 24 2 0 2 1 15 196 3617 100018 1114 NULL 9
|
||||
drop table source;
|
||||
drop table dest;
|
Reference in New Issue
Block a user