[FEAT MERGE] 4.x Dup Table

Co-authored-by: Minionyh <minions.yh@gmail.com>
Co-authored-by: BinChenn <binchenn.bc@gmail.com>
Co-authored-by: ChangerR <dingjinchengyx@163.com>
This commit is contained in:
KyrielightWei
2023-05-11 10:07:20 +00:00
committed by ob-robot
parent 0509c5f9fe
commit aaab6560a1
278 changed files with 20924 additions and 2857 deletions

View File

@ -589,6 +589,9 @@ select 0xffffffffff & table_id, table_name, table_type, database_id, part_num fr
12366 __all_virtual_archive_dest_status 2 201001 1
12369 __all_virtual_io_scheduler 2 201001 1
12371 __all_virtual_external_table_file 2 201001 1
12376 __all_virtual_dup_ls_lease_mgr 2 201001 1
12378 __all_virtual_dup_ls_tablet_set 2 201001 1
12379 __all_virtual_dup_ls_tablets 2 201001 1
12380 __all_virtual_tx_data 2 201001 1
12381 __all_virtual_task_opt_stat_gather_history 2 201001 1
12382 __all_virtual_table_opt_stat_gather_history 2 201001 1

View File

@ -185,7 +185,7 @@ sid subject score tid name subject
62 EN 90 1 Miss Zhang EN
63 EN 99 1 Miss Zhang EN
64 EN 87 1 Miss Zhang EN
CREATE TABLE product (pid bigint primary key,pname varchar(50),gmt_modify timestamp(6),gmt_create timestamp(6),thread_id bigint, key k (gmt_modify));
CREATE TABLE product (pid bigint primary key,pname varchar(50),gmt_modify timestamp(6),gmt_create timestamp(6),thread_id bigint, key k (gmt_modify))duplicate_scope="cluster";
CREATE TABLE orders (oid bigint primary key,pid bigint,amount int, addr varchar(20),key k (pid) local) partition by hash (oid) partitions 100;
insert into product values(314265, "abcd", now(), now(), 1234);
insert into orders values(314265, 314265, 678, "192.168.1.8");

View File

@ -14,7 +14,7 @@ explain select /*+ USE_PX parallel(2) */ * from score, teacher where teacher.sub
--sorted_result
select /*+ USE_PX parallel(2) */ * from score, teacher where teacher.subject = score.subject and teacher.tid = 1;
CREATE TABLE product (pid bigint primary key,pname varchar(50),gmt_modify timestamp(6),gmt_create timestamp(6),thread_id bigint, key k (gmt_modify));
CREATE TABLE product (pid bigint primary key,pname varchar(50),gmt_modify timestamp(6),gmt_create timestamp(6),thread_id bigint, key k (gmt_modify))duplicate_scope="cluster";
CREATE TABLE orders (oid bigint primary key,pid bigint,amount int, addr varchar(20),key k (pid) local) partition by hash (oid) partitions 100;