forked from StarRocks/starrocks
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BugFix] Reset all fields of runtime filter when exceeding global bui…
…ld size (StarRocks#35776) (StarRocks#35810) Signed-off-by: zihe.liu <[email protected]>
- Loading branch information
Showing
3 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
test/sql/test_runtime_filter/R/test_global_runtime_filter_exceed_limit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
-- name: test_global_runtime_filter_exceed_limit | ||
create table t1 ( | ||
k1 int | ||
) | ||
duplicate key(k1) | ||
distributed by hash(k1) buckets 32 | ||
properties("replication_num" = "1"); | ||
-- result: | ||
-- !result | ||
insert into t1 select generate_series FROM TABLE(generate_series(1, 65535)); | ||
-- result: | ||
-- !result | ||
insert into t1 select k1 + 65535 from t1; | ||
-- result: | ||
-- !result | ||
insert into t1 select k1 + 65535*2 from t1; | ||
-- result: | ||
-- !result | ||
insert into t1 select k1 + 65535*3 from t1; | ||
-- result: | ||
-- !result | ||
with tw1 as ( | ||
select t1.k1 from t1 join [broadcast] t1 t2 using(k1) | ||
) | ||
select /*+SET_VAR(global_runtime_filter_build_max_size=1,global_runtime_filter_probe_min_size=0)*/ | ||
count(1) from tw1 join [broadcast] t1 t3 using(k1); | ||
-- result: | ||
917490 | ||
-- !result |
18 changes: 18 additions & 0 deletions
18
test/sql/test_runtime_filter/T/test_global_runtime_filter_exceed_limit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
-- name: test_global_runtime_filter_exceed_limit | ||
create table t1 ( | ||
k1 int | ||
) | ||
duplicate key(k1) | ||
distributed by hash(k1) buckets 32 | ||
properties("replication_num" = "1"); | ||
|
||
insert into t1 select generate_series FROM TABLE(generate_series(1, 65535)); | ||
insert into t1 select k1 + 65535 from t1; | ||
insert into t1 select k1 + 65535*2 from t1; | ||
insert into t1 select k1 + 65535*3 from t1; | ||
|
||
with tw1 as ( | ||
select t1.k1 from t1 join [broadcast] t1 t2 using(k1) | ||
) | ||
select /*+SET_VAR(global_runtime_filter_build_max_size=1,global_runtime_filter_probe_min_size=0)*/ | ||
count(1) from tw1 join [broadcast] t1 t3 using(k1); |