-
Notifications
You must be signed in to change notification settings - Fork 595
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into eric/remove_source_info
- Loading branch information
Showing
55 changed files
with
1,098 additions
and
327 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
statement ok | ||
SET RW_IMPLICIT_FLUSH TO true; | ||
|
||
statement ok | ||
SET STREAMING_PARALLELISM TO 2; | ||
|
||
statement ok | ||
create table t_simple (v1 int, v2 int); | ||
|
||
statement ok | ||
create table m_simple (v1 int primary key, v2 int); | ||
|
||
statement ok | ||
SET STREAMING_PARALLELISM TO 3; | ||
|
||
statement ok | ||
create sink s_simple_1 into m_simple as select v1, v2 from t_simple; | ||
|
||
query I | ||
select distinct parallelism from rw_fragment_parallelism where name in ('t_simple', 'm_simple', 's_simple_1'); | ||
---- | ||
2 | ||
|
||
statement ok | ||
insert into t_simple select * from generate_series(1, 100); | ||
|
||
statement ok | ||
flush; | ||
|
||
query I | ||
select count(*) from m_simple; | ||
---- | ||
100 | ||
|
||
statement ok | ||
drop sink s_simple_1; | ||
|
||
statement ok | ||
drop table t_simple; | ||
|
||
statement ok | ||
drop table m_simple; | ||
|
||
statement ok | ||
SET RW_IMPLICIT_FLUSH TO true; | ||
|
||
statement ok | ||
SET STREAMING_PARALLELISM TO 2; | ||
|
||
statement ok | ||
create table t_simple (v1 int, v2 int); | ||
|
||
statement ok | ||
create table m_simple (v1 int primary key, v2 int); | ||
|
||
statement ok | ||
SET STREAMING_PARALLELISM TO 3; | ||
|
||
# multi fragment sink | ||
statement ok | ||
create sink s_multi into m_simple as select v1, count(*)::int from t_simple group by v1; | ||
|
||
query I | ||
select parallelism from rw_fragment_parallelism where array_position(flags, 'SINK') is not null and name = 's_multi'; | ||
---- | ||
3 | ||
|
||
statement ok | ||
insert into t_simple select * from generate_series(1, 100); | ||
|
||
statement ok | ||
flush; | ||
|
||
query I | ||
select count(*) from m_simple; | ||
---- | ||
100 | ||
|
||
statement ok | ||
drop sink s_multi; | ||
|
||
statement ok | ||
drop table t_simple; | ||
|
||
statement ok | ||
drop table m_simple; | ||
|
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,18 @@ | ||
[risingwave] | ||
db=dev | ||
user=root | ||
host=127.0.0.1 | ||
port=4566 | ||
|
||
[source] | ||
connector = iceberg | ||
catalog.type = hive | ||
catalog.uri = thrift://metastore:9083 | ||
warehouse.path = s3://icebergdata/demo | ||
s3.endpoint=http://minio-0:9301 | ||
s3.access.key = hummockadmin | ||
s3.secret.key = hummockadmin | ||
s3.region = ap-southeast-1 | ||
catalog.name = demo | ||
database.name=s1 | ||
table.name=t1 |
Oops, something went wrong.