Skip to content

Commit ad69718

Browse files
committed
Merge remote-tracking branch 'origin/main' into bz/avoid-using-macro-in-parser
Signed-off-by: Bugen Zhao <[email protected]>
2 parents fa3c10e + 572780b commit ad69718

File tree

223 files changed

+3658
-2183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

223 files changed

+3658
-2183
lines changed

.github/workflows/doc.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,17 @@ jobs:
1414
run: rustup show
1515
- name: Install dependencies
1616
run: sudo apt-get update && sudo apt-get install -y make build-essential cmake protobuf-compiler curl openssl libssl-dev libsasl2-dev libcurl4-openssl-dev pkg-config postgresql-client tmux lld
17+
- name: Run sccache-cache
18+
uses: mozilla-actions/[email protected]
19+
with:
20+
version: "v0.5.2"
1721
- name: Docs
1822
run: |
1923
RUSTDOCFLAGS="--markdown-css rust.css --markdown-no-toc --index-page docs/rustdoc/index.md -Zunstable-options" cargo doc --workspace --no-deps --document-private-items
2024
cp docs/rustdoc/rust.css target/doc/rust.css
25+
env:
26+
SCCACHE_GHA_ENABLED: "true"
27+
RUSTC_WRAPPER: "sccache"
2128
- name: Upload artifacts
2229
uses: actions/upload-pages-artifact@v1
2330
with:

.github/workflows/license_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v3
2020
- name: Check License Header
21-
uses: apache/skywalking-eyes/header@df70871af1a8109c9a5b1dc824faaf65246c5236
21+
uses: apache/skywalking-eyes@775fe1ffda59b7e100aa144d0ef8d7beae17f97d

.github/workflows/typo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ jobs:
1010
uses: actions/checkout@v3
1111

1212
- name: Check spelling of the entire repository
13-
uses: crate-ci/typos@v1.13.20
13+
uses: crate-ci/typos@v1.14.12

Cargo.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ license = "Apache-2.0"
5858
repository = "https://github.com/risingwavelabs/risingwave"
5959

6060
[workspace.dependencies]
61+
await-tree = "0.1.1"
6162
aws-config = { version = "0.51", default-features = false, features = ["rt-tokio", "native-tls"] }
6263
aws-sdk-kinesis = { version = "0.21", default-features = false, features = ["rt-tokio", "native-tls"] }
6364
aws-sdk-s3 = { version = "0.21", default-features = false, features = ["rt-tokio","native-tls"] }

Makefile.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ extend = [
1414
{ path = "src/tests/compaction_test/Makefile.toml" },
1515
{ path = "src/storage/backup/integration_tests/Makefile.toml" },
1616
{ path = "src/java_binding/make-java-binding.toml" },
17+
{ path = "src/stream/tests/integration_tests/integration_test.toml" },
1718
]
1819

1920
env_files = ["./risedev-components.user.env"]

ci/docker-compose.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,7 @@ services:
6464
environment: {}
6565
container_name: message_queue
6666
healthcheck:
67-
test:
68-
- CMD
69-
- printf
70-
- ""
71-
- /dev/tcp/127.0.0.1/9092
67+
test: curl -f localhost:9644/v1/status/ready
7268
interval: 1s
7369
timeout: 5s
7470
retries: 5

ci/scripts/e2e-sink-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ else
102102
fi
103103

104104
diff -u ./e2e_test/sink/remote/mysql_expected_result_1.tsv \
105-
<(mysql --host=mysql --port=3306 -u root -p123456 -s -N -r test -e "SELECT id, v_varchar, v_text, v_integer, v_smallint, v_bigint, v_decimal, v_real, v_double, v_boolean, v_date, v_time, v_timestamp, v_jsonb, TO_BASE64(v_bytea) FROM test.t_remote_1 ORDER BY id")
105+
<(mysql --host=mysql --port=3306 -u root -p123456 -s -N -r test -e "SELECT id, v_varchar, v_text, v_integer, v_smallint, v_bigint, v_decimal, v_real, v_double, v_boolean, v_date, v_time, v_timestamp, v_timestamptz, v_interval, v_jsonb, TO_BASE64(v_bytea) FROM test.t_remote_1 ORDER BY id")
106106
if [ $? -eq 0 ]; then
107107
echo "mysql sink check 1 passed"
108108
else

ci/workflows/integration-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ steps:
9393
- "twitter-pulsar"
9494
- "debezium-mongo"
9595
- "debezium-postgres"
96+
- "tidb-cdc-sink"
9697
format:
9798
- "json"
9899
- "protobuf"
@@ -109,3 +110,7 @@ steps:
109110
testcase: "debezium-postgres"
110111
format: "protobuf"
111112
skip: true
113+
- with:
114+
testcase: "tidb-cdc-sink"
115+
format: "protobuf"
116+
skip: true

ci/workflows/main-cron.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ steps:
192192
mount-buildkite-agent: true
193193
environment:
194194
- S3_SOURCE_TEST_CONF
195-
timeout_in_minutes: 20
195+
timeout_in_minutes: 25
196196

197197
- label: "S3 source check on lyvecloud.seagate.com (json parser)"
198198
command: "ci/scripts/s3-source-test.sh -p ci-release -s run"
@@ -207,7 +207,7 @@ steps:
207207
mount-buildkite-agent: true
208208
environment:
209209
- S3_SOURCE_TEST_CONF
210-
timeout_in_minutes: 20
210+
timeout_in_minutes: 25
211211

212212
- label: "S3 source check on AWS (csv parser)"
213213
command: "ci/scripts/s3-source-test.sh -p ci-release -s run_csv"
@@ -222,7 +222,7 @@ steps:
222222
mount-buildkite-agent: true
223223
environment:
224224
- S3_SOURCE_TEST_CONF
225-
timeout_in_minutes: 20
225+
timeout_in_minutes: 25
226226

227227
- label: "S3 source on OpenDAL fs engine"
228228
command: "ci/scripts/s3-source-test-for-opendal-fs-engine.sh -p ci-release -s run"

docker/dashboards/risingwave-dev-dashboard.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docker/docker-compose-s3-compatible.yml

Lines changed: 17 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ services:
2929
container_name: compactor-0
3030
healthcheck:
3131
test:
32-
- CMD
33-
- printf
34-
- ""
35-
- /dev/tcp/127.0.0.1/6660
32+
- CMD-SHELL
33+
- bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/6660; exit $?;'
3634
interval: 1s
3735
timeout: 5s
3836
retries: 5
@@ -66,10 +64,8 @@ services:
6664
container_name: compute-node-0
6765
healthcheck:
6866
test:
69-
- CMD
70-
- printf
71-
- ""
72-
- /dev/tcp/127.0.0.1/5688
67+
- CMD-SHELL
68+
- bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/5688; exit $?;'
7369
interval: 1s
7470
timeout: 5s
7571
retries: 5
@@ -112,9 +108,10 @@ services:
112108
healthcheck:
113109
test:
114110
- CMD
115-
- printf
116-
- ""
117-
- /dev/tcp/127.0.0.1/2388
111+
- etcdctl
112+
- --endpoints=http://localhost:2388
113+
- endpoint
114+
- health
118115
interval: 1s
119116
timeout: 5s
120117
retries: 5
@@ -147,10 +144,8 @@ services:
147144
container_name: frontend-node-0
148145
healthcheck:
149146
test:
150-
- CMD
151-
- printf
152-
- ""
153-
- /dev/tcp/127.0.0.1/4566
147+
- CMD-SHELL
148+
- bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/4566; exit $?;'
154149
interval: 1s
155150
timeout: 5s
156151
retries: 5
@@ -172,10 +167,8 @@ services:
172167
container_name: grafana-0
173168
healthcheck:
174169
test:
175-
- CMD
176-
- printf
177-
- ""
178-
- /dev/tcp/127.0.0.1/3001
170+
- CMD-SHELL
171+
- bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/3001; exit $?;'
179172
interval: 1s
180173
timeout: 5s
181174
retries: 5
@@ -218,10 +211,8 @@ services:
218211
container_name: meta-node-0
219212
healthcheck:
220213
test:
221-
- CMD
222-
- printf
223-
- ""
224-
- /dev/tcp/127.0.0.1/5690
214+
- CMD-SHELL
215+
- bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/5690; exit $?;'
225216
interval: 1s
226217
timeout: 5s
227218
retries: 5
@@ -246,10 +237,8 @@ services:
246237
container_name: prometheus-0
247238
healthcheck:
248239
test:
249-
- CMD
250-
- printf
251-
- ""
252-
- /dev/tcp/127.0.0.1/9500
240+
- CMD-SHELL
241+
- sh -c 'printf "GET /-/healthy HTTP/1.0\n\n" | nc localhost 9500; exit $?;'
253242
interval: 1s
254243
timeout: 5s
255244
retries: 5
@@ -294,11 +283,7 @@ services:
294283
environment: {}
295284
container_name: message_queue
296285
healthcheck:
297-
test:
298-
- CMD
299-
- printf
300-
- ""
301-
- /dev/tcp/127.0.0.1/9092
286+
test: curl -f localhost:9644/v1/status/ready
302287
interval: 1s
303288
timeout: 5s
304289
retries: 5

docker/docker-compose.yml

Lines changed: 19 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ services:
3333
container_name: compactor-0
3434
healthcheck:
3535
test:
36-
- CMD
37-
- printf
38-
- ""
39-
- /dev/tcp/127.0.0.1/6660
36+
- CMD-SHELL
37+
- bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/6660; exit $?;'
4038
interval: 1s
4139
timeout: 5s
4240
retries: 5
@@ -74,10 +72,8 @@ services:
7472
container_name: compute-node-0
7573
healthcheck:
7674
test:
77-
- CMD
78-
- printf
79-
- ""
80-
- /dev/tcp/127.0.0.1/5688
75+
- CMD-SHELL
76+
- bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/5688; exit $?;'
8177
interval: 1s
8278
timeout: 5s
8379
retries: 5
@@ -120,9 +116,10 @@ services:
120116
healthcheck:
121117
test:
122118
- CMD
123-
- printf
124-
- ""
125-
- /dev/tcp/127.0.0.1/2388
119+
- etcdctl
120+
- --endpoints=http://localhost:2388
121+
- endpoint
122+
- health
126123
interval: 1s
127124
timeout: 5s
128125
retries: 5
@@ -157,10 +154,8 @@ services:
157154
container_name: frontend-node-0
158155
healthcheck:
159156
test:
160-
- CMD
161-
- printf
162-
- ""
163-
- /dev/tcp/127.0.0.1/4566
157+
- CMD-SHELL
158+
- bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/4566; exit $?;'
164159
interval: 1s
165160
timeout: 5s
166161
retries: 5
@@ -182,10 +177,8 @@ services:
182177
container_name: grafana-0
183178
healthcheck:
184179
test:
185-
- CMD
186-
- printf
187-
- ""
188-
- /dev/tcp/127.0.0.1/3001
180+
- CMD-SHELL
181+
- bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/3001; exit $?;'
189182
interval: 1s
190183
timeout: 5s
191184
retries: 5
@@ -231,10 +224,8 @@ services:
231224
container_name: meta-node-0
232225
healthcheck:
233226
test:
234-
- CMD
235-
- printf
236-
- ""
237-
- /dev/tcp/127.0.0.1/5690
227+
- CMD-SHELL
228+
- bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/5690; exit $?;'
238229
interval: 1s
239230
timeout: 5s
240231
retries: 5
@@ -276,10 +267,8 @@ services:
276267
container_name: minio-0
277268
healthcheck:
278269
test:
279-
- CMD
280-
- printf
281-
- ""
282-
- /dev/tcp/127.0.0.1/9301
270+
- CMD-SHELL
271+
- bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/9301; exit $?;'
283272
interval: 1s
284273
timeout: 5s
285274
retries: 5
@@ -304,10 +293,8 @@ services:
304293
container_name: prometheus-0
305294
healthcheck:
306295
test:
307-
- CMD
308-
- printf
309-
- ""
310-
- /dev/tcp/127.0.0.1/9500
296+
- CMD-SHELL
297+
- sh -c 'printf "GET /-/healthy HTTP/1.0\n\n" | nc localhost 9500; exit $?;'
311298
interval: 1s
312299
timeout: 5s
313300
retries: 5
@@ -352,11 +339,7 @@ services:
352339
environment: {}
353340
container_name: message_queue
354341
healthcheck:
355-
test:
356-
- CMD
357-
- printf
358-
- ""
359-
- /dev/tcp/127.0.0.1/9092
342+
test: curl -f localhost:9644/v1/status/ready
360343
interval: 1s
361344
timeout: 5s
362345
retries: 5

e2e_test/batch/basic/func.slt.part

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,31 @@ select pg_typeof('123');
258258
----
259259
unknown
260260

261+
query T
262+
select pg_typeof('123'::varchar);
263+
----
264+
varchar
265+
266+
query T
267+
select pg_typeof('123'::int);
268+
----
269+
integer
270+
271+
query T
272+
select pg_typeof(null);
273+
----
274+
unknown
275+
276+
query T
277+
select pg_typeof(null::varchar);
278+
----
279+
varchar
280+
281+
query T
282+
select pg_typeof(null::bool);
283+
----
284+
boolean
285+
261286
query T
262287
select pg_typeof(-9223372036854775808);
263288
----

0 commit comments

Comments
 (0)