1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

More changes

This commit is contained in:
root
2022-12-08 21:00:01 +00:00
parent fad0fd08f0
commit f090e65298
7 changed files with 28 additions and 41 deletions

View File

@ -334,4 +334,5 @@ DROP PROCEDURE IF EXISTS signeddeleteproc;
DROP PROCEDURE IF EXISTS unsignedinsertproc; DROP PROCEDURE IF EXISTS unsignedinsertproc;
DROP PROCEDURE IF EXISTS unsigneddeleteproc; DROP PROCEDURE IF EXISTS unsigneddeleteproc;
DROP DATABASE mcol641_delete_db; DROP DATABASE mcol641_delete_db;
--enable_warnings --enable_warnings

View File

@ -8,14 +8,15 @@
# #
USE tpch1; USE tpch1;
# #
/* #
* Bug 2976. Lost connection with from clause subselect against MyISAM tables in an InfiniDB instance. # Bug 2976. Lost connection with from clause subselect against MyISAM tables in an InfiniDB instance.
*/ #
--disable_warnings --disable_warnings
drop table if exists a; drop table if exists a;
--disable_warnings
drop table if exists b; drop table if exists b;
--enable_warnings
create table a (c1 int)engine=myisam; create table a (c1 int)engine=myisam;
create table b (c2 int)engine=myisam; create table b (c2 int)engine=myisam;
insert into a values (1), (2); insert into a values (1), (2);
@ -25,9 +26,10 @@ select * from a, (select * from b) x;
drop table a; drop table a;
drop table b; drop table b;
--enable_warnings --enable_warnings
/*
* Skinit example. #
*/ # Skinit example.
#
--disable_warnings --disable_warnings
drop table if exists shipamounts; drop table if exists shipamounts;
drop table if exists ship1; drop table if exists ship1;
@ -105,9 +107,9 @@ drop table if exists shipamounts;
drop table if exists ship1; drop table if exists ship1;
drop table if exists ship2; drop table if exists ship2;
--enable_warnings --enable_warnings
/* #
* Lurn India example. # Lurn India example.
*/ #
--disable_warnings --disable_warnings
drop table if exists users; drop table if exists users;
drop table if exists user_login_log; drop table if exists user_login_log;

View File

@ -18,8 +18,7 @@ create table bug4431_1 (date int, col2 date) engine=columnstore;
create table bug4431_2 (`date` int, col2 date) engine=columnstore; create table bug4431_2 (`date` int, col2 date) engine=columnstore;
create table bug4431_3 (col2 date) engine=columnstore; create table bug4431_3 (col2 date) engine=columnstore;
alter table bug4431_3 add column date int; alter table bug4431_3 add column date int;
alter table bug4431_3 --disable_warnings alter table bug4431_3 drop column date;
drop column date;
insert into bug4431_1 values (1, '2012-06-06'),(2, '2012-06-06'),(3, '2012-06-06'),(4, '2012-06-06'); insert into bug4431_1 values (1, '2012-06-06'),(2, '2012-06-06'),(3, '2012-06-06'),(4, '2012-06-06');
select * from bug4431_1; select * from bug4431_1;

View File

@ -10,9 +10,9 @@ USE tpch1;
# #
/* FROM MCOL-1349 # FROM MCOL-1349
Note: Adding this because code that directly involved this bug was modified # Note: Adding this because code that directly involved this bug was modified
Other regression involved is working_tpch1_compareLogOnly/misc/bug5764.sql*/ # Other regression involved is working_tpch1_compareLogOnly/misc/bug5764.sql*/
--disable_warnings --disable_warnings
drop table if exists t3813_1; drop table if exists t3813_1;
@ -45,27 +45,27 @@ insert into t3813_1(id) values(1);
insert into t3813_2(id2, snapshot_date) values(1,'2020-05-09'); 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_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'); insert into t3813_4(id4, category) values(1, 'cat-1');
/*PREPARATION END*/ #/*PREPARATION END*/
/*THE PROBLEM: The SELECT itself below runs properly, but calling it from view the 1815 error is thrown*/ #/*THE PROBLEM: The SELECT itself below runs properly, but calling it from view the 1815 error is thrown*/
select * from t3813_1 t3813_1 select * from t3813_1 t3813_1
LEFT JOIN t3813_4 t3813_4 ON (t3813_1.id = t3813_4.id4) 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_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); 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);
/*Creating VIEW based on the SELECT above*/ #/*Creating VIEW based on the SELECT above*/
create or replace view view_test as create or replace view view_test as
select * from t3813_1 t3813_1 select * from t3813_1 t3813_1
LEFT JOIN t3813_4 t3813_4 ON (t3813_1.id = t3813_4.id4) 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_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); 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 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; select * from view_test;
/*Notes*/ #/*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)*/ #/*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*/ #/*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*/
--disable_warnings --disable_warnings
drop table if exists t3813_1; drop table if exists t3813_1;
drop table if exists t3813_2; drop table if exists t3813_2;

View File

@ -8,9 +8,9 @@
# #
USE tpch1; USE tpch1;
# #
/* Test case from Radek at CognitiveMatch - customer who bought based on us adding the multi-value in clause feature. */ #/* Test case from Radek at CognitiveMatch - customer who bought based on us adding the multi-value in clause feature. */
/* First test using IDB tables. */ #/* First test using IDB tables. */
--disable_warnings --disable_warnings
drop table if exists agg_fact_pageview; drop table if exists agg_fact_pageview;
drop table if exists dim_date; drop table if exists dim_date;

View File

@ -11,9 +11,7 @@ USE tpch1;
# Simple SP without args # Simple SP without args
DELIMITER $$; DELIMITER $$;
--disable_warnings
drop procedure if exists sp_simple_select; drop procedure if exists sp_simple_select;
--enable_warnings
Create Procedure sp_simple_select( ) Create Procedure sp_simple_select( )
begin begin
@ -21,9 +19,7 @@ begin
end $$ end $$
# Simple SP with 1 arg # Simple SP with 1 arg
--disable_warnings
drop procedure if exists sp_simple_variable; drop procedure if exists sp_simple_variable;
--enable_warnings
Create Procedure sp_simple_variable(in arg_key int) Create Procedure sp_simple_variable(in arg_key int)
begin begin
@ -31,9 +27,7 @@ begin
end $$ end $$
# Simple SP with multiple args # Simple SP with multiple args
--disable_warnings
drop procedure if exists sp_simple_variables; drop procedure if exists sp_simple_variables;
--enable_warnings
Create Procedure sp_simple_variables(in arg_key int, in arg_string varchar(25)) Create Procedure sp_simple_variables(in arg_key int, in arg_string varchar(25))
begin begin
@ -41,9 +35,7 @@ begin
end $$ end $$
# Simple SP with cross table select query # Simple SP with cross table select query
--disable_warnings
drop procedure if exists sp_complex_variable; drop procedure if exists sp_complex_variable;
--enable_warnings
Create Procedure sp_complex_variable(in arg_key int, in arg_date date) Create Procedure sp_complex_variable(in arg_key int, in arg_date date)
begin begin
@ -52,9 +44,7 @@ begin
end $$ end $$
# Complex SP. All following SPs will fail vtable mode # Complex SP. All following SPs will fail vtable mode
--disable_warnings
drop procedure if exists sp_unstructured_loop; drop procedure if exists sp_unstructured_loop;
--enable_warnings
Create Procedure sp_unstructured_loop(in arg_key int) Create Procedure sp_unstructured_loop(in arg_key int)
begin begin
@ -82,9 +72,7 @@ begin
end$$ end$$
--disable_warnings
drop procedure if exists sp_repeat_loop; drop procedure if exists sp_repeat_loop;
--enable_warnings
Create Procedure sp_repeat_loop(in arg_key int, in arg_key2 int) Create Procedure sp_repeat_loop(in arg_key int, in arg_key2 int)
begin begin
@ -114,9 +102,7 @@ begin
CLOSE cur1; CLOSE cur1;
end$$ end$$
--disable_warnings
drop procedure if exists sp_while_loop; drop procedure if exists sp_while_loop;
--enable_warnings
Create Procedure sp_while_loop(in arg_key int, in arg_key2 int) Create Procedure sp_while_loop(in arg_key int, in arg_key2 int)
begin begin
@ -146,9 +132,7 @@ begin
end$$ end$$
# SP with DDL # SP with DDL
--disable_warnings
drop procedure if exists proc1; drop procedure if exists proc1;
--enable_warnings
create procedure proc1() create procedure proc1()
begin begin

View File

@ -174,5 +174,6 @@ drop procedure if exists partsuppColumnsTouched;
drop procedure if exists regionColumnsTouched; drop procedure if exists regionColumnsTouched;
drop procedure if exists nationColumnsTouched; drop procedure if exists nationColumnsTouched;
drop procedure if exists eliminatedBlocksGE; drop procedure if exists eliminatedBlocksGE;
--enable_warnings
# #