[FEAT MERGE] impl vectorization 2.0

Co-authored-by: Naynahs <cfzy002@126.com>
Co-authored-by: hwx65 <1780011298@qq.com>
Co-authored-by: oceanoverflow <oceanoverflow@gmail.com>
This commit is contained in:
obdev
2023-12-22 03:43:19 +00:00
committed by ob-robot
parent 1178245448
commit b6773084c6
592 changed files with 358124 additions and 303288 deletions

View File

@ -1,3 +1,4 @@
set session _enable_rich_vector_format = true;
alter system enable_table_without_all_cg = false;
create table t1(a int, b varchar(3048), primary key (a), c int) with column group (all columns, each column);
create table t2(pk int, c1 int, c2 int unsigned, c3 varchar(100)) block_size=2048 with column group (all columns, each column);

View File

@ -1,5 +1,6 @@
drop table if exists ct1;
set session ob_trx_timeout=100000000000;
set session _enable_rich_vector_format = true;
create table ct1(c1 int primary key, c2 int, c3 number, c4 varchar(60000), c5 varchar(60000)) ROW_FORMAT = redundant COMPRESSION = 'none' with column group (all columns, each column);
alter system minor freeze;
alter system major freeze;

View File

@ -1,5 +1,6 @@
drop table if exists ct1;
set session ob_trx_timeout=100000000000;
set session _enable_rich_vector_format = true;
create table ct1(c1 int primary key, c2 int, c3 number, c4 varchar(60000), c5 varchar(60000)) ROW_FORMAT = redundant COMPRESSION = 'none' with column group (all columns, each column);
alter system minor freeze;
alter system major freeze;

View File

@ -9,6 +9,7 @@ drop table if exists t1,t2;
--enable_warnings
--enable_query_log
set session _enable_rich_vector_format = true;
alter system enable_table_without_all_cg = false;
create table t1(a int, b varchar(3048), primary key (a), c int) with column group (all columns, each column);
create table t2(pk int, c1 int, c2 int unsigned, c3 varchar(100)) block_size=2048 with column group (all columns, each column);
@ -356,4 +357,3 @@ alter system enable_table_without_all_cg = false;
alter system set _pushdown_storage_level = 4;
alter system set _rowsets_enabled = true;
alter system flush plan cache;
--enable_query_log

View File

@ -4,8 +4,13 @@
--disable_query_log
connect (conn1,$OBMYSQL_MS0,$OBMYSQL_USR,$OBMYSQL_PWD,test,$OBMYSQL_PORT);
connect (syscon, $OBMYSQL_MS0,admin,$OBMYSQL_PWD,test,$OBMYSQL_PORT);
connection syscon;
set @@session.explicit_defaults_for_timestamp=off;
set session ob_trx_timeout=100000000000;
set session _enable_rich_vector_format = true;
alter system set_tp tp_no = 353, error_code = 4000, frequency = 1;
sleep 2;
set @@recyclebin = off;
--enable_query_log
@ -63,7 +68,28 @@ select * from ct1 where c1 < 10 or c2 < 20;
select * from ct1 where c1 < 10 and c2 > 9900;
select * from ct1 where c1 > 10 and c2 < 20;
select * from ct1 where c1 * 2 > 500 and c2 * 2 < 600;
select * from ct1 where c1 * 2 < 500 or (c2 * 2 > 19000 and c2 * 2 < 20000) ;
select * from ct1 where c1 * 2 < 500 or (c2 * 2 > 19000 and c2 * 2 < 20000);
--disable_query_log
connection syscon;
alter system set_tp tp_no = 353, error_code = 4000, frequency = 0;
--enable_query_log
connection conn1;
select * from ct1 where c1 < 1;
select * from ct1 where c1 < 10;
select * from ct1 where c1 > 10000;
select * from ct1 where c2 < 1;
select * from ct1 where c2 < 10;
select * from ct1 where c2 > 10000;
select * from ct1 where c1 > 400 and c1 < 500;
select * from ct1 where c1 > 9000 and c1 < 9300;
select * from ct1 where c1 < 10 or c2 > 9900;
select * from ct1 where c1 < 10 or c2 < 20;
select * from ct1 where c1 < 10 and c2 > 9900;
select * from ct1 where c1 > 10 and c2 < 20;
select * from ct1 where c1 * 2 > 500 and c2 * 2 < 600;
select * from ct1 where c1 * 2 < 500 or (c2 * 2 > 19000 and c2 * 2 < 20000);
drop table ct1;
--disable_query_log

View File

@ -15,6 +15,7 @@ set @@recyclebin = off;
drop table if exists ct1;
--enable_warnings
set session ob_trx_timeout=100000000000;
set session _enable_rich_vector_format = true;
create table ct1(c1 int primary key, c2 int, c3 number, c4 varchar(60000), c5 varchar(60000)) ROW_FORMAT = redundant COMPRESSION = 'none' with column group (all columns, each column);
--disable_query_log

View File

@ -20,6 +20,8 @@ set @@recyclebin = off;
drop table if exists ct1;
--enable_warnings
set session ob_trx_timeout=100000000000;
set session _enable_rich_vector_format = true;
# create table without all column group
create table ct1(c1 int primary key, c2 int, c3 number, c4 varchar(60000), c5 varchar(60000)) ROW_FORMAT = redundant COMPRESSION = 'none' with column group (all columns, each column);
--disable_query_log

View File

@ -8,6 +8,7 @@ set @@recyclebin = off;
--disable_warnings
set session ob_query_timeout=10000000000;
set session _enable_rich_vector_format = true;
drop table if exists ct1,ct2,ct3;
--enable_warnings