Skip to content

Commit

Permalink
fix: flaky test (#14366)
Browse files Browse the repository at this point in the history
fix flaky test
  • Loading branch information
zhyass authored Jan 17, 2024
1 parent b477e99 commit 138069d
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
statement ok
drop table if exists tbl_01_0007 all

statement ok
set enable_table_lock = 0

statement ok
create table tbl_01_0007(a int not null) cluster by(a)

Expand All @@ -16,6 +19,9 @@ insert into tbl_01_0007 values(4)
statement ok
alter table tbl_01_0007 recluster final where a != 4

statement ok
set enable_table_lock = 1

query III
select block_count, byte_size, row_count from system.clustering_history where table = 'tbl_01_0007' limit 1
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ CREATE DATABASE db_09_0008
statement ok
USE db_09_0008

statement ok
set enable_table_lock = 0

statement ok
create table t(a uint64 not null)

Expand Down Expand Up @@ -743,7 +746,8 @@ select row_count from fuse_block('db_09_0008', 't13')
7
14


statement ok
set enable_table_lock = 1

statement ok
DROP TABLE m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ CREATE DATABASE db_09_0009_04
statement ok
USE db_09_0009_04

statement ok
set enable_table_lock = 0

statement ok
create table range_test_t(a int)

Expand Down Expand Up @@ -44,6 +47,8 @@ select max(a) from range_test_t where a >= 4000 and a <= 5000;
----
5000

statement ok
set enable_table_lock = 1

statement ok
drop table range_test_t
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ CREATE DATABASE db1
statement ok
USE db1

statement ok
set enable_table_lock = 0

statement ok
create table t(a int) cluster by(a) change_tracking = false

Expand Down Expand Up @@ -83,6 +86,9 @@ insert into t2 values(1)
statement error 1002
merge into t using t2 on t.a = t2.a when matched then delete

statement ok
set enable_table_lock = 1

statement ok
drop table t all

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ CREATE DATABASE db_09_0016
statement ok
USE db_09_0016

statement ok
set enable_table_lock = 0

statement ok
create table t1(a int, b int) cluster by(a+1)

Expand Down Expand Up @@ -125,3 +128,6 @@ DROP DATABASE db_09_0016

statement ok
set max_block_size = 65536

statement ok
set enable_table_lock = 1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ CREATE DATABASE issue_8130
statement ok
USE issue_8130

statement ok
set enable_table_lock = 0

statement ok
create table t(a int)

Expand Down Expand Up @@ -44,6 +47,9 @@ select count(1) from t1
----
7

statement ok
set enable_table_lock = 1

statement ok
DROP TABLE t;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ CREATE DATABASE db_09_0020
statement ok
USE db_09_0020

statement ok
set enable_table_lock = 0

statement ok
create table t(a uint64)

Expand Down Expand Up @@ -113,6 +116,9 @@ select * from fuse_statistic('db_09_0020', 't')
----
(0,2);

statement ok
set enable_table_lock = 1

statement ok
DROP TABLE t

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ CREATE DATABASE db_09_0027
statement ok
USE db_09_0027

statement ok
set enable_table_lock = 0

statement ok
create table t(c int) storage_format = 'native' compression = 'lz4';

Expand Down Expand Up @@ -70,5 +73,8 @@ select level_one,level_two,count(*) from fuse_encoding('db_09_0027') where colum
DeltaBitpack NULL 1
OneValue NULL 1

statement ok
set enable_table_lock = 1

statement ok
DROP DATABASE db_09_0027

0 comments on commit 138069d

Please sign in to comment.