-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sink): support sink rate limit for external sink (#19660)
Signed-off-by: MrCroxx <[email protected]> Co-authored-by: MrCroxx <[email protected]>
- Loading branch information
Showing
27 changed files
with
677 additions
and
108 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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,49 @@ | ||
statement ok | ||
CREATE TABLE t1(v1 int, v2 int); | ||
|
||
statement ok | ||
CREATE SINK s1 AS select * from t1 WITH ( | ||
connector = 'blackhole' | ||
); | ||
|
||
statement ok | ||
SET SINK_RATE_LIMIT TO 100; | ||
|
||
statement ok | ||
SET SINK_RATE_LIMIT TO 0; | ||
|
||
statement ok | ||
SET SINK_RATE_LIMIT TO default; | ||
|
||
statement ok | ||
ALTER SINK s1 SET SINK_RATE_LIMIT = 1000; | ||
|
||
statement ok | ||
ALTER SINK s1 SET SINK_RATE_LIMIT = 0; | ||
|
||
statement ok | ||
ALTER SINK s1 SET SINK_RATE_LIMIT = default; | ||
|
||
statement ok | ||
create table t2 (v1 int primary key, v2 int); | ||
|
||
statement ok | ||
create sink s2 into t2 as select v1, v2 from t1; | ||
|
||
statement error | ||
ALTER SINK s2 SET SINK_RATE_LIMIT = 0; | ||
|
||
statement ok | ||
DROP SINK s2; | ||
|
||
statement ok | ||
DROP SINK s1; | ||
|
||
statement ok | ||
DROP TABLE t2; | ||
|
||
statement ok | ||
DROP TABLE t1; | ||
|
||
statement ok | ||
FLUSH; |
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
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
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
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
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
Oops, something went wrong.