Skip to content

Commit 915668e

Browse files
authored
FLUSH after insert to make SHOW command predictable (#1427)
1 parent 60f10a6 commit 915668e

File tree

24 files changed

+36
-24
lines changed

24 files changed

+36
-24
lines changed

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/effective/create.zfunction/client.rpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ write "INSERT INTO zb_catalog.zfunctions (name, sql) VALUES ('send_payment', 'CR
178178
"$$\n"
179179
"WITH (\n"
180180
" EVENTS = ''app_events''\n"
181-
");');"
181+
");'); "
182+
"FLUSH;"
182183
[0x00]
183184

184185
read advised zilla:flush ${pgsql:flushEx()

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/effective/create.zfunction/server.rpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ read "INSERT INTO zb_catalog.zfunctions (name, sql) VALUES ('send_payment', 'CRE
180180
"$$\n"
181181
"WITH (\n"
182182
" EVENTS = ''app_events''\n"
183-
");');"
183+
");'); "
184+
"FLUSH;"
184185
[0x00]
185186

186187
write advise zilla:flush ${pgsql:flushEx()

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/effective/create.ztable.with.double.quote.name/client.rpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ write zilla:data.ext ${pgsql:dataEx()
190190
.build()
191191
.build()}
192192
write "INSERT INTO zb_catalog.ztables (name, sql) VALUES "
193-
"('cities', 'CREATE ZTABLE IF NOT EXISTS \"cities\" (id VARCHAR, name VARCHAR, description VARCHAR, PRIMARY KEY (id));');"
193+
"('cities', 'CREATE ZTABLE IF NOT EXISTS \"cities\" (id VARCHAR, name VARCHAR, description VARCHAR, PRIMARY KEY (id));'); "
194+
"FLUSH;"
194195
[0x00]
195196
write flush
196197

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/effective/create.ztable.with.double.quote.name/server.rpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ read zilla:data.ext ${pgsql:dataEx()
188188
.build()
189189
.build()}
190190
read "INSERT INTO zb_catalog.ztables (name, sql) VALUES "
191-
"('cities', 'CREATE ZTABLE IF NOT EXISTS \"cities\" (id VARCHAR, name VARCHAR, description VARCHAR, PRIMARY KEY (id));');"
191+
"('cities', 'CREATE ZTABLE IF NOT EXISTS \"cities\" (id VARCHAR, name VARCHAR, description VARCHAR, PRIMARY KEY (id));'); "
192+
"FLUSH;"
192193
[0x00]
193194

194195
write advise zilla:flush ${pgsql:flushEx()

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/effective/create.ztable.with.generated.as/client.rpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ write "INSERT INTO zb_catalog.ztables (name, sql) VALUES "
202202
"(id VARCHAR, name VARCHAR, description VARCHAR, "
203203
"owner_id VARCHAR GENERATED ALWAYS AS IDENTITY, "
204204
"created_at TIMESTAMP GENERATED ALWAYS AS NOW, "
205-
"PRIMARY KEY (id));');"
205+
"PRIMARY KEY (id));'); "
206+
"FLUSH;"
206207
[0x00]
207208

208209

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/effective/create.ztable.with.generated.as/server.rpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ read "INSERT INTO zb_catalog.ztables (name, sql) VALUES "
200200
"(id VARCHAR, name VARCHAR, description VARCHAR, "
201201
"owner_id VARCHAR GENERATED ALWAYS AS IDENTITY, "
202202
"created_at TIMESTAMP GENERATED ALWAYS AS NOW, "
203-
"PRIMARY KEY (id));');"
203+
"PRIMARY KEY (id));'); "
204+
"FLUSH;"
204205
[0x00]
205206

206207
write advise zilla:flush ${pgsql:flushEx()

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/effective/create.ztable.with.primary.key/client.rpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ write zilla:data.ext ${pgsql:dataEx()
190190
.build()
191191
.build()}
192192
write "INSERT INTO zb_catalog.ztables (name, sql) VALUES "
193-
"('cities', 'CREATE ZTABLE IF NOT EXISTS cities (id VARCHAR, name VARCHAR, description VARCHAR, PRIMARY KEY (id));');"
193+
"('cities', 'CREATE ZTABLE IF NOT EXISTS cities (id VARCHAR, name VARCHAR, description VARCHAR, PRIMARY KEY (id));'); "
194+
"FLUSH;"
194195
[0x00]
195196
write flush
196197

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/effective/create.ztable.with.primary.key/server.rpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ read zilla:data.ext ${pgsql:dataEx()
188188
.build()
189189
.build()}
190190
read "INSERT INTO zb_catalog.ztables (name, sql) VALUES "
191-
"('cities', 'CREATE ZTABLE IF NOT EXISTS cities (id VARCHAR, name VARCHAR, description VARCHAR, PRIMARY KEY (id));');"
191+
"('cities', 'CREATE ZTABLE IF NOT EXISTS cities (id VARCHAR, name VARCHAR, description VARCHAR, PRIMARY KEY (id));'); "
192+
"FLUSH;"
192193
[0x00]
193194

194195
write advise zilla:flush ${pgsql:flushEx()

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/effective/create.zview/client.rpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ write zilla:data.ext ${pgsql:dataEx()
204204
.build()
205205
.build()}
206206
write "INSERT INTO zb_catalog.zviews (name, sql) VALUES "
207-
"('distinct_cities', 'CREATE ZVIEW IF NOT EXISTS distinct_cities AS SELECT id, city FROM weather GROUP BY city;');"
207+
"('distinct_cities', 'CREATE ZVIEW IF NOT EXISTS distinct_cities AS SELECT id, city FROM weather GROUP BY city;'); "
208+
"FLUSH;"
208209
[0x00]
209210
write flush
210211

incubator/binding-risingwave.spec/src/main/scripts/io/aklivity/zilla/specs/binding/risingwave/streams/effective/create.zview/server.rpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ read zilla:data.ext ${pgsql:dataEx()
208208
.build()
209209
.build()}
210210
read "INSERT INTO zb_catalog.zviews (name, sql) VALUES "
211-
"('distinct_cities', 'CREATE ZVIEW IF NOT EXISTS distinct_cities AS SELECT id, city FROM weather GROUP BY city;');"
211+
"('distinct_cities', 'CREATE ZVIEW IF NOT EXISTS distinct_cities AS SELECT id, city FROM weather GROUP BY city;'); "
212+
"FLUSH;"
212213
[0x00]
213214

214215
write advise zilla:flush ${pgsql:flushEx()

0 commit comments

Comments
 (0)