1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-02 17:22:27 +03:00

Recorded reference results

This commit is contained in:
root
2022-12-09 02:24:40 +00:00
parent f090e65298
commit 2ed151fa59
125 changed files with 10 additions and 574 deletions

View File

@ -1,6 +1,4 @@
USE tpch1;
drop table if exists foo;
Warnings:
Note 1051 Unknown table 'tpch1.foo'
create table foo (col1 int(11) null default null) engine=columnstore;
drop table foo;

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug2835;
Warnings:
Note 1051 Unknown table 'tpch1.bug2835'
create table bug2835 (c1 int, c2 varchar(6), c3 varchar(20), c4 datetime)engine=columnstore;
insert into bug2835 values (1, 'one', 'one', '2010-01-01'), (2, 'two', 'two', '2010-02-02'), (null, null, null, null);
select c1, c2, c3, ifnull(c1,"z"), ifnull(c2,''), ifnull(c3,''), ifnull(c4,'') from bug2835;

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug2845;
Warnings:
Note 1051 Unknown table 'tpch1.bug2845'
create table bug2845(c1 int, c2 varchar(7), c3 varchar(30))engine=columnstore;
insert into bug2845 values (1, 'A\'s', 'Joe\'s');
select * from bug2845;

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug2873;
Warnings:
Note 1051 Unknown table 'tpch1.bug2873'
create table bug2873(id int, logtime int, filename varchar(20))engine=columnstore;
insert into bug2873 values
(1, unix_timestamp('2010-05-23 10:00:10'), 'Cam1.jpg'),

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug2876;
Warnings:
Note 1051 Unknown table 'tpch1.bug2876'
create table bug2876(c1 int, c2 varchar(117))engine=columnstore;
insert into bug2876 values (1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3);
insert into bug2876 values (1, null), (2, null), (3, null), (null, 1), (null, 2), (null, 3), (null, null);

View File

@ -1,10 +1,6 @@
USE tpch1;
drop table if exists tbl1;
Warnings:
Note 1051 Unknown table 'tpch1.tbl1'
drop table if exists tbl2;
Warnings:
Note 1051 Unknown table 'tpch1.tbl2'
create table tbl1 (c1 char(1), c2 char(255))engine=columnstore;
create table tbl2 (c1 char(1), c2 char(255))engine=columnstore;
insert into tbl1 values (1, 1), (2, 2), (3, 3), (4, 4), (null, null);

View File

@ -1,13 +1,6 @@
USE tpch1;
/*
* Bug 2976. Lost connection with from clause subselect against MyISAM tables in an InfiniDB instance.
*/
drop table if exists a;
Warnings:
Note 1051 Unknown table 'tpch1.a'
drop table if exists b;
Warnings:
Note 1051 Unknown table 'tpch1.b'
create table a (c1 int)engine=myisam;
create table b (c2 int)engine=myisam;
insert into a values (1), (2);
@ -20,18 +13,9 @@ c1 c2
2 2
drop table a;
drop table b;
/*
* Skinit example.
*/
drop table if exists shipamounts;
Warnings:
Note 1051 Unknown table 'tpch1.shipamounts'
drop table if exists ship1;
Warnings:
Note 1051 Unknown table 'tpch1.ship1'
drop table if exists ship2;
Warnings:
Note 1051 Unknown table 'tpch1.ship2'
CREATE TABLE `shipamounts` (
`OrderNum` varchar(50) DEFAULT NULL,
`OrderLine` int(11) DEFAULT NULL,
@ -99,27 +83,12 @@ OrderNum OrderLine ShippingAmount ShippingOrderAmount ShippingTotalAmount Shippi
drop table if exists shipamounts;
drop table if exists ship1;
drop table if exists ship2;
/*
* Lurn India example.
*/
drop table if exists users;
Warnings:
Note 1051 Unknown table 'tpch1.users'
drop table if exists user_login_log;
Warnings:
Note 1051 Unknown table 'tpch1.user_login_log'
drop table if exists user_groups;
Warnings:
Note 1051 Unknown table 'tpch1.user_groups'
drop table if exists user_types;
Warnings:
Note 1051 Unknown table 'tpch1.user_types'
drop table if exists system;
Warnings:
Note 1051 Unknown table 'tpch1.system'
drop table if exists user_system;
Warnings:
Note 1051 Unknown table 'tpch1.user_system'
create table users(
id int,
users_id int,

View File

@ -1,8 +1,6 @@
USE tpch1;
create database if not exists bug3007;
drop table if exists bug3007.bug;
Warnings:
Note 1051 Unknown table 'bug3007.bug'
create table bug3007.bug(c1 int)engine=columnstore;
insert into bug3007.bug values (1), (2);
select * from bug3007.bug;

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3012;
Warnings:
Note 1051 Unknown table 'tpch1.bug3012'
create table bug3012 (anz int, mx varchar(20)) engine=columnstore;
insert into bug3012 values (1,'hotmail.com'), (2,'hotmail.com'), (3,'foo.com'),
(4,'www.1and1.net'), (5,'1and1.com');

View File

@ -4,8 +4,6 @@ select @xxx;
@xxx
2010-02-01
drop table if exists bug3021;
Warnings:
Note 1051 Unknown table 'tpch1.bug3021'
create table bug3021(c1 date)engine=columnstore;
insert into bug3021 values ('2001-01-01');
update bug3021 set c1=@xxx;

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3025;
Warnings:
Note 1051 Unknown table 'tpch1.bug3025'
create table bug3025(value integer(5)) engine=Columnstore;
insert into bug3025 values (1), (1001), (24), (2123), (null), (123), (888), (8421), (231), (-100), (null);
select value, IF(value<=1000,'<=1000', '>1000')

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3051;
Warnings:
Note 1051 Unknown table 'tpch1.bug3051'
CREATE TABLE `bug3051` (
`c1` int(11) DEFAULT NULL,
`c2` varchar(17) DEFAULT NULL,

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3137;
Warnings:
Note 1051 Unknown table 'tpch1.bug3137'
CREATE TABLE `bug3137` (
`id` INTEGER DEFAULT NULL,
`value` INTEGER DEFAULT NULL

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3203;
Warnings:
Note 1051 Unknown table 'tpch1.bug3203'
create table bug3203 (c1 varchar(20))engine=columnstore;
select * from bug3203 where c1 = 'x';
c1

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists testnulldate;
Warnings:
Note 1051 Unknown table 'tpch1.testnulldate'
create table testnulldate (id int, time_stamp datetime) engine=columnstore;
insert into testnulldate values (1, '2010-11-08 17:46:44');
insert into testnulldate values (2, null);

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists var_between;
Warnings:
Note 1051 Unknown table 'tpch1.var_between'
create table var_between (c1 varchar(10), c2 char(7)) engine=columnstore;
insert into var_between values ('099', '099');
insert into var_between values ('9', '9');
@ -20,7 +18,6 @@ q3 9 9
q3 1 1
select 'q4', var_between.* from var_between where substr(c2,1,1) not between '0' and '9';
q4 c1 c2
drop table var_between;
select 'q5', count(*) from orders where substr(o_comment, 1, 1) between 'a' and 'f';
q5 count(*)
q5 388241
@ -36,3 +33,4 @@ q8 165747
select 'q9', count(*) from orders where substr(o_totalprice, 2, 3) not between '200' and '300';
q9 count(*)
q9 1334253
drop table var_between;

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3267;
Warnings:
Note 1051 Unknown table 'tpch1.bug3267'
create table bug3267 (c1 decimal(12, 6), c2 float) engine=columnstore;
insert into bug3267 values (5.240620, 5.24062e+06), (7.240620, 7.24062e+06), (9.940620, 9.94062e+06), (5.240620, 5.24062), (-4.44, -4.44), (-8.87, -8.87);
select floor(c1), ceil(c1), c1 from bug3267;

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3270;
Warnings:
Note 1051 Unknown table 'tpch1.bug3270'
create table bug3270 (c1 decimal(12, 6), c2 float) engine=columnstore;
insert into bug3270
values (5.240620, 5.24062e+06), (7.240620, 7.24062e+06), (9.940620, 9.94062e+06), (5.240620, 5.24062), (5.240720, 5.240720),

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3272;
Warnings:
Note 1051 Unknown table 'tpch1.bug3272'
create table bug3272 (c1 float, c2 char(12)) engine=columnstore;
insert into bug3272 values (5.24062, '5.24062'), (7.24062, '7.24062'), (9.94062, '9.94062');
insert into bug3272 values (-5.24062, '-5.24062'), (-7.24062, '-7.24062'), (-9.94062, '-9.94062');

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3274;
Warnings:
Note 1051 Unknown table 'tpch1.bug3274'
create table bug3274(d2 decimal(4,2), f float);
insert into bug3274 values (43.34, 43.345), (13.54, 13.545);
select d2, count(*) from bug3274 group by 1 order by 1;

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3292;
Warnings:
Note 1051 Unknown table 'tpch1.bug3292'
create table bug3292 (c1 double, c2 float, c3 char(12)) engine=columnstore;
insert into bug3292 values
(5.24062, 5.24062, '5.24062'),

View File

@ -1,10 +1,6 @@
USE tpch1;
drop table if exists visit;
Warnings:
Note 1051 Unknown table 'tpch1.visit'
drop table if exists client;
Warnings:
Note 1051 Unknown table 'tpch1.client'
create table visit (id_client integer,nb_event integer,update_date datetime, visit_date datetime) engine=columnstore;
create table client (id_client integer,id_event integer,event_date datetime) engine=columnstore;
insert into visit values (1,0,NULL,"2010-09-08");

View File

@ -1,10 +1,6 @@
USE tpch1;
drop table if exists user_prop_by_game;
Warnings:
Note 1051 Unknown table 'tpch1.user_prop_by_game'
drop table if exists visit;
Warnings:
Note 1051 Unknown table 'tpch1.visit'
create table user_prop_by_game(cl_id int, last_visit_date date)engine=columnstore;
create table visit(cl_id int, visit_date date)engine=columnstore;
insert into user_prop_by_game values (1, now()), (2, now());

View File

@ -1,13 +1,7 @@
USE tpch1;
drop table if exists paa;
Warnings:
Note 1051 Unknown table 'tpch1.paa'
drop table if exists dates;
Warnings:
Note 1051 Unknown table 'tpch1.dates'
drop table if exists t;
Warnings:
Note 1051 Unknown table 'tpch1.t'
create table paa (
p_id int,
a_id int,

View File

@ -1,7 +1,5 @@
USE ssb1;
drop table if exists datetest;
Warnings:
Note 1051 Unknown table 'ssb1.datetest'
create table if not exists datetest (rowid int, c1 varchar(20), c2 bigint) engine=columnstore;
insert into datetest values (1, "1990-10-20", 19901121), (2, "1997-01-01 10:00:05", 19970201000000), (3, "0705", 0805), (4, "20120230", 20120230),(5, "20110229", 20110229),(6, "9905", 9905),(7, "20011010888888", 20031010888888),(8, "20011011124455", 20011010122233);
select 'q1', rowid, c1, c2, cast(c1 as date), cast(c2 as date) from datetest where c2 <> 0805 order by rowid;
@ -171,7 +169,6 @@ q17 5 20110229 20110229 838:59:59.999999 00:00:00
q17 6 9905 9905 NULL NULL
q17 7 20011010888888 20031010888888 NULL NULL
q17 8 20011011124455 20011010122233 12:44:55.000000 12:22:33
drop table if exists datetest;
select 'q18', year(lo_orderdate), month(lo_orderdate), count(*) from ssb1.lineorder group by 1, 2, 3 order by 1, 2, 3;
q18 year(lo_orderdate) month(lo_orderdate) count(*)
q18 1992 1 77440
@ -254,3 +251,4 @@ q18 1998 5 77725
q18 1998 6 74584
q18 1998 7 77744
q18 1998 8 4783
drop table if exists datetest;

View File

@ -1,10 +1,6 @@
USE tpch1;
DROP TABLE IF EXISTS bug3398_1;
Warnings:
Note 1051 Unknown table 'tpch1.bug3398_1'
DROP TABLE IF EXISTS bug3398_2;
Warnings:
Note 1051 Unknown table 'tpch1.bug3398_2'
CREATE TABLE bug3398_1 (lid int, name char(10)) engine=columnstore;
INSERT INTO bug3398_1 (lid, name) VALUES (1, 'YES'), (2, 'NO');
CREATE TABLE bug3398_2 ( id int, gid int, lid int, dt date) engine=columnstore;

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists qa_cast;
Warnings:
Note 1051 Unknown table 'tpch1.qa_cast'
create table qa_cast ( s1 varchar(20), qaint1 int, qadouble double) engine=columnstore;
insert into qa_cast values ('123456789',123456789, 1234);
insert into qa_cast values ('123.45',123456789, 123.45);

View File

@ -1,10 +1,6 @@
USE tpch1;
drop table if exists bug3436a;
Warnings:
Note 1051 Unknown table 'tpch1.bug3436a'
drop table if exists bug3436b;
Warnings:
Note 1051 Unknown table 'tpch1.bug3436b'
create table bug3436a (i int, j int, c1 tinyint, c2 decimal(2,1), c3 decimal(4,0), c4 decimal(4,2), c5 float, c6 double) engine=columnstore;
insert into bug3436a values (1, 1, 1, 1.1, 9991, 99.1, 1.1, 1.1), (1, 1, 2, 2.2, 9992, 99.2, 2.2, 2.2), (2, 2, 1, 1.1, 9993, 99.3, 1.1, 1.1), (2, 2, 2, 2.2, 9994, 99.4, 2.2, 2.2), (1, 1, 127, 9.1, 9995, 99.5, 127.1, 127.1), (1, 2, 100, 9.2, 9996, 99.6, 100.2, 100.2);
create table bug3436b (k int) engine=columnstore;

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists optest;
Warnings:
Note 1051 Unknown table 'tpch1.optest'
create table optest (id int, c1 date, c2 decimal(4,2), c3 date) engine=columnstore;
insert into optest values (0, '2011-01-27', null, '1999-08-25'), (1, null, null, null), (2, '2001-01-05', 2.34, null), (3, null, null, '2001-05-03');
select * from optest where (year(c1) = 2011 or c2 = 2.34) or month(c3) = 1;
@ -70,8 +68,6 @@ id c1 c2 c3
0 2011-01-27 NULL 1999-08-25
3 NULL NULL 2001-05-03
drop table if exists bug3442b;
Warnings:
Note 1051 Unknown table 'tpch1.bug3442b'
create table bug3442b (
idx int,
i1 int,

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3488;
Warnings:
Note 1051 Unknown table 'tpch1.bug3488'
create table bug3488 (c1 bigint, c2 decimal(18,2), c3 float, c4 double, c5 char(120), c6 varchar(120)) engine=columnstore;
insert into bug3488 values
(1, 1.1, 1.1, 1.1, '1.1', '1.1'),

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3496;
Warnings:
Note 1051 Unknown table 'tpch1.bug3496'
create table `bug3496` (`c1` int(11) default null,`c2` char(6) default null, `c3` char(11) default null) engine=columnstore;
insert into bug3496 values
(1, 'abc', 'abc'),

View File

@ -1,10 +1,6 @@
USE tpch1;
drop table if exists bug3497a;
Warnings:
Note 1051 Unknown table 'tpch1.bug3497a'
drop table if exists bug3497b;
Warnings:
Note 1051 Unknown table 'tpch1.bug3497b'
CREATE TABLE bug3497a (col1 int, col2 varchar(10)) engine=columnstore;
INSERT INTO bug3497a VALUES(1,'trudy');
INSERT INTO bug3497a VALUES(2,'peter');

View File

@ -1,10 +1,6 @@
USE tpch1;
drop table if exists a1;
Warnings:
Note 1051 Unknown table 'tpch1.a1'
drop table if exists a2;
Warnings:
Note 1051 Unknown table 'tpch1.a2'
create table a1 (c1 int, c2 int)engine=columnstore;
create table a2 (c1 int, c2 int)engine=columnstore;
insert into a1 values (1, 1),(2,2),(3,null),(null,3),(null,null);

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3532;
Warnings:
Note 1051 Unknown table 'tpch1.bug3532'
create table `bug3532` (`c1` char(1) default null, `c2` int(11) default null) engine=columnstore;
insert into bug3532 values (1,1), (0,0), (1,12), (1,-1), (null, null);
select round(c1,c1) from bug3532 where c1 = 1;

View File

@ -1,13 +1,7 @@
USE tpch1;
drop table if exists qatabledecimal2byte;
Warnings:
Note 1051 Unknown table 'tpch1.qatabledecimal2byte'
drop table if exists qatabledecimal4byte;
Warnings:
Note 1051 Unknown table 'tpch1.qatabledecimal4byte'
drop table if exists qatabletinyint;
Warnings:
Note 1051 Unknown table 'tpch1.qatabletinyint'
create table qatabledecimal2byte (col1 decimal(1), col2 decimal(4), col3 decimal(4,2)) engine=columnstore;
create table qatabledecimal4byte (col1 decimal(5), col2 decimal(9), col3 decimal(9,2)) engine=columnstore;
create table qatabletinyint (col numeric(2,0)) engine=columnstore;

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3565;
Warnings:
Note 1051 Unknown table 'tpch1.bug3565'
create table bug3565(c1 tinyint)engine=columnstore;
insert into bug3565 (select 0 from orders limit 270000);
alter table bug3565 add column c2 bigint;

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3582;
Warnings:
Note 1051 Unknown table 'tpch1.bug3582'
create table bug3582 (c1 decimal(4,2), c2 char(4), c3 varchar(15)) engine=columnstore;
insert into bug3582 values (4.00,'a','b');
select * from bug3582;

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists stringtest;
Warnings:
Note 1051 Unknown table 'tpch1.stringtest'
create table stringtest (c1 char(10), c2 varchar(10), c3 varchar(6))engine=columnstore;
insert into stringtest values ('abc','cde','abc'), ('cde','abc','cde');
select * from stringtest where c1='abc' or c2='abc';

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists month;
Warnings:
Note 1051 Unknown table 'tpch1.month'
create table month(id int, month varchar(20), season varchar(6))engine=columnstore;
insert into month values (1, 'Jan', 'Winter');
SELECT *,

View File

@ -1,19 +1,9 @@
USE tpch1;
drop table if exists pts_agg_url_report;
Warnings:
Note 1051 Unknown table 'tpch1.pts_agg_url_report'
drop table if exists pts_dim_publisher;
Warnings:
Note 1051 Unknown table 'tpch1.pts_dim_publisher'
drop table if exists pts_dim_subsite;
Warnings:
Note 1051 Unknown table 'tpch1.pts_dim_subsite'
drop table if exists pts_meta_ad;
Warnings:
Note 1051 Unknown table 'tpch1.pts_meta_ad'
drop table if exists pts_meta_campaign;
Warnings:
Note 1051 Unknown table 'tpch1.pts_meta_campaign'
CREATE TABLE `pts_agg_url_report` (
`agg_date` date DEFAULT NULL,
`client_id` varchar(32) DEFAULT NULL,
@ -56,7 +46,7 @@ CREATE TABLE `pts_meta_ad` (
`dimension` varchar(7) DEFAULT NULL,
`dimensionName` varchar(250) DEFAULT NULL
) engine=columnstore;
cREATE TABLE `pts_meta_campaign` (
CREATE TABLE `pts_meta_campaign` (
`clientId` varchar(32) DEFAULT NULL,
`externalClientId` int(11) DEFAULT NULL,
`id` varchar(32) DEFAULT NULL,
@ -91,14 +81,8 @@ drop table pts_dim_subsite;
drop table pts_meta_ad;
drop table pts_meta_campaign;
drop table if exists marketing_conversions;
Warnings:
Note 1051 Unknown table 'tpch1.marketing_conversions'
drop table if exists marketing_events;
Warnings:
Note 1051 Unknown table 'tpch1.marketing_events'
drop table if exists marketing_leads;
Warnings:
Note 1051 Unknown table 'tpch1.marketing_leads'
CREATE TABLE `marketing_conversions` (
`pkMarketingConversionID` int(10) DEFAULT NULL,
`CreatedOn` datetime DEFAULT NULL,

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists t1;
Warnings:
Note 1051 Unknown table 'tpch1.t1'
create table t1(f1 varchar(5)) engine=columnstore;
insert into t1(f1) select if(max(f1) is null, '2000',max(f1)+1) from t1;
select * from t1 order by 1;

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists looooooooooooooooooooooooooooooooooooooooong_tb_name;
Warnings:
Note 1051 Unknown table 'tpch1.looooooooooooooooooooooooooooooooooooooooong_tb_name'
create table looooooooooooooooooooooooooooooooooooooooong_tb_name (looooooooooooooooooooooooooooooooooooooooong_col_name int)engine=columnstore;
insert into looooooooooooooooooooooooooooooooooooooooong_tb_name values (10);
select looooooooooooooooooooooooooooooooooooooooong_col_name from looooooooooooooooooooooooooooooooooooooooong_tb_name

View File

@ -2,11 +2,7 @@ USE tpch1;
create database if not exists geo;
use geo;
drop table if exists `geo_tag_values`;
Warnings:
Note 1051 Unknown table 'geo.geo_tag_values'
drop table if exists `geo_tags`;
Warnings:
Note 1051 Unknown table 'geo.geo_tags'
CREATE TABLE `geo_tag_values` (
`id` int(11) DEFAULT NULL,
`value` varchar(255) DEFAULT NULL,
@ -23,29 +19,13 @@ CREATE TABLE `geo_tags` (
create database if not exists pbkt;
use pbkt;
drop table if exists `areas`;
Warnings:
Note 1051 Unknown table 'pbkt.areas'
drop table if exists `bigsumplus`;
Warnings:
Note 1051 Unknown table 'pbkt.bigsumplus'
drop table if exists `dim_date`;
Warnings:
Note 1051 Unknown table 'pbkt.dim_date'
drop table if exists `sizes`;
Warnings:
Note 1051 Unknown table 'pbkt.sizes'
drop table if exists `tag_values`;
Warnings:
Note 1051 Unknown table 'pbkt.tag_values'
drop view if exists `tag_values_geo_country`;
Warnings:
Note 4092 Unknown VIEW: 'pbkt.tag_values_geo_country'
drop view if exists `tag_values_geo_region`;
Warnings:
Note 4092 Unknown VIEW: 'pbkt.tag_values_geo_region'
drop view if exists `tag_values_ptype`;
Warnings:
Note 4092 Unknown VIEW: 'pbkt.tag_values_ptype'
CREATE TABLE `areas` (
`id` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3783;
Warnings:
Note 1051 Unknown table 'tpch1.bug3783'
set max_length_for_sort_data = 8192;
create table bug3783 (id int, name varchar(1000))engine=columnstore;
insert into bug3783 values (1,'yionfsdayfeiwajg'),(2,'gretsuyhejkstj jkete');

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3792;
Warnings:
Note 1051 Unknown table 'tpch1.bug3792'
create table bug3792 (c1 int, c2 datetime) engine=columnstore;
insert into bug3792 values (1, '9999-12-31 23:59:59');
insert into bug3792 values (2, '1000-01-01 00:00:00');

View File

@ -13,8 +13,6 @@ cidx CDOUBLE CAST(CDOUBLE AS DECIMAL(9))
10 1.797693231e108 999999999
11 0 0
drop table if exists bug3798;
Warnings:
Note 1051 Unknown table 'tpch1.bug3798'
create table bug3798 (c1 float) engine=columnstore;
insert into bug3798 values (1234567), (1.2345678);
select c1, cast(c1 as decimal(9,2)), cast(c1 as decimal(14,12)) from bug3798;

View File

@ -1,10 +1,6 @@
USE tpch1;
drop table if exists dw_entradas_fact;
Warnings:
Note 1051 Unknown table 'tpch1.dw_entradas_fact'
drop table if exists dw_entradas_fact_1;
Warnings:
Note 1051 Unknown table 'tpch1.dw_entradas_fact_1'
create table dw_entradas_fact (fecha date) engine=columnstore;
create table dw_entradas_fact_1 (fecha date) engine=columnstore;
insert into dw_entradas_fact values ('2010-01-01'), ('2010-02-02'), ('2010-02-27'), ('2010-03-01');
@ -92,8 +88,6 @@ FROM DW_ENTRADAS_FACT_1
WHERE FECHA BETWEEN '2010-02-01' and '2010-02-28')) AS TY;
NORMAL OFERTA
1 1
drop table if exists dw_entradas_fact;
drop table if exists dw_entradas_fact_1;
select * from region where 2=2 union select n_regionkey, n_nationkey, n_name from nation where 0=1;
r_regionkey r_name r_comment
0 AFRICA lar deposits. blithely final packages cajole. regular waters are final requests. regular accounts are according to
@ -101,3 +95,5 @@ r_regionkey r_name r_comment
2 ASIA ges. thinly even pinto beans ca
3 EUROPE ly final courts cajole furiously final excuse
4 MIDDLE EAST uickly special accounts cajole carefully blithely close requests. carefully final asymptotes haggle furiousl
drop table if exists dw_entradas_fact;
drop table if exists dw_entradas_fact_1;

View File

@ -1,16 +1,8 @@
USE tpch1;
drop table if exists qa_nation;
Warnings:
Note 1051 Unknown table 'tpch1.qa_nation'
drop table if exists qa_customer;
Warnings:
Note 1051 Unknown table 'tpch1.qa_customer'
drop table if exists qa_region;
Warnings:
Note 1051 Unknown table 'tpch1.qa_region'
drop table if exists qa_orders;
Warnings:
Note 1051 Unknown table 'tpch1.qa_orders'
create table qa_nation (n_id int, n_name char(20), regionid int) engine=columnstore;
create table qa_customer (c_id int, c_custname char(20), nationid int) engine=columnstore;
create table qa_region (r_id int, r_name char(20)) engine=columnstore;

View File

@ -1,16 +1,8 @@
USE tpch1;
drop table if exists fct_summary_transactional_snapshot;
Warnings:
Note 1051 Unknown table 'tpch1.fct_summary_transactional_snapshot'
drop table if exists dim_c_bridge_duration;
Warnings:
Note 1051 Unknown table 'tpch1.dim_c_bridge_duration'
drop table if exists fct_macro_payment_details;
Warnings:
Note 1051 Unknown table 'tpch1.fct_macro_payment_details'
drop table if exists dim_c_calendar;
Warnings:
Note 1051 Unknown table 'tpch1.dim_c_calendar'
CREATE TABLE `fct_macro_payment_details` (
`TRANSACTION_DW_ID` bigint(20) DEFAULT NULL,
`TRANSACTION_ID` varchar(255) DEFAULT NULL,

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3952;
Warnings:
Note 1051 Unknown table 'tpch1.bug3952'
create table bug3952 (id int, name varchar(25));
insert into bug3952 values (1,'aaa'),(2,'bbb');
select * from bug3952 n1, (select * from bug3952)n2 where n1.id=n2.id;

View File

@ -1,16 +1,8 @@
USE tpch1;
drop table if exists bug3998a;
Warnings:
Note 1051 Unknown table 'tpch1.bug3998a'
drop table if exists bug3998b;
Warnings:
Note 1051 Unknown table 'tpch1.bug3998b'
drop table if exists bug3998c;
Warnings:
Note 1051 Unknown table 'tpch1.bug3998c'
drop table if exists bug3998d;
Warnings:
Note 1051 Unknown table 'tpch1.bug3998d'
create table bug3998a (c1 int, c2 int) engine=columnstore;
insert into bug3998a values (0,0), (1,1), (2,1), (3, 1), (null,1), (null, null);
select * from bug3998a;

View File

@ -1,10 +1,6 @@
USE tpch1;
drop table if exists product;
Warnings:
Note 1051 Unknown table 'tpch1.product'
drop table if exists product_tag;
Warnings:
Note 1051 Unknown table 'tpch1.product_tag'
create table product_tag (product_id bigint)engine=columnstore;
CREATE TABLE `product` (
`product_id` bigint(20) DEFAULT NULL,

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists dim_day;
Warnings:
Note 1051 Unknown table 'tpch1.dim_day'
CREATE TABLE `dim_day` (
`dayId` SMALLINT(5) DEFAULT NULL,
`displayDate` DATE DEFAULT NULL

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug4359;
Warnings:
Note 1051 Unknown table 'tpch1.bug4359'
CREATE TABLE bug4359 (
sdate datetime DEFAULT NULL,
edate datetime DEFAULT NULL

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists dim_date;
Warnings:
Note 1051 Unknown table 'tpch1.dim_date'
create table dim_date ( companycode integer, FinancialQuarterID integer,
FinancialQuarter integer, FinancialYear integer ) engine=columnstore;
insert into dim_date values (1,1,2,1);

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug4394;
Warnings:
Note 1051 Unknown table 'tpch1.bug4394'
create table bug4394(c1 datetime) engine=columnstore;
insert into bug4394 values('1000-01-01 00:00:00');
select * from bug4394;

View File

@ -1,19 +1,9 @@
USE tpch1;
drop table if exists bigsumplus;
Warnings:
Note 1051 Unknown table 'tpch1.bigsumplus'
drop table if exists areas;
Warnings:
Note 1051 Unknown table 'tpch1.areas'
drop table if exists geo_tag_values;
Warnings:
Note 1051 Unknown table 'tpch1.geo_tag_values'
drop table if exists geo_tags;
Warnings:
Note 1051 Unknown table 'tpch1.geo_tags'
drop view if exists tag_values_geo_country;
Warnings:
Note 4092 Unknown VIEW: 'tpch1.tag_values_geo_country'
create table if not exists
`bigsumplus` (
`served` bigint(20) DEFAULT NULL,

View File

@ -1,13 +1,7 @@
USE tpch1;
drop table if exists bug4431_1;
Warnings:
Note 1051 Unknown table 'tpch1.bug4431_1'
drop table if exists bug4431_2;
Warnings:
Note 1051 Unknown table 'tpch1.bug4431_2'
drop table if exists bug4431_3;
Warnings:
Note 1051 Unknown table 'tpch1.bug4431_3'
create table bug4431_1 (date int, col2 date) engine=columnstore;
create table bug4431_2 (`date` int, col2 date) engine=columnstore;
create table bug4431_3 (col2 date) engine=columnstore;

View File

@ -1,10 +1,6 @@
USE tpch1;
drop table if exists cat;
Warnings:
Note 1051 Unknown table 'tpch1.cat'
drop table if exists dog;
Warnings:
Note 1051 Unknown table 'tpch1.dog'
create table cat(id int, f float, d double)engine=columnstore;
create table dog(id int, f float, d double)engine=columnstore;
insert into cat values

View File

@ -1,7 +1,5 @@
USE tpch1;
DROP TABLE if exists bug5099;
Warnings:
Note 1051 Unknown table 'tpch1.bug5099'
CREATE TABLE `bug5099` (`col1` datetime DEFAULT NULL, `col2` datetime DEFAULT NULL ) ENGINE=Columnstore;
insert into bug5099 (col1, col2) values ('2012-09-24 11:00:01', '2012-09-24 11:00:00');
insert into bug5099 (col1, col2) values ('2012-09-24 11:01:00', '2012-09-24 11:02:00');

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists qadefaulttest;
Warnings:
Note 1051 Unknown table 'tpch1.qadefaulttest'
create table qadefaulttest (cidx int) engine=columnstore;
ALTER TABLE qadefaulttest ADD column MYDOUBLE2 DOUBLE not null DEFAULT -88.88;
insert into qadefaulttest values (1, -88.88);

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists uriage_inf;
Warnings:
Note 1051 Unknown table 'tpch1.uriage_inf'
create table uriage_inf(eigyo_shimei varchar(20),uriage numeric) engine=columnstore default charset=utf8;
insert into uriage_inf values('SMITH',1000);
insert into uriage_inf values('ALLEN',2000);
@ -9,8 +7,6 @@ insert into uriage_inf values('JONES',3000);
insert into uriage_inf values('SMITH',4000);
insert into uriage_inf values('BLAKE',5000);
drop table if exists uriage_my;
Warnings:
Note 1051 Unknown table 'tpch1.uriage_my'
create table uriage_my (eigyo_shimei varchar(20),uriage numeric) engine=myisam default charset=utf8;
insert into uriage_my values('SMITH',1000);
insert into uriage_my values('ALLEN',2000);

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists region1;
Warnings:
Note 1051 Unknown table 'tpch1.region1'
create table region1
(
r_regionkey int,

View File

@ -1,10 +1,6 @@
USE tpch1;
drop table if exists test;
Warnings:
Note 1051 Unknown table 'tpch1.test'
drop view if exists test_v;
Warnings:
Note 4092 Unknown VIEW: 'tpch1.test_v'
create table test (test1 numeric,test2 varchar(20)) engine=columnstore;
create view test_v as select * from test;
insert into test values (1,'data1');

View File

@ -1,13 +1,7 @@
USE tpch1;
drop table if exists bug5289a;
Warnings:
Note 1051 Unknown table 'tpch1.bug5289a'
drop table if exists bug5289b;
Warnings:
Note 1051 Unknown table 'tpch1.bug5289b'
drop view if exists bug5289b_v;
Warnings:
Note 4092 Unknown VIEW: 'tpch1.bug5289b_v'
create table bug5289a(
a decimal(10,0),
b varchar(30))
@ -32,5 +26,3 @@ q3 2
drop table if exists bug5289a;
drop table if exists bug5289b;
drop view if exists bug5289b_v;
Warnings:
Note 4092 Unknown VIEW: 'tpch1.bug5289b_v'

View File

@ -1,7 +1,5 @@
USE tpch1;
DROP TABLE IF EXISTS bug5319_a;
Warnings:
Note 1051 Unknown table 'tpch1.bug5319_a'
CREATE TABLE `bug5319_a` (
`col1` int(11) DEFAULT NULL,
`col2` int(11) DEFAULT NULL
@ -9,8 +7,6 @@ CREATE TABLE `bug5319_a` (
insert into bug5319_a values (1,2);
insert into bug5319_a values (1,2);
DROP TABLE IF EXISTS bug5319_b;
Warnings:
Note 1051 Unknown table 'tpch1.bug5319_b'
CREATE TABLE `bug5319_b` (
`col1` int(11) DEFAULT NULL,
`col2` int(11) DEFAULT NULL
@ -19,8 +15,6 @@ insert into bug5319_b values (1,2);
insert into bug5319_b values (1,3);
insert into bug5319_b values (1,4);
DROP VIEW IF EXISTS view_bug5319_b;
Warnings:
Note 4092 Unknown VIEW: 'tpch1.view_bug5319_b'
create view view_bug5319_b as select bug5319_b.col1 AS col1, bug5319_b.col2 AS col2,sum(bug5319_b.col2) AS
kensyu_gk_total from bug5319_b group by bug5319_b.col1,bug5319_b.col2;
Select bug5319_a.col1,bv.col2 from bug5319_a left join view_bug5319_b bv on (bug5319_a.col1 = bv.col1) order by 1, 2 ;

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug5448;
Warnings:
Note 1051 Unknown table 'tpch1.bug5448'
create table bug5448 (mst_date datetime) engine=columnstore;
insert into bug5448 values ('2013-03-01');
insert into bug5448 values ('2012-03-01');

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug5687;
Warnings:
Note 1051 Unknown table 'tpch1.bug5687'
create table bug5687(col1 datetime DEFAULT NULL) engine=columnstore;
insert into bug5687 (col1) values ("2012-01-24 11:00:01");
insert into bug5687 (col1) values ("1812-02-24 11:10:01");

View File

@ -1,7 +1,5 @@
USE tpch1;
DROP TABLE IF EXISTS bug5712;
Warnings:
Note 1051 Unknown table 'tpch1.bug5712'
CREATE TABLE bug5712 (`time_tk` INT(11) UNSIGNED NOT NULL) ENGINE=Columnstore DEFAULT CHARSET=latin1;
INSERT INTO bug5712 VALUES
(2013113023),

View File

@ -1,16 +1,8 @@
USE tpch1;
drop view if exists vwBug;
Warnings:
Note 4092 Unknown VIEW: 'tpch1.vwbug'
drop view if exists vwBug2;
Warnings:
Note 4092 Unknown VIEW: 'tpch1.vwbug2'
drop view if exists vwBug3;
Warnings:
Note 4092 Unknown VIEW: 'tpch1.vwbug3'
drop view if exists vwBug4;
Warnings:
Note 4092 Unknown VIEW: 'tpch1.vwbug4'
create view vwBug as
select sub1.c1 s1c1, sub1.c2 s1c2, sub2.c1 s2c1, sub2.c2 s2c2, sub3.c1 s3c1, sub3.c2 s3c2
from sub1

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists mk_calendar;
Warnings:
Note 1051 Unknown table 'tpch1.mk_calendar'
CREATE TABLE if not exists `mk_calendar` (
`nengetsu_yyyymmdd` date DEFAULT NULL,
`shukei_dd` varchar(6) DEFAULT NULL,
@ -14,8 +12,6 @@ insert into mk_calendar values
('2009-04-01', 1, 200904),
('2009-04-02', 2, 200904);
drop table if exists mk_kishu_gaibu;
Warnings:
Note 1051 Unknown table 'tpch1.mk_kishu_gaibu'
CREATE TABLE if not exists `mk_kishu_gaibu` (
`Jyohokei_Denwa_Shurui` varchar(100) DEFAULT NULL,
`Shuryoku_Hanbai_Kishu_Key` varchar(100) DEFAULT NULL
@ -29,8 +25,6 @@ insert into mk_kishu_gaibu values
('A1', '508G'),
('GT', 'HD60');
drop table if exists mk_kishubetsu_report2;
Warnings:
Note 1051 Unknown table 'tpch1.mk_kishubetsu_report2'
CREATE TABLE if not exists `mk_kishubetsu_report2` (
`KEYNO` int(10) DEFAULT NULL
) ENGINE=Columnstore DEFAULT CHARSET=utf8;
@ -46,8 +40,6 @@ insert into mk_kishubetsu_report2 values
(1000009),
(6000001);
drop table if exists mk_organization;
Warnings:
Note 1051 Unknown table 'tpch1.mk_organization'
CREATE TABLE if not exists `mk_organization` (
`Tokatsuten_Code` varchar(30) DEFAULT NULL,
`Kyoten_Code` varchar(30) DEFAULT NULL
@ -64,8 +56,6 @@ insert into mk_organization values
('EK21', '017'),
('NESM', '021');
drop table if exists mk_shuryoku_hanbai_kishu;
Warnings:
Note 1051 Unknown table 'tpch1.mk_shuryoku_hanbai_kishu'
CREATE TABLE if not exists `mk_shuryoku_hanbai_kishu` (
`catalog_nengetsu` varchar(6) DEFAULT NULL,
`kata_shiki` varchar(20) DEFAULT NULL
@ -79,8 +69,6 @@ insert into mk_shuryoku_hanbai_kishu values
(200905, 'S002'),
(200905, 'BUGS');
drop table if exists ts_kishubetsu_hibetsu_pfmtst;
Warnings:
Note 1051 Unknown table 'tpch1.ts_kishubetsu_hibetsu_pfmtst'
CREATE TABLE if not exists `ts_kishubetsu_hibetsu_pfmtst` (
`keijyo_yyyymm` int(6) DEFAULT NULL,
`keijyo_dd` varchar(6) DEFAULT '@',
@ -99,8 +87,6 @@ insert into ts_kishubetsu_hibetsu_pfmtst values
(200904, 3, 'K554', 'M18', 'GT', 1000004),
(200904, 4, 'K554', '021', 'ZZ', 3333333);
drop view if exists v_kyotenbetsu_kishubetsu_hibetsu_base;
Warnings:
Note 4092 Unknown VIEW: 'tpch1.v_kyotenbetsu_kishubetsu_hibetsu_base'
CREATE VIEW `v_kyotenbetsu_kishubetsu_hibetsu_base`
AS
(
@ -128,8 +114,6 @@ AND (`trn`.`kyoten_code` = `mst_org`.`Kyoten_Code`)
)
);
drop view if exists v_kyotenbetsu_kishubetsu_hibetsu;
Warnings:
Note 4092 Unknown VIEW: 'tpch1.v_kyotenbetsu_kishubetsu_hibetsu'
CREATE VIEW `v_kyotenbetsu_kishubetsu_hibetsu`
AS
(

View File

@ -1,7 +1,5 @@
USE tpch1;
DROP TABLE IF EXISTS query_class_metrics_float;
Warnings:
Note 1051 Unknown table 'tpch1.query_class_metrics_float'
CREATE TABLE `query_class_metrics_float` (
`agent_id` bigint(20) DEFAULT NULL,
`start_ts` datetime DEFAULT NULL,

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug5932;
Warnings:
Note 1051 Unknown table 'tpch1.bug5932'
create table bug5932(c1 int)engine=columnstore;
insert into bug5932 select 1 from lineitem;
insert into bug5932 values (2);

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists t;
Warnings:
Note 1051 Unknown table 'tpch1.t'
create table t(a bigint, b varchar(10)) engine=columnstore;
insert into t values (1, 'hi');
insert into t values (1, 'hello');
@ -14,8 +12,6 @@ a b rnum
2 bye 1
2 good night 2
drop view if exists v;
Warnings:
Note 4092 Unknown VIEW: 'tpch1.v'
create view v as select * from t;
select v.*, row_number() over (partition by a order by b) as rnum from v;
a b rnum

View File

@ -1,15 +1,9 @@
USE tpch1;
drop table if exists bug6134;
Warnings:
Note 1051 Unknown table 'tpch1.bug6134'
create table bug6134 (a integer) engine=Columnstore;
drop table if exists bug6134u;
Warnings:
Note 1051 Unknown table 'tpch1.bug6134u'
create table bug6134u (b integer, c varchar(20)) engine=Columnstore;
drop view if exists bug6134vv;
Warnings:
Note 4092 Unknown VIEW: 'tpch1.bug6134vv'
create or replace view bug6134vv as select distinct * from bug6134 t
inner join bug6134u u on t.a = u.b;
insert into bug6134 values (1);

View File

@ -1,10 +1,6 @@
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,

View File

@ -1,13 +1,7 @@
USE tpch1;
drop table if exists mcol1246a;
Warnings:
Note 1051 Unknown table 'tpch1.mcol1246a'
drop table if exists mcol1246b;
Warnings:
Note 1051 Unknown table 'tpch1.mcol1246b'
drop table if exists mcol1246c;
Warnings:
Note 1051 Unknown table 'tpch1.mcol1246c'
create table mcol1246a (a int, b varchar(7)) engine=columnstore;
create table mcol1246b (a int, b varchar(20)) engine=columnstore;
create table mcol1246c (a int, b text) engine=columnstore;

View File

@ -1,7 +1,5 @@
USE tpch1;
DROP TABLE IF EXISTS mcol128;
Warnings:
Note 1051 Unknown table 'tpch1.mcol128'
CREATE TABLE mcol128 (a int, b varchar(50));
INSERT INTO mcol128 VALUES (1, 'hello'),(2, 'world');
SELECT * FROM mcol128;
@ -19,8 +17,6 @@ a b
1 hello
2 world
DROP TABLE IF EXISTS mcol128_clone;
Warnings:
Note 1051 Unknown table 'tpch1.mcol128_clone'
CREATE TABLE mcol128_clone ENGINE=Columnstore AS SELECT * FROM mcol128;
SELECT * FROM mcol128_clone;
a b

View File

@ -1,10 +1,6 @@
USE tpch1;
drop table if exists mcol1403a;
Warnings:
Note 1051 Unknown table 'tpch1.mcol1403a'
drop table if exists mcol1403b;
Warnings:
Note 1051 Unknown table 'tpch1.mcol1403b'
create table mcol1403a (a int, b varchar(4)) engine=columnstore;
create table mcol1403b (a int, b char(20), c varchar(20)) engine=columnstore;
insert into mcol1403a values (1, 'ABC ');

View File

@ -1,10 +1,6 @@
USE tpch1;
DROP TABLE IF EXISTS cs1;
Warnings:
Note 1051 Unknown table 'tpch1.cs1'
DROP TABLE IF EXISTS cs2;
Warnings:
Note 1051 Unknown table 'tpch1.cs2'
CREATE TABLE `cs1` (
`t` varchar(2) DEFAULT NULL,
`i` int(11) DEFAULT NULL

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists mcol1559;
Warnings:
Note 1051 Unknown table 'tpch1.mcol1559'
create table mcol1559 (c7nospace char(7), c7space char(7), c20nospace char(20), c20space char(20), vcnospace varchar(20), vcspace varchar(20)) engine=columnstore;
insert into mcol1559 values ("ABC", "ABC ", "ABC12345678910", "ABC12345678910 ", "ABC", "ABC ");
select * from mcol1559 where c7nospace = "ABC";

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists test.mcol163;
Warnings:
Note 1051 Unknown table 'test.mcol163'
create table test.mcol163 (a int, b double, c double precision) engine=columnstore;
insert into test.mcol163 values (1,1.1,1.1);
select * from test.mcol163;

View File

@ -1,7 +1,5 @@
USE tpch1;
DROP TABLE IF EXISTS query_class_metrics_float;
Warnings:
Note 1051 Unknown table 'tpch1.query_class_metrics_float'
CREATE TABLE `query_class_metrics_float` (
`agent_id` bigint(20) DEFAULT NULL,
`start_ts` datetime DEFAULT NULL,

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists `football_teams`;
Warnings:
Note 1051 Unknown table 'tpch1.football_teams'
CREATE TABLE `football_teams` (
`num` int(11) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL,

View File

@ -1,22 +1,10 @@
USE tpch1;
DROP VIEW IF EXISTS vv2;
Warnings:
Note 4092 Unknown VIEW: 'tpch1.vv2'
DROP VIEW IF EXISTS vv1;
Warnings:
Note 4092 Unknown VIEW: 'tpch1.vv1'
DROP TABLE IF EXISTS vt1;
Warnings:
Note 1051 Unknown table 'tpch1.vt1'
DROP TABLE IF EXISTS vt2;
Warnings:
Note 1051 Unknown table 'tpch1.vt2'
DROP TABLE IF EXISTS vt3;
Warnings:
Note 1051 Unknown table 'tpch1.vt3'
DROP TABLE IF EXISTS vt4;
Warnings:
Note 1051 Unknown table 'tpch1.vt4'
CREATE TABLE `vt1` (
`num_sample_id` int(11) DEFAULT NULL,
`sample_id` varchar(32) DEFAULT NULL,

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists `football_teams`;
Warnings:
Note 1051 Unknown table 'tpch1.football_teams'
CREATE TABLE `football_teams` (
`num` int(11) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL,

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists t;
Warnings:
Note 1051 Unknown table 'tpch1.t'
create table t(a int, b int) engine=columnstore;
insert into t(a,b) values(1,4),(2,3),(3,2),(4,1);
select

View File

@ -1,10 +1,6 @@
USE tpch1;
drop table if exists mcol2225i;
Warnings:
Note 1051 Unknown table 'tpch1.mcol2225i'
drop table if exists mcol2225c;
Warnings:
Note 1051 Unknown table 'tpch1.mcol2225c'
CREATE USER IF NOT EXISTS'cejuser'@'localhost' IDENTIFIED BY 'Vagrant1!0000001';
GRANT ALL PRIVILEGES ON *.* TO 'cejuser'@'localhost';
FLUSH PRIVILEGES;

View File

@ -1,10 +1,6 @@
USE tpch1;
DROP TABLE IF EXISTS `MCOL-2267a`;
Warnings:
Note 1051 Unknown table 'tpch1.mcol-2267a'
DROP TABLE IF EXISTS `MCOL-2267b`;
Warnings:
Note 1051 Unknown table 'tpch1.mcol-2267b'
CREATE TABLE `MCOL-2267a` (
`thing1` varchar(32) DEFAULT NULL,
`my_id` varchar(8) DEFAULT NULL,

View File

@ -1,10 +1,6 @@
USE tpch1;
DROP TABLE IF EXISTS t1;
Warnings:
Note 1051 Unknown table 'tpch1.t1'
DROP TABLE IF EXISTS t2;
Warnings:
Note 1051 Unknown table 'tpch1.t2'
CREATE TABLE t1 (a bigint, b bigint)engine=columnstore;
CREATE TABLE t2 (a bigint, b bigint)engine=columnstore;
INSERT INTO t1 VALUES (5,5),(4,4),(3,3);
@ -25,3 +21,5 @@ a b
4 4
5 5
5 5
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t2;

View File

@ -1,7 +1,5 @@
USE tpch1;
DROP TABLE IF EXISTS `MCOL3304`;
Warnings:
Note 1051 Unknown table 'tpch1.mcol3304'
CREATE TABLE `MCOL3304` (
`c` decimal(5,2) DEFAULT NULL
) ENGINE=columnstore;

View File

@ -1,7 +1,5 @@
USE tpch1;
DROP TABLE IF EXISTS `mcol-498`;
Warnings:
Note 1051 Unknown table 'tpch1.mcol-498'
CREATE TABLE `mcol-498` (i BIGINT) ENGINE=columnstore;
INSERT INTO `mcol-498` VALUES (42),(6);
DELETE FROM `mcol-498` WHERE i = 42;

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists mcol3395;
Warnings:
Note 1051 Unknown table 'tpch1.mcol3395'
create table mcol3395 (c1 char(10), c2 varchar(10), c3 varchar(6))engine=columnstore;
insert into mcol3395 values ('abc','cde','abc'), ('cde','abc','cde');
select * from mcol3395 where c2='abc';

View File

@ -1,7 +1,5 @@
USE tpch1;
DROP TABLE IF EXISTS tc;
Warnings:
Note 1051 Unknown table 'tpch1.tc'
CREATE TABLE `tc` (
`id` int(11) NOT NULL,
`cid` int(11) DEFAULT NULL,

View File

@ -1,10 +1,6 @@
USE tpch1;
DROP TABLE IF EXISTS MCOL3434CS;
Warnings:
Note 1051 Unknown table 'tpch1.mcol3434cs'
DROP TABLE IF EXISTS MCOL3434INNO;
Warnings:
Note 1051 Unknown table 'tpch1.mcol3434inno'
CREATE TABLE `MCOL3434INNO` (`id` int(11) NOT NULL AUTO_INCREMENT,
`cid` int(11) DEFAULT NULL,
`d` datetime DEFAULT NULL,

View File

@ -1,7 +1,5 @@
USE tpch1;
DROP TABLE IF EXISTS dim_date;
Warnings:
Note 1051 Unknown table 'tpch1.dim_date'
create table dim_date(semaine varchar(10), date_jour date, val int) engine=columnstore;
insert into dim_date values
('2019-S08','2019-02-18',1),

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists t;
Warnings:
Note 1051 Unknown table 'tpch1.t'
create table t(a int, b varchar(10), c decimal(7,2)) engine=columnstore;
insert into t(a,b,c) values (1,'x',10),(2,'x',11), (3, 'x', 12), (1,'y',12),(2,'y',11), (3, 'y', 10);
select a as bu,

View File

@ -1,7 +1,5 @@
USE tpch1;
DROP TABLE IF EXISTS test_collate;
Warnings:
Note 1051 Unknown table 'tpch1.test_collate'
CREATE TABLE test_collate (a INT, b INT) ENGINE=columnstore;
INSERT INTO test_collate VALUES (1,2), (2,4);
SELECT a, b FROM test_collate ORDER BY a COLLATE latin1_german2_ci;
@ -35,9 +33,6 @@ DESCRIBE t1;
Field Type Null Key Default Extra
col1 char(10) YES NULL
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t1;
Warnings:
Note 1051 Unknown table 'tpch1.t1'
CREATE TABLE t1 (col1 CHAR(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci) ENGINE=columnstore;
INSERT INTO t1 VALUES ('a'), ('1'), ('-1');
SELECT col1 FROM t1;

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists cs1;
Warnings:
Note 1051 Unknown table 'tpch1.cs1'
create table cs1(key_ bigint) engine=columnstore;
insert into cs1 values (42),(43),(45),(666),(777),(333);
select key_, count(*) from cs1 where key_ in (select * from (select key_ from cs1 group by key_ order by key_ limit 2) a1) group by key_ order by 1;

View File

@ -1,19 +1,8 @@
USE tpch1;
/* FROM MCOL-1349
Note: Adding this because code that directly involved this bug was modified
Other regression involved is working_tpch1_compareLogOnly/misc/bug5764.sql*/
drop table if exists t3813_1;
Warnings:
Note 1051 Unknown table 'tpch1.t3813_1'
drop table if exists t3813_2;
Warnings:
Note 1051 Unknown table 'tpch1.t3813_2'
drop table if exists t3813_3;
Warnings:
Note 1051 Unknown table 'tpch1.t3813_3'
drop table if exists t3813_4;
Warnings:
Note 1051 Unknown table 'tpch1.t3813_4'
create table t3813_1
(id int
)ENGINE=COLUMNSTORE DEFAULT CHARSET=UTF8MB4;
@ -34,27 +23,20 @@ insert into t3813_1(id) values(1);
insert into t3813_2(id2, snapshot_date) values(1,'2020-05-09');
insert into t3813_3(id3, from_date, to_date) values(1,'2020-05-09'-interval 1 day, '2020-05-09'+interval 2 day);
insert into t3813_4(id4, category) values(1, 'cat-1');
/*PREPARATION END*/
/*THE PROBLEM: The SELECT itself below runs properly, but calling it from view the 1815 error is thrown*/
select * from t3813_1 t3813_1
LEFT JOIN t3813_4 t3813_4 ON (t3813_1.id = t3813_4.id4)
LEFT JOIN t3813_2 t3813_2 ON (t3813_1.id = t3813_2.id2)
LEFT JOIN t3813_3 t3813_3 ON (t3813_2.id2 = t3813_3.id3 AND t3813_2.snapshot_date BETWEEN t3813_3.from_date AND t3813_3.to_date);
id id4 category id2 snapshot_date id3 from_date to_date
1 1 cat-1 1 2020-05-09 1 2020-05-08 2020-05-11
/*Creating VIEW based on the SELECT above*/
create or replace view view_test as
select * from t3813_1 t3813_1
LEFT JOIN t3813_4 t3813_4 ON (t3813_1.id = t3813_4.id4)
LEFT JOIN t3813_2 t3813_2 ON (t3813_1.id = t3813_2.id2)
LEFT JOIN t3813_3 t3813_3 ON (t3813_2.id2 = t3813_3.id3 AND t3813_2.snapshot_date BETWEEN t3813_3.from_date AND t3813_3.to_date);
/*SELECT from the VIEW throws the error: Error Code: 1815. Internal error: On clause filter involving a table not directly involved in the outer join is currently not supported.*/
select * from view_test;
id id4 category id2 snapshot_date id3 from_date to_date
1 1 cat-1 1 2020-05-09 1 2020-05-08 2020-05-11
/*Notes*/
/*If I remove either the 1st or the 3rd LEFT JOINs from the VIEW definition, the SELECT * from VIEW will work. (I cannot remove the 2nd LEFT JOIN since the 3rd is based on that one)*/
/*Replacing COLUMNSTORE engine to INNODB the view the SELECT * from VIEW will work, but if one of the tables is COLUMNSTORE the error will thrown*/
drop table if exists t3813_1;
drop table if exists t3813_2;
drop table if exists t3813_3;

Some files were not shown because too many files have changed in this diff Show More