-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support DROP TABLE, STREAM, and MATERIALIZED VIEW (#1266)
- Loading branch information
Showing
29 changed files
with
1,544 additions
and
4 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
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 |
---|---|---|
|
@@ -39,4 +39,5 @@ bindings: | |
when: | ||
- commands: | ||
- "CREATE TOPIC" | ||
- "DROP TOPIC" | ||
exit: app1 |
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
112 changes: 112 additions & 0 deletions
112
...livity/zilla/specs/binding/risingwave/streams/effective/drop.materialized.view/client.rpt
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,112 @@ | ||
# | ||
# Copyright 2021-2023 Aklivity Inc | ||
# | ||
# Licensed under the Aklivity Community License (the "License"); you may not use | ||
# this file except in compliance with the License. You may obtain a copy of the | ||
# License at | ||
# | ||
# https://www.aklivity.io/aklivity-community-license/ | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OF ANY KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations under the License. | ||
# | ||
|
||
connect "zilla://streams/app1" | ||
option zilla:window 8192 | ||
option zilla:transmission "duplex" | ||
|
||
write zilla:begin.ext ${pgsql:beginEx() | ||
.typeId(zilla:id("pgsql")) | ||
.parameter("user", "root") | ||
.parameter("database", "dev") | ||
.parameter("application_name", "psql") | ||
.parameter("client_encoding", "UTF8") | ||
.build()} | ||
|
||
connected | ||
|
||
write zilla:data.ext ${pgsql:dataEx() | ||
.typeId(zilla:id("pgsql")) | ||
.query() | ||
.build() | ||
.build()} | ||
write "DROP MATERIALIZED VIEW weather;" | ||
[0x00] | ||
write flush | ||
|
||
read advised zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.completion() | ||
.tag("DROP_MATERIALIZED_VIEW") | ||
.build() | ||
.build()} | ||
|
||
read advised zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.ready() | ||
.status("IDLE") | ||
.build() | ||
.build()} | ||
|
||
write zilla:data.ext ${pgsql:dataEx() | ||
.typeId(zilla:id("pgsql")) | ||
.query() | ||
.build() | ||
.build()} | ||
write "DROP SINK weather_sink;" | ||
[0x00] | ||
write flush | ||
|
||
read advised zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.completion() | ||
.tag("DROP_SINK") | ||
.build() | ||
.build()} | ||
|
||
read advised zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.ready() | ||
.status("IDLE") | ||
.build() | ||
.build()} | ||
|
||
connect "zilla://streams/app2" | ||
option zilla:window 8192 | ||
option zilla:transmission "duplex" | ||
|
||
write zilla:begin.ext ${pgsql:beginEx() | ||
.typeId(zilla:id("pgsql")) | ||
.parameter("user", "root") | ||
.parameter("database", "dev") | ||
.parameter("application_name", "psql") | ||
.parameter("client_encoding", "UTF8") | ||
.build()} | ||
|
||
connected | ||
|
||
write zilla:data.ext ${pgsql:dataEx() | ||
.typeId(zilla:id("pgsql")) | ||
.query() | ||
.build() | ||
.build()} | ||
write "DROP TOPIC weather;" | ||
[0x00] | ||
write flush | ||
|
||
read advised zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.completion() | ||
.tag("DROP_TOPIC") | ||
.build() | ||
.build()} | ||
|
||
read advised zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.ready() | ||
.status("IDLE") | ||
.build() | ||
.build()} | ||
|
114 changes: 114 additions & 0 deletions
114
...livity/zilla/specs/binding/risingwave/streams/effective/drop.materialized.view/server.rpt
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,114 @@ | ||
# | ||
# Copyright 2021-2023 Aklivity Inc | ||
# | ||
# Licensed under the Aklivity Community License (the "License"); you may not use | ||
# this file except in compliance with the License. You may obtain a copy of the | ||
# License at | ||
# | ||
# https://www.aklivity.io/aklivity-community-license/ | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OF ANY KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations under the License. | ||
# | ||
|
||
accept "zilla://streams/app1" | ||
option zilla:window 8192 | ||
option zilla:transmission "duplex" | ||
|
||
accepted | ||
|
||
read zilla:begin.ext ${pgsql:beginEx() | ||
.typeId(zilla:id("pgsql")) | ||
.parameter("user", "root") | ||
.parameter("database", "dev") | ||
.parameter("application_name", "psql") | ||
.parameter("client_encoding", "UTF8") | ||
.build()} | ||
|
||
connected | ||
|
||
read zilla:data.ext ${pgsql:dataEx() | ||
.typeId(zilla:id("pgsql")) | ||
.query() | ||
.build() | ||
.build()} | ||
read "DROP MATERIALIZED VIEW weather;" | ||
[0x00] | ||
|
||
write advise zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.completion() | ||
.tag("DROP_MATERIALIZED_VIEW") | ||
.build() | ||
.build()} | ||
|
||
write advise zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.ready() | ||
.status("IDLE") | ||
.build() | ||
.build()} | ||
|
||
read zilla:data.ext ${pgsql:dataEx() | ||
.typeId(zilla:id("pgsql")) | ||
.query() | ||
.build() | ||
.build()} | ||
read "DROP SINK weather_sink;" | ||
[0x00] | ||
|
||
write advise zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.completion() | ||
.tag("DROP_SINK") | ||
.build() | ||
.build()} | ||
|
||
write advise zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.ready() | ||
.status("IDLE") | ||
.build() | ||
.build()} | ||
|
||
accept "zilla://streams/app2" | ||
option zilla:window 8192 | ||
option zilla:transmission "duplex" | ||
|
||
accepted | ||
|
||
read zilla:begin.ext ${pgsql:beginEx() | ||
.typeId(zilla:id("pgsql")) | ||
.parameter("user", "root") | ||
.parameter("database", "dev") | ||
.parameter("application_name", "psql") | ||
.parameter("client_encoding", "UTF8") | ||
.build()} | ||
|
||
connected | ||
|
||
read zilla:data.ext ${pgsql:dataEx() | ||
.typeId(zilla:id("pgsql")) | ||
.query() | ||
.build() | ||
.build()} | ||
read "DROP TOPIC weather;" | ||
[0x00] | ||
|
||
write advise zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.completion() | ||
.tag("DROP_TOPIC") | ||
.build() | ||
.build()} | ||
|
||
|
||
write advise zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.ready() | ||
.status("IDLE") | ||
.build() | ||
.build()} | ||
|
90 changes: 90 additions & 0 deletions
90
...ripts/io/aklivity/zilla/specs/binding/risingwave/streams/effective/drop.stream/client.rpt
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,90 @@ | ||
# | ||
# Copyright 2021-2023 Aklivity Inc | ||
# | ||
# Licensed under the Aklivity Community License (the "License"); you may not use | ||
# this file except in compliance with the License. You may obtain a copy of the | ||
# License at | ||
# | ||
# https://www.aklivity.io/aklivity-community-license/ | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OF ANY KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations under the License. | ||
# | ||
|
||
connect "zilla://streams/app1" | ||
option zilla:window 8192 | ||
option zilla:transmission "duplex" | ||
|
||
write zilla:begin.ext ${pgsql:beginEx() | ||
.typeId(zilla:id("pgsql")) | ||
.parameter("user", "root") | ||
.parameter("database", "dev") | ||
.parameter("application_name", "psql") | ||
.parameter("client_encoding", "UTF8") | ||
.build()} | ||
|
||
connected | ||
|
||
write zilla:data.ext ${pgsql:dataEx() | ||
.typeId(zilla:id("pgsql")) | ||
.query() | ||
.build() | ||
.build()} | ||
write "DROP SOURCE weather;" | ||
[0x00] | ||
write flush | ||
|
||
read advised zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.completion() | ||
.tag("DROP_SOURCE") | ||
.build() | ||
.build()} | ||
|
||
read advised zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.ready() | ||
.status("IDLE") | ||
.build() | ||
.build()} | ||
|
||
connect "zilla://streams/app2" | ||
option zilla:window 8192 | ||
option zilla:transmission "duplex" | ||
|
||
write zilla:begin.ext ${pgsql:beginEx() | ||
.typeId(zilla:id("pgsql")) | ||
.parameter("user", "root") | ||
.parameter("database", "dev") | ||
.parameter("application_name", "psql") | ||
.parameter("client_encoding", "UTF8") | ||
.build()} | ||
|
||
connected | ||
|
||
write zilla:data.ext ${pgsql:dataEx() | ||
.typeId(zilla:id("pgsql")) | ||
.query() | ||
.build() | ||
.build()} | ||
write "DROP TOPIC weather;" | ||
[0x00] | ||
|
||
write flush | ||
|
||
read advised zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.completion() | ||
.tag("DROP_TOPIC") | ||
.build() | ||
.build()} | ||
|
||
read advised zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.ready() | ||
.status("IDLE") | ||
.build() | ||
.build()} | ||
|
Oops, something went wrong.