Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
7f4b2da
Update antlr gramma
akrambek Nov 12, 2024
84eacb3
Refactor scripts for zstream
akrambek Nov 14, 2024
a5f3121
Remove redundant files
akrambek Nov 14, 2024
cfe8ade
Remove redunant files
akrambek Nov 14, 2024
519279b
Fix typo
akrambek Nov 14, 2024
b60ee1e
Replace weather with commands
akrambek Nov 14, 2024
912bd26
Remove redundant exclude
akrambek Nov 14, 2024
1085600
WIP
akrambek Nov 25, 2024
7bc5c5d
Merge branch 'develop' into feature/z-catalog
akrambek Nov 25, 2024
4039029
Revert back the change
akrambek Nov 25, 2024
8a5ace9
Checkpoint zview
akrambek Nov 26, 2024
92930f8
Stable state
akrambek Nov 26, 2024
463d426
WIP
akrambek Nov 26, 2024
bed9c1c
WIP
akrambek Nov 26, 2024
586ea67
WIP
akrambek Nov 26, 2024
ac7758d
WIP
akrambek Nov 26, 2024
8372f5c
WIP
akrambek Nov 26, 2024
3dc8c3a
WIP
akrambek Nov 26, 2024
478be8f
WIP
akrambek Nov 27, 2024
d1b247c
WIP
akrambek Nov 27, 2024
546473c
Checkpoint
akrambek Nov 27, 2024
99b7216
Remove uncessary files
akrambek Nov 27, 2024
f6435a3
WIP
akrambek Nov 27, 2024
4bbc4aa
WIP
akrambek Nov 28, 2024
8971b87
WIP
akrambek Nov 28, 2024
9dee812
WIP
akrambek Nov 28, 2024
cc6c80e
WIP
akrambek Nov 28, 2024
212872d
Change user
akrambek Nov 28, 2024
21e6963
Checkpoint
akrambek Nov 28, 2024
e4377a0
Update the script
akrambek Nov 28, 2024
b052c58
WIP
akrambek Nov 29, 2024
5401488
WIP
akrambek Nov 29, 2024
7fc64be
WIP
akrambek Nov 30, 2024
5a286cc
WIP
akrambek Dec 1, 2024
38f7371
WIP
akrambek Dec 1, 2024
d1270a1
WIP
akrambek Dec 1, 2024
eb0bdbb
WIP
akrambek Dec 2, 2024
1fea51d
WIP
akrambek Dec 2, 2024
e8f5e7e
Checkpoint
akrambek Dec 2, 2024
48cfbf7
Merge branch 'feature/z-catalog' into feature/ztable
akrambek Dec 2, 2024
13fcdb6
WIP
akrambek Dec 2, 2024
7d8c68d
WIP
akrambek Dec 2, 2024
8e199ba
WIP
akrambek Dec 3, 2024
1042c68
WIP
akrambek Dec 4, 2024
2e53b82
WIP
akrambek Dec 4, 2024
7614312
Checkpoint
akrambek Dec 4, 2024
b16a5e8
Checkpoint
akrambek Dec 5, 2024
97314ac
WIP
akrambek Dec 5, 2024
7c5db96
Fix casting
akrambek Dec 5, 2024
ef9077a
WIP
akrambek Dec 6, 2024
d47d74f
Ignore case sensitivity
akrambek Dec 6, 2024
a45c87c
WIP
akrambek Dec 9, 2024
8a9305b
WIP
akrambek Dec 9, 2024
cd63668
Fix remaining issues
akrambek Dec 9, 2024
93126b7
WIP
akrambek Dec 10, 2024
17fdc27
Fix stylecheck errors
akrambek Dec 10, 2024
0bbab15
Merge branch 'feature/z-catalog' into feature/ztable
akrambek Dec 10, 2024
9f606b4
WIP
akrambek Dec 11, 2024
34f93bf
WIP
akrambek Dec 13, 2024
2a4815f
Merge branch 'develop' into feature/ztable
akrambek Dec 13, 2024
49a7546
WIP
akrambek Dec 14, 2024
e32253c
WIP
akrambek Dec 14, 2024
da9a880
WIP all marros
akrambek Dec 16, 2024
e8324c7
WIP remove statements
akrambek Dec 16, 2024
e5532e5
WIP
akrambek Dec 16, 2024
5546db9
WIP
akrambek Dec 16, 2024
c4ad8f5
WIP
akrambek Dec 16, 2024
57fb1d5
WIP
akrambek Dec 16, 2024
e87bc76
WIP
akrambek Dec 16, 2024
2cff032
WIP
akrambek Dec 17, 2024
6f9409b
WIP
akrambek Dec 17, 2024
9928d02
WIP
akrambek Dec 17, 2024
bd9e9c1
Checkpoint
akrambek Dec 17, 2024
e923e86
Merge branch 'develop' into feature/ztable
akrambek Dec 17, 2024
f26c2cc
WIP
akrambek Dec 17, 2024
fa2197a
WIP
akrambek Dec 17, 2024
11f3e09
WIP
akrambek Dec 17, 2024
661a4bf
Catch exception
akrambek Dec 17, 2024
bf4ee6c
Fix tests
akrambek Dec 17, 2024
41be9ea
WIP
akrambek Dec 17, 2024
56e4d34
Fix checkstyle
akrambek Dec 17, 2024
80103c0
WIP
akrambek Dec 17, 2024
1da5fa4
WIP
akrambek Dec 17, 2024
10801a1
WIP
akrambek Dec 18, 2024
d45ae92
WIP
akrambek Dec 18, 2024
ec564d1
WIP
akrambek Dec 18, 2024
5da2130
WIP
akrambek Dec 18, 2024
469afdd
Terminate transition on error
akrambek Dec 18, 2024
b63aef5
Terminate state on error
akrambek Dec 18, 2024
16c95fa
Merge branch 'feature/ztable' into feature/actual-zstream
akrambek Dec 18, 2024
f67b6ca
WIP
akrambek Dec 18, 2024
cf02955
Checkpoint show zfunctions
akrambek Dec 19, 2024
2145d26
Merge branch 'develop' into feature/actual-zstream
akrambek Dec 19, 2024
f51d6b8
WIP
akrambek Dec 19, 2024
c720743
WIP
akrambek Dec 19, 2024
275f35e
WIP
akrambek Dec 19, 2024
de7d310
WIP till morning
akrambek Dec 19, 2024
477e950
WIP
akrambek Dec 20, 2024
ceea46f
WIP
akrambek Dec 22, 2024
b8888e2
Add test
akrambek Dec 23, 2024
c80aaca
WIP
akrambek Dec 24, 2024
c88fb01
Support SHOW ZSTREAMS
akrambek Dec 24, 2024
4222104
Checkpoint
akrambek Dec 24, 2024
2f1ff78
Merge branch 'develop' into feature/actual-zstream
akrambek Dec 24, 2024
44b7d64
WIP
akrambek Dec 25, 2024
a56c07a
WIP
akrambek Dec 26, 2024
767c4c1
WIP
akrambek Dec 26, 2024
a444597
WIP
akrambek Dec 26, 2024
604ca67
Clean up
akrambek Dec 26, 2024
491dec0
Remove error printing
akrambek Dec 26, 2024
de5b924
disable logging
akrambek Dec 26, 2024
b9e7f11
WIP
akrambek Dec 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
WIP
  • Loading branch information
akrambek committed Nov 29, 2024
commit b052c586389c2cbcd64475db873486244819fb0c
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ write zilla:data.ext ${pgsql:dataEx()
.build()
.build()}
write [0x00 0x03] # Field Count
[0x00 0x00 0x00 0x04] # Length
[0x31 0x39 0x36 0x34] # Data
[0x00 0x00 0x00 0x0a] # Length
[0x31 0x37 0x32 0x33 0x35 0x39 0x33 0x31 0x31 0x33] # Data
[0x00 0x00 0x00 0x04] # Length
[0x5c 0x78 0x33 0x31] # Data
[0x00 0x00 0x00 0x04] # Length
[0x31 0x39 0x36 0x34] # Data
[0x00 0x00 0x00 0x0a] # Length
[0x31 0x37 0x32 0x33 0x35 0x39 0x33 0x31 0x31 0x33] # Data
[0x00 0x00 0x00 0x04] # Length
[0x5c 0x78 0x33 0x31] # Data

write advise zilla:flush ${pgsql:flushEx()
.typeId(zilla:id("pgsql"))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
#
# 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/app1"
option zilla:window 8192
option zilla:transmission "duplex"

write zilla:begin.ext ${pgsql:beginEx()
.typeId(zilla:id("pgsql"))
.parameter("user", "zillabase")
.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 "SELECT * FROM zb_catalog.zviews;"
[0x00]

read advised zilla:flush ${pgsql:flushEx()
.typeId(zilla:id("pgsql"))
.type()
.column()
.name("name")
.tableOid(0)
.index(0)
.typeOid(701)
.length(8)
.modifier(-1)
.format("TEXT")
.build()
.column()
.name("sql")
.tableOid(0)
.index(0)
.typeOid(20)
.length(8)
.modifier(-1)
.format("TEXT")
.build()
.build()
.build()}

read zilla:data.ext ${pgsql:dataEx()
.typeId(zilla:id("pgsql"))
.row()
.build()
.build()}
read [0x00 0x02] # Field Count
[0x00 0x00 0x00 0x04] # Length
[0x31 0x39 0x36 0x34] # Data
[0x00 0x00 0x00 0x65] # Length
"CREATE MATERIALIZED VIEW IF NOT EXISTS distinct_cities AS" # Data
" SELECT id, city FROM weather GROUP BY city;"


read advised zilla:flush ${pgsql:flushEx()
.typeId(zilla:id("pgsql"))
.completion()
.tag("SELECT 1")
.build()
.build()}

read advised zilla:flush ${pgsql:flushEx()
.typeId(zilla:id("pgsql"))
.ready()
.status("IDLE")
.build()
.build()}

connect "zilla://streams/app1"
option zilla:window 8192
option zilla:transmission "duplex"

write zilla:begin.ext ${pgsql:beginEx()
.typeId(zilla:id("pgsql"))
.parameter("user", "app")
.parameter("database", "dev")
.parameter("application_name", "psql")
.parameter("client_encoding", "UTF8")
.build()}

connected
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
#
# 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/app1"
option zilla:window 8192
option zilla:transmission "duplex"

accepted

read zilla:begin.ext ${pgsql:beginEx()
.typeId(zilla:id("pgsql"))
.parameter("user", "zillabase")
.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 "SELECT * FROM zb_catalog.zviews;"
read [0x00]

write advise zilla:flush ${pgsql:flushEx()
.typeId(zilla:id("pgsql"))
.type()
.column()
.name("name")
.tableOid(0)
.index(0)
.typeOid(701)
.length(8)
.modifier(-1)
.format("TEXT")
.build()
.column()
.name("sql")
.tableOid(0)
.index(0)
.typeOid(20)
.length(8)
.modifier(-1)
.format("TEXT")
.build()
.build()
.build()}

write zilla:data.ext ${pgsql:dataEx()
.typeId(zilla:id("pgsql"))
.row()
.build()
.build()}
write [0x00 0x02] # Field Count
[0x00 0x00 0x00 0x04] # Length
[0x31 0x39 0x36 0x34] # Data
[0x00 0x00 0x00 0x65] # Length
"CREATE MATERIALIZED VIEW IF NOT EXISTS distinct_cities AS" # Data
" SELECT id, city FROM weather GROUP BY city;"
write flush


write advise zilla:flush ${pgsql:flushEx()
.typeId(zilla:id("pgsql"))
.completion()
.tag("SELECT 1")
.build()
.build()}

write advise zilla:flush ${pgsql:flushEx()
.typeId(zilla:id("pgsql"))
.ready()
.status("IDLE")
.build()
.build()}

accepted

read zilla:begin.ext ${pgsql:beginEx()
.typeId(zilla:id("pgsql"))
.parameter("user", "app")
.parameter("database", "dev")
.parameter("application_name", "psql")
.parameter("client_encoding", "UTF8")
.build()}

connected

Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
#
# 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", "app")
.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 "SHOW ZVIEWS;"
[0x00]

write flush

read advised zilla:flush ${pgsql:flushEx()
.typeId(zilla:id("pgsql"))
.type()
.column()
.name("Name")
.tableOid(0)
.index(0)
.typeOid(701)
.length(8)
.modifier(-1)
.format("TEXT")
.build()
.build()
.build()}

read zilla:data.ext ${pgsql:dataEx()
.typeId(zilla:id("pgsql"))
.row()
.build()
.build()}
read [0x00 0x01] # Field Count
[0x00 0x00 0x00 0x04] # Length
[0x31 0x39 0x36 0x34] # Data

read advised zilla:flush ${pgsql:flushEx()
.typeId(zilla:id("pgsql"))
.completion()
.tag("SHOW_COMMAND")
.build()
.build()}

read advised zilla:flush ${pgsql:flushEx()
.typeId(zilla:id("pgsql"))
.ready()
.status("IDLE")
.build()
.build()}

Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
#
# 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.
#

property serverAddress "zilla://streams/app0"

accept ${serverAddress}
option zilla:window 8192
option zilla:transmission "duplex"

accepted

read zilla:begin.ext ${pgsql:beginEx()
.typeId(zilla:id("pgsql"))
.parameter("user", "app")
.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 "SHOW ZVIEWS;"
[0x00]

write advise zilla:flush ${pgsql:flushEx()
.typeId(zilla:id("pgsql"))
.type()
.column()
.name("Name")
.tableOid(0)
.index(0)
.typeOid(701)
.length(8)
.modifier(-1)
.format("TEXT")
.build()
.build()
.build()}
write flush

write zilla:data.ext ${pgsql:dataEx()
.typeId(zilla:id("pgsql"))
.row()
.build()
.build()}
write [0x00 0x01] # Field Count
[0x00 0x00 0x00 0x04] # Length
[0x31 0x39 0x36 0x34] # Data

write advise zilla:flush ${pgsql:flushEx()
.typeId(zilla:id("pgsql"))
.completion()
.tag("SHOW_COMMAND")
.build()
.build()}

write advise zilla:flush ${pgsql:flushEx()
.typeId(zilla:id("pgsql"))
.ready()
.status("IDLE")
.build()
.build()}
Original file line number Diff line number Diff line change
Expand Up @@ -235,4 +235,13 @@ public void shouldAlterStreamAddColumn() throws Exception
{
k3po.finish();
}

@Test
@Specification({
"${app}/show.zviews/client",
"${app}/show.zviews/server" })
public void shouldShowZviews() throws Exception
{
k3po.finish();
}
}
Loading