-
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.
pgsql ALTER TOPIC command to register new schema (#1309)
- Loading branch information
Showing
60 changed files
with
1,276 additions
and
439 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
55 changes: 55 additions & 0 deletions
55
.../aklivity/zilla/specs/binding/pgsql/kafka/streams/pgsql/alter.topic.add.column/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,55 @@ | ||
# | ||
# Copyright 2021-2024 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/app0" | ||
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 "ALTER TOPIC cities ADD COLUMN zip INT;" | ||
[0x00] | ||
write flush | ||
|
||
read advised zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.completion() | ||
.tag("ALTER_TOPIC") | ||
.build() | ||
.build()} | ||
|
||
read advised zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.ready() | ||
.status("IDLE") | ||
.build() | ||
.build()} | ||
|
||
write close | ||
read closed |
56 changes: 56 additions & 0 deletions
56
.../aklivity/zilla/specs/binding/pgsql/kafka/streams/pgsql/alter.topic.add.column/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,56 @@ | ||
# | ||
# Copyright 2021-2024 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/app0" | ||
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 "ALTER TOPIC cities ADD COLUMN zip INT;" | ||
[0x00] | ||
|
||
write advise zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.completion() | ||
.tag("ALTER_TOPIC") | ||
.build() | ||
.build()} | ||
|
||
write notify CREATE_TOPIC_COMPLETED | ||
|
||
write advise zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.ready() | ||
.status("IDLE") | ||
.build() | ||
.build()} | ||
read closed | ||
write close |
57 changes: 57 additions & 0 deletions
57
...lla/specs/binding/pgsql/kafka/streams/pgsql/alter.topic.modify.column.rejected/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,57 @@ | ||
# | ||
# Copyright 2021-2024 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/app0" | ||
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 "ALTER TOPIC cities ALTER COLUMN name TYPE VARCHAR(100);" | ||
[0x00] | ||
write flush | ||
|
||
read advised zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.error() | ||
.severity("ERROR") | ||
.code("XX000") | ||
.message("Unable to alter topic cities") | ||
.build() | ||
.build()} | ||
|
||
read advised zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.ready() | ||
.status("IDLE") | ||
.build() | ||
.build()} | ||
|
||
write close | ||
read closed |
56 changes: 56 additions & 0 deletions
56
...lla/specs/binding/pgsql/kafka/streams/pgsql/alter.topic.modify.column.rejected/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,56 @@ | ||
# | ||
# Copyright 2021-2024 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/app0" | ||
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 "ALTER TOPIC cities ALTER COLUMN name TYPE VARCHAR(100);" | ||
[0x00] | ||
|
||
write advise zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.error() | ||
.severity("ERROR") | ||
.code("XX000") | ||
.message("Unable to alter topic cities") | ||
.build() | ||
.build()} | ||
|
||
write advise zilla:flush ${pgsql:flushEx() | ||
.typeId(zilla:id("pgsql")) | ||
.ready() | ||
.status("IDLE") | ||
.build() | ||
.build()} | ||
read closed | ||
write close |
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.