Skip to content

Commit 5433929

Browse files
committed
add bvt
1 parent 1a3cae1 commit 5433929

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

test/distributed/cases/snapshot/clone/clone_in_alter_table.result

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,21 @@ select * from t1 where e in (1, 10, 19, 38, 100);
9999
a b_2 c d e
100100
10 10.0 10 10 10
101101
100 100.0 100 100 100
102+
update t1 set a = a + 1 where c in (8,88,888,8888,88888);
103+
select * from t1 where c in (8,88,888,8888,88888);
104+
a b_2 c d e
105+
9 8.0 8 8 8
106+
89 88.0 88 88 88
107+
889 888.0 888 888 888
108+
8889 8888.0 8888 8888 8888
109+
88889 88888.0 88888 88888 88888
110+
alter table t1 add column f int;
111+
update t1 set a = a + 1 where c in (8,88,888,8888,88888);
112+
select * from t1 where c in (8,88,888,8888,88888);
113+
a b_2 c d e f
114+
10 8.0 8 8 8 null
115+
90 88.0 88 88 88 null
116+
890 888.0 888 888 888 null
117+
8890 8888.0 8888 8888 8888 null
118+
88890 88888.0 88888 88888 88888 null
102119
drop database test;

test/distributed/cases/snapshot/clone/clone_in_alter_table.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,10 @@ select * from t1 where b_2 in (1, 10, 19, 38, 100);
7373
select * from t1 where c in (1, 10, 19, 38, 100) and d in (1, 10, 19, 38, 100);
7474
select * from t1 where e in (1, 10, 19, 38, 100);
7575

76+
update t1 set a = a + 1 where c in (8,88,888,8888,88888);
77+
select * from t1 where c in (8,88,888,8888,88888);
78+
alter table t1 add column f int;
79+
update t1 set a = a + 1 where c in (8,88,888,8888,88888);
80+
select * from t1 where c in (8,88,888,8888,88888);
7681

7782
drop database test;

0 commit comments

Comments
 (0)