[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

View File

@ -10,6 +10,7 @@ connection default;
set @@recyclebin = off;
set ob_query_timeout=1000000000;
set ob_trx_timeout=1000000000;
set session _enable_rich_vector_format = true;
--disable_warnings
drop table if exists t1,t2,t3,t4,nn1,nn2,t_default_value,t_empty,pt1,pt2,pt3;

View File

@ -10,6 +10,7 @@ connect (default,$OBMYSQL_MS0,admin@mysql,admin,test,$OBMYSQL_PORT);
set @@recyclebin = off;
set ob_query_timeout=1000000000;
set ob_trx_timeout=1000000000;
set session _enable_rich_vector_format = true;
--disable_warnings
drop table if exists t1;

View File

@ -10,6 +10,7 @@ alter system set ob_compaction_schedule_interval = '3s';
set @@recyclebin = off;
--sleep 2
connection default;
set session _enable_rich_vector_format = true;
--disable_warnings
drop table if exists t1;

View File

@ -77,6 +77,7 @@ dtl_buffer_size
dump_data_dictionary_to_log_interval
enable_async_syslog
enable_cgroup
enable_crazy_medium_compaction
enable_cs_encoding_filter
enable_ddl
enable_early_lock_release

View File

@ -209,8 +209,8 @@ select /*+use_nl(t1 t2) leading(t1 t2)*/ * from t1 right join t2 on t1.c1 = t2.c
| 1 | 1 | 1 | 1 |
| 1 | 2 | 1 | 1 |
| 3 | 5 | 3 | 3 |
| NULL | NULL | 6 | NULL |
| NULL | NULL | 5 | 5 |
| NULL | NULL | 6 | NULL |
+------+----+----+------+
@ -282,8 +282,8 @@ select /*+use_nl(t1 t2) leading(t1 t2)*/ * from t1 full join t2 on t1.c1 = t2.c2
| NULL | 3 | NULL | NULL |
| 2 | 4 | NULL | NULL |
| 3 | 5 | 3 | 3 |
| NULL | NULL | 6 | NULL |
| NULL | NULL | 5 | 5 |
| NULL | NULL | 6 | NULL |
+------+----+----+------+
@ -608,8 +608,8 @@ select /*+use_nl(t1 t2) leading(t1 t2)*/ * from t1 right join t2 on t1.c1 = t2.c
| 1 | 1 | 1 | 1 |
| 1 | 2 | 1 | 1 |
| 3 | 5 | 3 | 3 |
| NULL | NULL | 6 | NULL |
| NULL | NULL | 5 | 5 |
| NULL | NULL | 6 | NULL |
+------+----+----+------+
@ -681,8 +681,8 @@ select /*+use_nl(t1 t2) leading(t1 t2)*/ * from t1 full join t2 on t1.c1 = t2.c2
| NULL | 3 | NULL | NULL |
| 2 | 4 | NULL | NULL |
| 3 | 5 | 3 | 3 |
| NULL | NULL | 6 | NULL |
| NULL | NULL | 5 | 5 |
| NULL | NULL | 6 | NULL |
+------+----+----+------+