Merge branch 'master' into develop

This commit is contained in:
wangyunlai
2024-06-26 18:09:14 +08:00
1106 changed files with 522399 additions and 469801 deletions

View File

@ -353,6 +353,7 @@ select * from information_schema.tables where table_schema in ('oceanbase', 'mys
| def | oceanbase | DBA_RSRC_PLANS | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_RSRC_PLAN_DIRECTIVES | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_SCHEDULER_JOBS | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_SCHEDULER_JOB_RUN_DETAILS | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_SCHEDULER_WINDOWS | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_SEQUENCES | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_SQL_MANAGEMENT_CONFIG | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
@ -623,6 +624,7 @@ select * from information_schema.tables where table_schema in ('oceanbase', 'mys
| def | oceanbase | __all_routine_param_history | SYSTEM TABLE | InnoDB | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_routine_privilege | SYSTEM TABLE | InnoDB | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_routine_privilege_history | SYSTEM TABLE | InnoDB | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_scheduler_job_run_detail_v2 | SYSTEM TABLE | InnoDB | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_sequence_object | SYSTEM TABLE | InnoDB | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_sequence_object_history | SYSTEM TABLE | InnoDB | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_sequence_value | SYSTEM TABLE | InnoDB | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
@ -1335,6 +1337,9 @@ select * from information_schema.statistics where table_schema in ('oceanbase',
| def | oceanbase | __all_routine_privilege_history | 0 | oceanbase | PRIMARY | 4 | routine_name | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_routine_privilege_history | 0 | oceanbase | PRIMARY | 5 | routine_type | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_routine_privilege_history | 0 | oceanbase | PRIMARY | 6 | schema_version | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_scheduler_job_run_detail_v2 | 0 | oceanbase | PRIMARY | 1 | job_name | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_scheduler_job_run_detail_v2 | 0 | oceanbase | PRIMARY | 2 | time | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_scheduler_job_run_detail_v2 | 1 | oceanbase | idx_scheduler_job_run_detail_v2_time | 1 | time | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_sequence_object | 0 | oceanbase | PRIMARY | 1 | tenant_id | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_sequence_object | 0 | oceanbase | PRIMARY | 2 | sequence_id | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_sequence_object | 1 | oceanbase | idx_seq_obj_db_name | 1 | database_id | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
@ -1842,6 +1847,7 @@ select * from information_schema.tables where table_schema in ('oceanbase', 'mys
| def | oceanbase | DBA_RSRC_PLANS | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_RSRC_PLAN_DIRECTIVES | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_SCHEDULER_JOBS | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_SCHEDULER_JOB_RUN_DETAILS | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_SCHEDULER_WINDOWS | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_SEQUENCES | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | DBA_SQL_MANAGEMENT_CONFIG | SYSTEM VIEW | MEMORY | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
@ -2111,6 +2117,7 @@ select * from information_schema.tables where table_schema in ('oceanbase', 'mys
| def | oceanbase | __all_routine_param_history | SYSTEM TABLE | InnoDB | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_routine_privilege | SYSTEM TABLE | InnoDB | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_routine_privilege_history | SYSTEM TABLE | InnoDB | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_scheduler_job_run_detail_v2 | SYSTEM TABLE | InnoDB | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_sequence_object | SYSTEM TABLE | InnoDB | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_sequence_object_history | SYSTEM TABLE | InnoDB | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
| def | oceanbase | __all_sequence_value | SYSTEM TABLE | InnoDB | NULL | DYNAMIC | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | utf8mb4_general_ci | NULL | NULL | |
@ -3055,6 +3062,9 @@ select * from information_schema.statistics where table_schema in ('oceanbase',
| def | oceanbase | __all_routine_privilege_history | 0 | oceanbase | PRIMARY | 4 | routine_name | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_routine_privilege_history | 0 | oceanbase | PRIMARY | 5 | routine_type | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_routine_privilege_history | 0 | oceanbase | PRIMARY | 6 | schema_version | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_scheduler_job_run_detail_v2 | 0 | oceanbase | PRIMARY | 1 | job_name | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_scheduler_job_run_detail_v2 | 0 | oceanbase | PRIMARY | 2 | time | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_scheduler_job_run_detail_v2 | 1 | oceanbase | idx_scheduler_job_run_detail_v2_time | 1 | time | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_seed_parameter | 0 | oceanbase | PRIMARY | 1 | zone | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_seed_parameter | 0 | oceanbase | PRIMARY | 2 | svr_type | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_seed_parameter | 0 | oceanbase | PRIMARY | 3 | svr_ip | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
@ -3899,6 +3909,9 @@ select * from information_schema.statistics where table_schema in ('oceanbase',
| def | oceanbase | __all_routine_privilege_history | 0 | oceanbase | PRIMARY | 4 | routine_name | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_routine_privilege_history | 0 | oceanbase | PRIMARY | 5 | routine_type | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_routine_privilege_history | 0 | oceanbase | PRIMARY | 6 | schema_version | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_scheduler_job_run_detail_v2 | 0 | oceanbase | PRIMARY | 1 | job_name | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_scheduler_job_run_detail_v2 | 0 | oceanbase | PRIMARY | 2 | time | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_scheduler_job_run_detail_v2 | 1 | oceanbase | idx_scheduler_job_run_detail_v2_time | 1 | time | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_sequence_object | 0 | oceanbase | PRIMARY | 1 | tenant_id | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_sequence_object | 0 | oceanbase | PRIMARY | 2 | sequence_id | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |
| def | oceanbase | __all_sequence_object | 1 | oceanbase | idx_seq_obj_db_name | 1 | database_id | A | NULL | NULL | NULL | | BTREE | VALID | | YES | NULL |

View File

@ -1,7 +1,7 @@
--disable_query_log
set @@session.explicit_defaults_for_timestamp=off;
--enable_query_log
#owner: jiangxiu.wt
#owner: yibo.tyf
#owner group: sql1
## simple test of all group functions

View File

@ -1,7 +1,7 @@
--disable_query_log
set @@session.explicit_defaults_for_timestamp=off;
--enable_query_log
#owner: jiangxiu.wt
#owner: yibo.tyf
#owner group: sql1
##

View File

@ -1,5 +1,6 @@
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);
create table t3(c1 int) with column group (each column);
select count(*) from t1;
count(*)
150
@ -11,6 +12,7 @@ count(*) count(pk) min(pk) max(pk) sum(pk) min(c1) max(c1) sum(c1) min(c2) max(c
1500 1500 11 3000 2258250 11 3000 2258250 12 3001 2259750 abcdefg1 abcdefg99
alter system major freeze;
alter table t1 add column c1 int default 0, add column c2 varchar(100);
alter table t3 add column c2 char(60) default "中文";
alter system set _pushdown_storage_level = 0;
alter system set _rowsets_enabled = false;
alter system flush plan cache;
@ -179,6 +181,14 @@ count(*) count(a) min(a) max(a) sum(a) count(b) min(b) max(b) count(c) min(c) ma
select count(*),count(c1),min(c1),max(c1),sum(c1),count(c2),min(c2),max(c2) from t1;
count(*) count(c1) min(c1) max(c1) sum(c1) count(c2) min(c2) max(c2)
250 250 0 498 39900 100 300300300300300 498498498498498
select count(c2), min(c2), max(c2) from t3 where c1 < 256;
count(c2) min(c2) max(c2)
16384 中文 中文
alter system set _rowsets_enabled = false;
alter system flush plan cache;
select count(c2), min(c2), max(c2) from t3 where c1 < 256;
count(c2) min(c2) max(c2)
16384 中文 中文
alter system major freeze;
alter table t2 add column c4 bigint default 10, add column c5 bigint unsigned default 20;
alter table t2 add column c6 bigint default null;
@ -326,7 +336,7 @@ count(*) count(a) min(a) max(a) sum(a) count(b) min(b) max(b) count(c) min(c) ma
select count(*),count(c1),min(c1),max(c1),sum(c1),count(c2),min(c2),max(c2) from t1;
count(*) count(c1) min(c1) max(c1) sum(c1) count(c2) min(c2) max(c2)
250 250 0 498 39900 100 300300300300300 498498498498498
drop table t1,t2;
drop table t1,t2,t3;
alter system flush plan cache;
create table t1(a int, b varchar(3048), primary key (a), c int) with column group (each column);
create table t2(pk int, c1 int, c2 int unsigned, c3 varchar(100)) block_size=2048 with column group (each column);

View File

@ -4,14 +4,18 @@
--disable_query_log
--disable_warnings
connect (obsys,$OBMYSQL_MS0,admin,$OBMYSQL_PWD,test,$OBMYSQL_PORT);
connection obsys;
alter system set_tp tp_name = "EN_COMPACTION_DISABLE_ROW_COL_SWITCH", error_code = 4016, frequency = 1;
connection default;
set @@recyclebin = off;
drop table if exists t1,t2;
drop table if exists t1,t2,t3;
--enable_warnings
--enable_query_log
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);
create table t3(c1 int) with column group (each column);
sleep 10;
--disable_query_log
@ -31,9 +35,18 @@ while ($count < 300)
($count * 10 + 8,$count * 10 + 8, $count * 10 + 8 + 1, concat("abcdefg", $count)),
($count * 10 + 9,$count * 10 + 9, $count * 10 + 9 + 1, concat("abcdefg", $count)),
($count * 10 + 10,$count * 10 + 10, $count * 10 + 10+ 1, concat("abcdefg", $count));
eval insert into t3(c1) values ($count);
inc $count;
inc $count;
}
--let $count=1
while ($count < 8)
{
eval insert into t3 select * from t3;
inc $count;
}
--enable_warnings
--enable_query_log
select count(*) from t1;
@ -44,6 +57,7 @@ alter system major freeze;
--source mysql_test/include/wait_daily_merge.inc
alter table t1 add column c1 int default 0, add column c2 varchar(100);
alter table t3 add column c2 char(60) default "中文";
--disable_query_log
--disable_warnings
@ -117,6 +131,24 @@ select a, c1, count(c1) from t1 where a <20 and c1 != 80 and c1 != 6 and c1 < 30
select count(*),count(a),min(a),max(a),sum(a),count(b),min(b),max(b),count(c),min(c),max(c),sum(c) from t1;
select count(*),count(c1),min(c1),max(c1),sum(c1),count(c2),min(c2),max(c2) from t1;
--disable_query_log
SET sql_mode = 'PAD_CHAR_TO_FULL_LENGTH';
alter system flush plan cache;
sleep 1;
--enable_query_log
select count(c2), min(c2), max(c2) from t3 where c1 < 256;
alter system set _rowsets_enabled = false;
alter system flush plan cache;
select count(c2), min(c2), max(c2) from t3 where c1 < 256;
--disable_query_log
SET sql_mode = '';
alter system flush plan cache;
sleep 1;
--enable_query_log
alter system major freeze;
--source mysql_test/include/wait_daily_merge.inc
@ -183,7 +215,7 @@ select count(*) from t1;
select count(*),count(a),min(a),max(a),sum(a),count(b),min(b),max(b),count(c),min(c),max(c),sum(c) from t1;
select count(*),count(c1),min(c1),max(c1),sum(c1),count(c2),min(c2),max(c2) from t1;
drop table t1,t2;
drop table t1,t2,t3;
alter system flush plan cache;
@ -353,3 +385,7 @@ set @@recyclebin = on;
alter system set _pushdown_storage_level = 4;
alter system set _rowsets_enabled = true;
alter system flush plan cache;
connection obsys;
alter system set_tp tp_name = "EN_COMPACTION_DISABLE_ROW_COL_SWITCH", error_code = 4016, frequency = 0;
connection default;
--enable_query_log

View File

@ -1,7 +1,7 @@
--disable_query_log
set @@session.explicit_defaults_for_timestamp=off;
--enable_query_log
#owner: jiangxiu.wt
#owner: dingjincheng.djc
#owner group: sql1
--disable_abort_on_error

View File

@ -1,7 +1,7 @@
--disable_query_log
set @@session.explicit_defaults_for_timestamp=off;
--enable_query_log
# owner: jiangxiu.wt
# owner: zongmei.zzm
# owner group: SQL1
# description: regexp的测试

View File

@ -449,9 +449,9 @@ Outputs & filters:
range_key([t29_25.__pk_increment]), range(MIN ; MAX)always true
3 - output([t29_25.c1]), filter(nil), rowset=256
sort_keys([t29_25.c1, DESC]), topn(1)
4 - output([t29_25.c1]), filter(nil), rowset=256
4 - output([t29_25.c1]), filter([TOPN_FILTER(t29_25.c1)]), rowset=256
access([t29_25.c1]), partitions(p0)
is_index_back=false, is_global_index=false,
is_index_back=false, is_global_index=false, filter_before_indexback[false],
range_key([t29_25.__pk_increment]), range(MIN ; MAX)always true
create table t2 as SELECT t29_25.c1, t29_25.c8
FROM (SELECT (SELECT t29_25.c1

View File

@ -1,7 +1,7 @@
--disable_query_log
set @@session.explicit_defaults_for_timestamp=off;
--enable_query_log
#owner: jiangxiu.wt
#owner: zongmei.zzm
#owner group: sql1
##

View File

@ -55,6 +55,7 @@ data_type data_type_str data_type_class
51 COLLECTION 26
52 MYSQL_DATE 27
53 MYSQL_DATETIME 28
54 ROARINGBITMAP 29
select data_type, data_type_str, data_type_class from __all_virtual_data_type order by data_type;
data_type data_type_str data_type_class
0 NULL 0
@ -111,6 +112,7 @@ data_type data_type_str data_type_class
51 COLLECTION 26
52 MYSQL_DATE 27
53 MYSQL_DATETIME 28
54 ROARINGBITMAP 29
select * from __all_virtual_data_type where data_type = 22;
data_type data_type_str data_type_class
22 VARCHAR 10
@ -168,6 +170,7 @@ DECIMAL_INT DECIMAL_INT
COLLECTION COLLECTION
MYSQL_DATE MYSQL_DATE
MYSQL_DATETIME MYSQL_DATETIME
ROARINGBITMAP ROARINGBITMAP
show create table __all_virtual_data_type;
Table Create Table
__all_virtual_data_type CREATE TABLE `__all_virtual_data_type` (

View File

@ -29,6 +29,7 @@ data_type_class data_type_class_str
26 COLLECTION
27 MYSQL_DATE
28 MYSQL_DATETIME
29 ROARINGBITMAP
select data_type_class, data_type_class_str from __all_virtual_data_type_class;
data_type_class data_type_class_str
0 NULL
@ -59,6 +60,7 @@ data_type_class data_type_class_str
26 COLLECTION
27 MYSQL_DATE
28 MYSQL_DATETIME
29 ROARINGBITMAP
select * from __all_virtual_data_type_class where data_type_class = 10;
data_type_class data_type_class_str
10 STRING
@ -116,6 +118,7 @@ DECIMAL_INT DECIMAL_INT
COLLECTION COLLECTION
MYSQL_DATE MYSQL_DATE
MYSQL_DATETIME MYSQL_DATETIME
ROARINGBITMAP ROARINGBITMAP
show create table __all_virtual_data_type_class;
Table Create Table
__all_virtual_data_type_class CREATE TABLE `__all_virtual_data_type_class` (

View File

@ -213,6 +213,7 @@ server_check_interval
server_cpu_quota_max
server_cpu_quota_min
server_permanent_offline_time
spill_compression_codec
sql_login_thread_count
sql_net_thread_count
sql_protocol_min_tls_version
@ -224,6 +225,7 @@ standby_db_fetch_log_rpc_timeout
standby_db_preferred_upstream_log_region
standby_fetch_log_bandwidth_limit
storage_meta_cache_priority
storage_rowsets_size
strict_check_os_params
syslog_compress_func
syslog_disk_size
@ -292,7 +294,9 @@ _enable_block_file_punch_hole
_enable_choose_migration_source_policy
_enable_column_store
_enable_compaction_diagnose
_enable_compatible_monotonic
_enable_convert_real_to_decimal
_enable_das_keep_order
_enable_dblink_reuse_connection
_enable_dbms_job_package
_enable_dbms_lob_partial_update
@ -354,6 +358,8 @@ _hidden_sys_tenant_memory
_ignore_system_memory_over_limit_error
_inlist_rewrite_threshold
_io_callback_thread_count
_io_read_batch_size
_io_read_redundant_limit_percentage
_iut_enable
_iut_max_entries
_iut_stat_collection_type
@ -398,6 +404,7 @@ _optimizer_better_inlist_costing
_optimizer_group_by_placement
_optimizer_skip_scan_enabled
_optimizer_sortmerge_join_enabled
_parallel_ddl_control
_parallel_max_active_sessions
_parallel_min_message_pool
_parallel_redo_logging_trigger

View File

@ -5315,7 +5315,7 @@ desc oceanbase.DBA_OB_EXTERNAL_TABLE_FILES;
Field Type Null Key Default Extra
TABLE_NAME varchar(256) NO
TABLE_SCHEMA varchar(128) NO
PARTITION_NAME varchar(2) NO
PARTITION_NAME varchar(64) NO
FILE_URL varbinary(16384) NO NULL
FILE_SIZE bigint(20) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.DBA_OB_EXTERNAL_TABLE_FILES limit 1);
@ -5325,7 +5325,7 @@ desc oceanbase.ALL_OB_EXTERNAL_TABLE_FILES;
Field Type Null Key Default Extra
TABLE_NAME varchar(256) NO
TABLE_SCHEMA varchar(128) NO
PARTITION_NAME varchar(2) NO
PARTITION_NAME varchar(64) NO
FILE_URL varbinary(16384) NO NULL
FILE_SIZE bigint(20) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.ALL_OB_EXTERNAL_TABLE_FILES limit 1);
@ -5585,6 +5585,7 @@ OBJECT_ID bigint(20) unsigned NO NULL
COMPILE_TIME bigint(20) unsigned NO NULL
SCHEMA_VERSION bigint(20) NO NULL
PS_STMT_ID bigint(20) NO NULL
DB_ID bigint(20) unsigned NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.GV$OB_PL_CACHE_OBJECT limit 1);
cnt
1
@ -5610,6 +5611,7 @@ OBJECT_ID bigint(20) unsigned NO
COMPILE_TIME bigint(20) unsigned NO
SCHEMA_VERSION bigint(20) NO
PS_STMT_ID bigint(20) NO
DB_ID bigint(20) unsigned NO
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.V$OB_PL_CACHE_OBJECT limit 1);
cnt
1
@ -6548,6 +6550,35 @@ SPEED_MBPS bigint(20) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.GV$OB_NIC_INFO limit 1);
cnt
1
desc oceanbase.DBA_SCHEDULER_JOB_RUN_DETAILS;
Field Type Null Key Default Extra
LOG_ID decimal(20,0) NO
LOG_DATE datetime NO
OWNER varchar(128) NO
JOB_NAME varchar(128) NO
JOB_SUBNAME varchar(128) NO
STATUS varchar(128) NO
CODE bigint(20) YES
REQ_START_DATE datetime NO
ACTUAL_START_DATE datetime NO
RUN_DURATION decimal(20,0) NO
INSTANCE_ID varchar(128) NO
SESSION_ID decimal(20,0) NO
SLAVE_PID varchar(128) NO
CPU_USED decimal(20,0) NO
CREDENTIAL_OWNER varchar(128) NO
CREDENTIAL_NAME varchar(128) NO
DESTINATION_OWNER varchar(128) NO
DESTINATION varchar(128) NO
MESSAGE varchar(4000) NO NULL
JOB bigint(20) NO NULL
TIME timestamp(6) NO NULL
JOB_CLASS varchar(30) YES NULL
GMT_CREATE timestamp(6) YES
GMT_MODIFIED timestamp(6) YES
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.DBA_SCHEDULER_JOB_RUN_DETAILS limit 1);
cnt
1
select case cnt when 0 then NULL else 'UNEXPECTED ERROR: It is expected to be an empty set, which means that all GV$ and V$ view column names are defined consistently' end ERROR_INFO from (select /*+no_rewrite*/ count(*) cnt from
(SELECT t.table_name,
group_concat(c.column_name) as column_name_list

View File

@ -7464,7 +7464,7 @@ desc oceanbase.DBA_OB_EXTERNAL_TABLE_FILES;
Field Type Null Key Default Extra
TABLE_NAME varchar(256) NO
TABLE_SCHEMA varchar(128) NO
PARTITION_NAME varchar(2) NO
PARTITION_NAME varchar(64) NO
FILE_URL varbinary(16384) NO NULL
FILE_SIZE bigint(20) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.DBA_OB_EXTERNAL_TABLE_FILES limit 1);
@ -7474,7 +7474,7 @@ desc oceanbase.ALL_OB_EXTERNAL_TABLE_FILES;
Field Type Null Key Default Extra
TABLE_NAME varchar(256) NO
TABLE_SCHEMA varchar(128) NO
PARTITION_NAME varchar(2) NO
PARTITION_NAME varchar(64) NO
FILE_URL varbinary(16384) NO NULL
FILE_SIZE bigint(20) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.ALL_OB_EXTERNAL_TABLE_FILES limit 1);
@ -7575,7 +7575,7 @@ Field Type Null Key Default Extra
TENANT_ID bigint(20) NO NULL
TABLE_NAME varchar(256) NO
TABLE_SCHEMA varchar(128) NO
PARTITION_NAME varchar(2) NO
PARTITION_NAME varchar(64) NO
FILE_URL varbinary(16384) NO NULL
FILE_SIZE bigint(20) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.CDB_OB_EXTERNAL_TABLE_FILES limit 1);
@ -7793,6 +7793,7 @@ OBJECT_ID bigint(20) unsigned NO NULL
COMPILE_TIME bigint(20) unsigned NO NULL
SCHEMA_VERSION bigint(20) NO NULL
PS_STMT_ID bigint(20) NO NULL
DB_ID bigint(20) unsigned NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.GV$OB_PL_CACHE_OBJECT limit 1);
cnt
1
@ -7818,6 +7819,7 @@ OBJECT_ID bigint(20) unsigned NO
COMPILE_TIME bigint(20) unsigned NO
SCHEMA_VERSION bigint(20) NO
PS_STMT_ID bigint(20) NO
DB_ID bigint(20) unsigned NO
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.V$OB_PL_CACHE_OBJECT limit 1);
cnt
1
@ -9302,6 +9304,65 @@ SPEED_MBPS bigint(20) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.GV$OB_NIC_INFO limit 1);
cnt
1
desc oceanbase.DBA_SCHEDULER_JOB_RUN_DETAILS;
Field Type Null Key Default Extra
LOG_ID decimal(20,0) NO
LOG_DATE datetime NO
OWNER varchar(128) NO
JOB_NAME varchar(128) NO
JOB_SUBNAME varchar(128) NO
STATUS varchar(128) NO
CODE bigint(20) YES
REQ_START_DATE datetime NO
ACTUAL_START_DATE datetime NO
RUN_DURATION decimal(20,0) NO
INSTANCE_ID varchar(128) NO
SESSION_ID decimal(20,0) NO
SLAVE_PID varchar(128) NO
CPU_USED decimal(20,0) NO
CREDENTIAL_OWNER varchar(128) NO
CREDENTIAL_NAME varchar(128) NO
DESTINATION_OWNER varchar(128) NO
DESTINATION varchar(128) NO
MESSAGE varchar(4000) NO NULL
JOB bigint(20) NO NULL
TIME timestamp(6) NO NULL
JOB_CLASS varchar(30) YES NULL
GMT_CREATE timestamp(6) YES
GMT_MODIFIED timestamp(6) YES
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.DBA_SCHEDULER_JOB_RUN_DETAILS limit 1);
cnt
1
desc oceanbase.CDB_SCHEDULER_JOB_RUN_DETAILS;
Field Type Null Key Default Extra
LOG_ID decimal(20,0) NO
LOG_DATE datetime NO
OWNER varchar(128) NO
JOB_NAME varchar(128) NO
JOB_SUBNAME varchar(128) NO
STATUS varchar(128) NO
CODE bigint(20) YES
REQ_START_DATE datetime NO
ACTUAL_START_DATE datetime NO
RUN_DURATION decimal(20,0) NO
INSTANCE_ID varchar(128) NO
SESSION_ID decimal(20,0) NO
SLAVE_PID varchar(128) NO
CPU_USED decimal(20,0) NO
CREDENTIAL_OWNER varchar(128) NO
CREDENTIAL_NAME varchar(128) NO
DESTINATION_OWNER varchar(128) NO
DESTINATION varchar(128) NO
MESSAGE varchar(4000) NO NULL
TENANT_ID bigint(20) NO NULL
JOB bigint(20) NO NULL
TIME timestamp(6) NO NULL
JOB_CLASS varchar(30) YES NULL
GMT_CREATE timestamp(6) NO NULL
GMT_MODIFIED timestamp(6) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ count(*) as cnt from (select * from oceanbase.CDB_SCHEDULER_JOB_RUN_DETAILS limit 1);
cnt
1
select case cnt when 0 then NULL else 'UNEXPECTED ERROR: It is expected to be an empty set, which means that all GV$ and V$ view column names are defined consistently' end ERROR_INFO from (select /*+no_rewrite*/ count(*) cnt from
(SELECT t.table_name,
group_concat(c.column_name) as column_name_list

View File

@ -9187,6 +9187,33 @@ IF(count(*) >= 0, 1, 0)
"oceanbase.__all_virtual_checkpoint_diagnose_info runs in single server"
IF(count(*) >= 0, 1, 0)
1
desc oceanbase.__all_virtual_tenant_scheduler_running_job;
Field Type Null Key Default Extra
svr_ip varchar(46) NO NULL
svr_port bigint(20) NO NULL
tenant_id bigint(20) NO NULL
owner varchar(128) YES NULL
job_name varchar(128) NO NULL
job_subname varchar(30) YES NULL
job_style varchar(11) YES NULL
detached varchar(5) YES NULL
session_id bigint(20) unsigned YES NULL
slave_process_id bigint(20) unsigned YES NULL
slave_os_process_id bigint(20) unsigned YES NULL
resource_consumer_group varchar(30) YES NULL
running_instance varchar(30) YES NULL
elapsed_time bigint(20) YES NULL
cpu_used bigint(20) YES NULL
destination_owner varchar(128) YES NULL
destination varchar(128) YES NULL
credential_owner varchar(30) YES NULL
credential_name varchar(30) YES NULL
select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from oceanbase.__all_virtual_tenant_scheduler_running_job;
IF(count(*) >= 0, 1, 0)
1
"oceanbase.__all_virtual_tenant_scheduler_running_job runs in single server"
IF(count(*) >= 0, 1, 0)
1
desc oceanbase.__all_virtual_routine_privilege;
Field Type Null Key Default Extra
tenant_id bigint(20) NO PRI NULL
@ -9555,6 +9582,40 @@ IF(count(*) >= 0, 1, 0)
"oceanbase.__all_virtual_nic_info runs in single server"
IF(count(*) >= 0, 1, 0)
1
desc oceanbase.__all_virtual_scheduler_job_run_detail_v2;
Field Type Null Key Default Extra
tenant_id bigint(20) NO PRI NULL
job_name varchar(128) NO PRI NULL
time timestamp(6) NO PRI NULL
gmt_create timestamp(6) NO NULL
gmt_modified timestamp(6) NO NULL
job bigint(20) YES 0
log_id bigint(20) YES 0
log_date timestamp(6) YES NULL
owner varchar(128) YES NULL
job_subname varchar(128) YES NULL
job_class varchar(128) YES NULL
operation varchar(128) YES NULL
status varchar(128) YES NULL
code bigint(20) YES 0
req_start_date timestamp(6) YES NULL
actual_start_date timestamp(6) YES NULL
run_duration bigint(20) YES NULL
instance_id varchar(128) YES NULL
session_id bigint(20) unsigned YES NULL
slave_pid varchar(128) YES NULL
cpu_used bigint(20) YES NULL
user_name varchar(128) YES NULL
client_id varchar(128) YES NULL
global_uid varchar(128) YES NULL
credential_owner varchar(128) YES NULL
credential_name varchar(128) YES NULL
destination_owner varchar(128) YES NULL
destination varchar(128) YES NULL
message varchar(4000) NO NULL
select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from oceanbase.__all_virtual_scheduler_job_run_detail_v2;
IF(count(*) >= 0, 1, 0)
1
desc oceanbase.__all_virtual_spatial_reference_systems;
Field Type Null Key Default Extra
tenant_id bigint(20) NO PRI NULL

View File

@ -298,6 +298,7 @@ select 0xffffffffff & table_id, table_name, table_type, database_id, part_num fr
514 __all_user_proxy_role_info 0 201001 1
515 __all_user_proxy_role_info_history 0 201001 1
518 __all_mview_dep 0 201001 1
519 __all_scheduler_job_run_detail_v2 0 201001 1
10001 __tenant_virtual_all_table 2 201001 1
10002 __tenant_virtual_table_column 2 201001 1
10003 __tenant_virtual_table_index 2 201001 1
@ -724,6 +725,7 @@ select 0xffffffffff & table_id, table_name, table_type, database_id, part_num fr
12437 __all_virtual_checkpoint_diagnose_memtable_info 2 201001 1
12438 __all_virtual_checkpoint_diagnose_checkpoint_unit_info 2 201001 1
12439 __all_virtual_checkpoint_diagnose_info 2 201001 1
12442 __all_virtual_tenant_scheduler_running_job 2 201001 1
12443 __all_virtual_routine_privilege 2 201001 1
12444 __all_virtual_routine_privilege_history 2 201001 1
12447 __all_virtual_aux_stat 2 201001 1
@ -749,6 +751,7 @@ select 0xffffffffff & table_id, table_name, table_type, database_id, part_num fr
12481 __all_virtual_tenant_resource_limit 2 201001 1
12482 __all_virtual_tenant_resource_limit_detail 2 201001 1
12487 __all_virtual_nic_info 2 201001 1
12488 __all_virtual_scheduler_job_run_detail_v2 2 201001 1
12490 __all_virtual_spatial_reference_systems 2 201001 1
20001 GV$OB_PLAN_CACHE_STAT 1 201001 1
20002 GV$OB_PLAN_CACHE_PLAN_STAT 1 201001 1
@ -1186,6 +1189,8 @@ select 0xffffffffff & table_id, table_name, table_type, database_id, part_num fr
21580 EVENTS 1 201002 1
21581 V$OB_NIC_INFO 1 201001 1
21586 GV$OB_NIC_INFO 1 201001 1
21589 DBA_SCHEDULER_JOB_RUN_DETAILS 1 201001 1
21590 CDB_SCHEDULER_JOB_RUN_DETAILS 1 201001 1
check sys table count and table_id range success
check count and table_id range for virtual table success
select * from information_schema.CHARACTER_SETS limit 1;

View File

@ -711,7 +711,7 @@ Outputs & filters:
-------------------------------------
0 - output([wfsydp.WSJJDM], [wfsydp.WSJWSY]), filter(nil), rowset=16
access([wfsydp.WSJJDM], [wfsydp.WSJWSY]), partitions(p0)
limit(181819), offset(0), is_index_back=false, is_global_index=true,
limit(181819), offset(0), is_index_back=false, is_global_index=true, keep_ordering=true,
range_key([wfsydp.WSJJDM], [wfsydp.WSJWSY], [wfsydp.WSJJZH], [wfsydp.WSDRDM], [wfsydp.WSJYZH]), range(666888,MIN,MIN,MIN,MIN ; 666888,MAX,MAX,MAX,
MAX),
range_cond([wfsydp.WSJJDM = '666888'])

View File

@ -760,14 +760,14 @@ Outputs & filters:
group(nil), agg_func([T_FUN_SUM(t2.c1)], [T_FUN_COUNT(t2.c1)])
4 - output([t2.c1]), filter(nil), rowset=16
access([t2.c1]), partitions(p0)
is_index_back=false, is_global_index=false,
is_index_back=false, is_global_index=false, keep_ordering=true,
range_key([t2.c1]), range(MIN ; MAX)always true,
range_cond([t2.c1 = :0])
5 - output([cast(T_FUN_COUNT(*), DECIMAL(24, 4))]), filter(nil), rowset=16
group(nil), agg_func([T_FUN_COUNT(*)])
6 - output(nil), filter(nil), rowset=16
access(nil), partitions(p0)
is_index_back=false, is_global_index=false,
is_index_back=false, is_global_index=false, keep_ordering=true,
range_key([t3.c1]), range(MIN ; MAX)always true,
range_cond([t3.c1 = :0])
explain select * from t1 where t1.c1 != (select c2 from t2 where t2.c1 = (select max(c2) from t3 where t3.c1 = t1.c1) order by t2.c2 limit 1);
@ -803,7 +803,7 @@ Outputs & filters:
group(nil), agg_func([T_FUN_MAX(t3.c2)])
6 - output([t3.c2]), filter(nil), rowset=16
access([t3.c2]), partitions(p0)
is_index_back=false, is_global_index=false,
is_index_back=false, is_global_index=false, keep_ordering=true,
range_key([t3.c1]), range(MIN ; MAX)always true,
range_cond([t3.c1 = :0])
7 - output([t2.c1], [t2.c2]), filter(nil), rowset=16

View File

@ -12,6 +12,17 @@ Variable_name Value
ob_max_read_stale_time -1
alter system set weak_read_version_refresh_interval="6s";
alter system set weak_read_version_refresh_interval="3s";
use oceanbase;
set ob_read_consistency = 'weak';
show variables like 'ob_read_consistency';
Variable_name Value
ob_read_consistency WEAK
select count(1) > 0 from __all_server;
count(1) > 0
1
select count(1) from gv$ob_sql_audit where consistency_level=3 and query_sql = 'select count(1) > 0 from __all_server' and query_sql not like '%sql_audit%';
count(1)
1
set global ob_max_read_stale_time = -1;
show global variables like '%stale_time%';
Variable_name Value

View File

@ -22,6 +22,13 @@ show global variables like '%stale_time%';
connection conn1;
alter system set weak_read_version_refresh_interval="6s";
alter system set weak_read_version_refresh_interval="3s";
#测试内部表查询是否为强读
use oceanbase;
set ob_read_consistency = 'weak';
show variables like 'ob_read_consistency';
select count(1) > 0 from __all_server;
select count(1) from gv$ob_sql_audit where consistency_level=3 and query_sql = 'select count(1) > 0 from __all_server' and query_sql not like '%sql_audit%';
--sleep 2
# 0. 禁用ob_max_read_stale_time

View File

@ -338,7 +338,7 @@ Outputs & filters:
-------------------------------------
0 - output([t1.a], [t1.b]), filter(nil), rowset=16
access([t1.a], [t1.b]), partitions(p0)
is_index_back=false, is_global_index=true,
is_index_back=false, is_global_index=true, keep_ordering=true,
range_key([t1.b], [t1.a]), range(MIN,MIN ; MAX,MAX)always true
select * from t1;
+---+------+
@ -396,7 +396,7 @@ Outputs & filters:
-------------------------------------
0 - output([t1.a], [t1.b]), filter(nil), rowset=16
access([t1.a], [t1.b]), partitions(p0)
is_index_back=false, is_global_index=true,
is_index_back=false, is_global_index=true, keep_ordering=true,
range_key([t1.b], [t1.a]), range(MIN,MIN ; MAX,MAX)always true
select * from t1;
+---+------+
@ -3283,7 +3283,7 @@ Outputs & filters:
[gf_ar_mthly_bill.chked_amt], [gf_ar_mthly_bill.writingoff_amt], [gf_ar_mthly_bill.svc_bill_amt], [gf_ar_mthly_bill.svc_ccy], [gf_ar_mthly_bill.env_source],
[gf_ar_mthly_bill.metadata_source], [gf_ar_mthly_bill.setl_time_zone], [gf_ar_mthly_bill.actg_time_zone], [gf_ar_mthly_bill.inter_trade_flag], [gf_ar_mthly_bill.actg_bill_mth],
[gf_ar_mthly_bill.auto_writeoff_group_no]), partitions(p0)
is_index_back=true, is_global_index=true,
is_index_back=true, is_global_index=true, keep_ordering=true,
range_key([gf_ar_mthly_bill.tnt_inst_id], [gf_ar_mthly_bill.rcrd_id], [gf_ar_mthly_bill.shadow_pk_0], [gf_ar_mthly_bill.shadow_pk_1]), range(MIN,MIN,
MIN,MIN ; MAX,MAX,MAX,MAX)always true
select * from gf_ar_mthly_bill;
@ -3461,7 +3461,7 @@ Outputs & filters:
[gf_ar_mthly_bill.chked_amt], [gf_ar_mthly_bill.writingoff_amt], [gf_ar_mthly_bill.svc_bill_amt], [gf_ar_mthly_bill.svc_ccy], [gf_ar_mthly_bill.env_source],
[gf_ar_mthly_bill.metadata_source], [gf_ar_mthly_bill.setl_time_zone], [gf_ar_mthly_bill.actg_time_zone], [gf_ar_mthly_bill.inter_trade_flag], [gf_ar_mthly_bill.actg_bill_mth],
[gf_ar_mthly_bill.auto_writeoff_group_no]), partitions(p0)
is_index_back=true, is_global_index=true,
is_index_back=true, is_global_index=true, keep_ordering=true,
range_key([gf_ar_mthly_bill.tnt_inst_id], [gf_ar_mthly_bill.rcrd_id], [gf_ar_mthly_bill.shadow_pk_0], [gf_ar_mthly_bill.shadow_pk_1]), range(MIN,MIN,
MIN,MIN ; MAX,MAX,MAX,MAX)always true
select * from gf_ar_mthly_bill;

View File

@ -1,4 +1,4 @@
#owner: jiangxiu.wt
#owner: zongmei.zzm
#owner group: sql1
#description: