-
Notifications
You must be signed in to change notification settings - Fork 589
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 feat/switch-sim-integration-tests
- Loading branch information
Showing
57 changed files
with
1,997 additions
and
956 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
statement ok | ||
create view table_parallelism as select t.name, tf.parallelism, tf.max_parallelism from rw_tables t, rw_table_fragments tf where t.id = tf.table_id; | ||
|
||
#### BEGIN | ||
|
||
# Default max_parallelism should be 256. | ||
|
||
statement ok | ||
set streaming_max_parallelism to default; | ||
|
||
statement ok | ||
set streaming_parallelism to default; | ||
|
||
statement ok | ||
create table t; | ||
|
||
query TT | ||
select parallelism, max_parallelism from table_parallelism where name = 't'; | ||
---- | ||
ADAPTIVE 256 | ||
|
||
statement ok | ||
drop table t; | ||
|
||
|
||
# Test customized max_parallelism. | ||
|
||
statement ok | ||
set streaming_max_parallelism to 4; | ||
|
||
# When the parallelism is specified to a value greater than the max parallelism, return an error. | ||
statement ok | ||
set streaming_parallelism to 6; | ||
|
||
statement error specified parallelism 6 should not exceed max parallelism 4 | ||
create table t; | ||
|
||
# When the parallelism is specified to an valid value, ok. | ||
statement ok | ||
set streaming_parallelism to 4; | ||
|
||
statement ok | ||
create table t; | ||
|
||
query TT | ||
select parallelism, max_parallelism from table_parallelism where name = 't'; | ||
---- | ||
FIXED(4) 4 | ||
|
||
statement ok | ||
drop table t; | ||
|
||
# When no parallelism is specified, ok, and the parallelism will be adaptive. | ||
|
||
statement ok | ||
set streaming_parallelism to default; | ||
|
||
statement ok | ||
create table t; | ||
|
||
query TT | ||
select parallelism, max_parallelism from table_parallelism where name = 't'; | ||
---- | ||
ADAPTIVE 4 | ||
|
||
# Alter parallelism to a valid value, ok. | ||
statement ok | ||
alter table t set parallelism to 4; | ||
|
||
query TT | ||
select parallelism, max_parallelism from table_parallelism where name = 't'; | ||
---- | ||
FIXED(4) 4 | ||
|
||
# Alter parallelism to an invalid value, return an error. | ||
statement error specified parallelism 8 should not exceed max parallelism 4 | ||
alter table t set parallelism to 8; | ||
|
||
statement ok | ||
drop table t; | ||
|
||
|
||
#### END | ||
|
||
statement ok | ||
set streaming_max_parallelism to default; | ||
|
||
statement ok | ||
set streaming_parallelism to default; | ||
|
||
statement ok | ||
drop view table_parallelism; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.