Skip to content

Commit f599b09

Browse files
authored
fix(udf, 2.2): fix udf test for single-node and standalone binary test (#20978)
Signed-off-by: Richard Chien <[email protected]>
1 parent 6f4ef47 commit f599b09

File tree

4 files changed

+22
-11
lines changed

4 files changed

+22
-11
lines changed

ci/scripts/single-node-utils.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export RISEDEV=1 # as if we are running in RiseDev
1313
start_single_node() {
1414
mkdir -p "$HOME/.risingwave/state_store"
1515
mkdir -p "$HOME/.risingwave/meta_store"
16-
mkdir -p .risingwave/config
17-
RUST_BACKTRACE=1 "$PREFIX_BIN"/risingwave >"$1" 2>&1
16+
RUST_BACKTRACE=1 \
17+
"$PREFIX_BIN"/risingwave --config-path src/config/ci-single-node-standalone.toml >"$1" 2>&1
1818
}
1919

2020
stop_single_node() {

ci/scripts/standalone-utils.sh

+14-7
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ start_standalone_without_compactor() {
2121
--backend sqlite \
2222
--sql-endpoint ${RW_SQLITE_DB} \
2323
--state-store hummock+minio://hummockadmin:[email protected]:9301/hummock001 \
24-
--data-directory hummock_001" \
24+
--data-directory hummock_001 \
25+
--config-path src/config/ci-single-node-standalone.toml" \
2526
--compute-opts=" \
2627
--listen-addr 127.0.0.1:5688 \
2728
--prometheus-listener-addr 127.0.0.1:1222 \
@@ -30,13 +31,15 @@ start_standalone_without_compactor() {
3031
--parallelism 4 \
3132
--total-memory-bytes 8589934592 \
3233
--role both \
33-
--meta-address http://127.0.0.1:5690" \
34+
--meta-address http://127.0.0.1:5690 \
35+
--config-path src/config/ci-single-node-standalone.toml" \
3436
--frontend-opts=" \
3537
--listen-addr 127.0.0.1:4566 \
3638
--advertise-addr 127.0.0.1:4566 \
3739
--prometheus-listener-addr 127.0.0.1:2222 \
3840
--health-check-listener-addr 127.0.0.1:6786 \
39-
--meta-addr http://127.0.0.1:5690" >"$1" 2>&1
41+
--meta-addr http://127.0.0.1:5690 \
42+
--config-path src/config/ci-single-node-standalone.toml" >"$1" 2>&1
4043
}
4144

4245
# You can fill up this section by consulting
@@ -52,7 +55,8 @@ start_standalone() {
5255
--backend sqlite \
5356
--sql-endpoint ${RW_SQLITE_DB} \
5457
--state-store hummock+minio://hummockadmin:[email protected]:9301/hummock001 \
55-
--data-directory hummock_001" \
58+
--data-directory hummock_001 \
59+
--config-path src/config/ci-single-node-standalone.toml" \
5660
--compute-opts=" \
5761
--listen-addr 127.0.0.1:5688 \
5862
--prometheus-listener-addr 127.0.0.1:1222 \
@@ -61,18 +65,21 @@ start_standalone() {
6165
--parallelism 4 \
6266
--total-memory-bytes 8589934592 \
6367
--role both \
64-
--meta-address http://127.0.0.1:5690" \
68+
--meta-address http://127.0.0.1:5690 \
69+
--config-path src/config/ci-single-node-standalone.toml" \
6570
--frontend-opts=" \
6671
--listen-addr 127.0.0.1:4566 \
6772
--advertise-addr 127.0.0.1:4566 \
6873
--prometheus-listener-addr 127.0.0.1:2222 \
6974
--health-check-listener-addr 127.0.0.1:6786 \
70-
--meta-addr http://127.0.0.1:5690" \
75+
--meta-addr http://127.0.0.1:5690 \
76+
--config-path src/config/ci-single-node-standalone.toml" \
7177
--compactor-opts=" \
7278
--listen-addr 127.0.0.1:6660 \
7379
--prometheus-listener-addr 127.0.0.1:1260 \
7480
--advertise-addr 127.0.0.1:6660 \
75-
--meta-address http://127.0.0.1:5690" >"$1" 2>&1
81+
--meta-address http://127.0.0.1:5690 \
82+
--config-path src/config/ci-single-node-standalone.toml" >"$1" 2>&1
7683
}
7784

7885
stop_standalone() {

e2e_test/udf/alter_function.slt

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ statement ok
99
CREATE SCHEMA test_schema;
1010

1111
statement ok
12-
CREATE FUNCTION test_func() RETURNS INT LANGUAGE python as int_42 using link 'http://localhost:8815';
12+
CREATE FUNCTION test_func() RETURNS INT as int_42 using link 'http://localhost:8815';
1313

1414
statement ok
15-
CREATE FUNCTION test_func(INT) RETURNS INT LANGUAGE python as sleep using link 'http://localhost:8815';
15+
CREATE FUNCTION test_func(INT) RETURNS INT as sleep using link 'http://localhost:8815';
1616

1717
statement error
1818
ALTER FUNCTION test_func SET SCHEMA test_schema;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[udf]
2+
enable_embedded_python_udf = true
3+
enable_embedded_javascript_udf = true
4+
enable_embedded_wasm_udf = true

0 commit comments

Comments
 (0)