-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: MrCroxx <[email protected]>
- Loading branch information
Showing
4 changed files
with
24 additions
and
259 deletions.
There are no files selected for viewing
100 changes: 0 additions & 100 deletions
100
e2e_test/backfill/adaptive-rate-limit/amplification-100.slt
This file was deleted.
Oops, something went wrong.
77 changes: 8 additions & 69 deletions
77
e2e_test/backfill/adaptive-rate-limit/amplification-10000.slt
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 |
---|---|---|
@@ -1,92 +1,31 @@ | ||
statement ok | ||
set streaming_parallelism = 2; | ||
|
||
statement ok | ||
create table fact(v1 int); | ||
|
||
statement ok | ||
create table dim(v1 int); | ||
|
||
statement ok | ||
create table dim2(v1 int); | ||
# Total backfill = 50_000 * 100 = 5M records | ||
|
||
statement ok | ||
insert into fact select 1 from generate_series(1, 1000000); | ||
insert into fact select v from generate_series(1, 100000) as v ; | ||
|
||
statement ok | ||
insert into dim select 1 from generate_series(1, 100); | ||
|
||
statement ok | ||
insert into dim2 select 1 from generate_series(1, 100); | ||
insert into dim select v from generate_series(1, 1000) as v, generate_series(1, 10000); | ||
|
||
statement ok | ||
flush; | ||
|
||
statement ok | ||
set background_ddl = true; | ||
|
||
statement ok | ||
create sink s1 as select fact.v1 from fact join dim on fact.v1 = dim.v1 join dim2 on fact.v1 = dim2.v1 with (connector = 'blackhole'); | ||
|
||
statement ok | ||
set background_ddl = false; | ||
|
||
# Let at least 16 barriers pass through | ||
# Then we have 1 * 2^16 = 65536 | ||
|
||
skipif in-memory | ||
sleep 10s | ||
|
||
statement ok | ||
flush; | ||
|
||
statement ok | ||
flush; | ||
|
||
statement ok | ||
flush; | ||
|
||
statement ok | ||
flush; | ||
set BACKFILL_RATE_LIMIT = 0; | ||
|
||
statement ok | ||
flush; | ||
|
||
statement ok | ||
flush; | ||
|
||
statement ok | ||
flush; | ||
create materialized view m1 as select fact.v1 from fact join dim on fact.v1 = dim.v1; | ||
|
||
statement ok | ||
flush; | ||
|
||
statement ok | ||
flush; | ||
|
||
statement ok | ||
flush; | ||
|
||
statement ok | ||
flush; | ||
|
||
statement ok | ||
flush; | ||
|
||
statement ok | ||
flush; | ||
|
||
statement ok | ||
flush; | ||
|
||
statement ok | ||
flush; | ||
|
||
statement ok | ||
flush; | ||
|
||
# statement ok | ||
# drop sink s1; | ||
|
||
# statement ok | ||
# drop table fact; | ||
|
||
# statement ok | ||
# drop table dim; |
89 changes: 0 additions & 89 deletions
89
e2e_test/backfill/adaptive-rate-limit/amplification-500.slt
This file was deleted.
Oops, something went wrong.
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