-
Notifications
You must be signed in to change notification settings - Fork 593
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/cargo/pbjson-0.6.0
- Loading branch information
Showing
20 changed files
with
495 additions
and
255 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
statement ok | ||
SET BACKGROUND_DDL=true; | ||
|
||
statement ok | ||
ALTER SYSTEM SET max_concurrent_creating_streaming_jobs TO 4; | ||
|
||
statement ok | ||
CREATE TABLE t (v1 int); | ||
|
||
statement ok | ||
INSERT INTO t select * from generate_series(1, 500000); | ||
|
||
statement ok | ||
FLUSH; | ||
|
||
statement ok | ||
CREATE MATERIALIZED VIEW m1 as SELECT * FROM t; | ||
|
||
statement ok | ||
CREATE MATERIALIZED VIEW m2 as SELECT * FROM t; | ||
|
||
statement ok | ||
CREATE MATERIALIZED VIEW m3 as SELECT * FROM t; | ||
|
||
sleep 3s | ||
|
||
query I | ||
select count(*) from rw_catalog.rw_ddl_progress; | ||
---- | ||
3 | ||
|
||
statement error | ||
SELECT * FROM m1; | ||
|
||
# Meta should always reject duplicate mview. | ||
statement error | ||
CREATE MATERIALIZED VIEW m3 as SELECT * FROM t; | ||
|
||
# Wait for background ddl to finish | ||
sleep 30s | ||
|
||
query I | ||
select count(*) from m1; | ||
---- | ||
500000 | ||
|
||
query I | ||
select count(*) from m2; | ||
---- | ||
500000 | ||
|
||
query I | ||
select count(*) from m3; | ||
---- | ||
500000 | ||
|
||
statement ok | ||
DROP MATERIALIZED VIEW m1; | ||
|
||
statement ok | ||
DROP MATERIALIZED VIEW m2; | ||
|
||
statement ok | ||
DROP MATERIALIZED VIEW m3; | ||
|
||
statement ok | ||
DROP TABLE t; | ||
|
||
statement ok | ||
SET BACKGROUND_DDL=false; | ||
|
||
statement ok | ||
ALTER SYSTEM SET max_concurrent_creating_streaming_jobs TO 1; |
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.