Skip to content

Commit

Permalink
fix: udf build and deploy (#3410)
Browse files Browse the repository at this point in the history
  • Loading branch information
vagetablechicken authored Aug 4, 2023
1 parent 7fd58ae commit 73d2937
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/en/developer/udf_develop_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ For more UDF implementation, see [here](../../../src/examples/test_udf.cc).
- Run the compiling command. `-I` specifies the path of `include` directory. `-o` specifies the name of the dynamic library.
```shell
g++ -shared -o libtest_udf.so examples/test_udf.cc -I /work/OpenMLDB/include -std=c++11 -fPIC
g++ -shared -o libtest_udf.so examples/test_udf.cc -I /work/OpenMLDB/include -std=c++17 -fPIC
```

### 2.3 Copy the Dynamic Library
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/openmldb_sql/udf_develop_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ int64_t special_sum_output(::openmldb::base::UDFContext* ctx) {
- 执行编译命令,其中 -I 指定inlcude目录的路径 -o 指定产出动态库的名称
-
```shell
g++ -shared -o libtest_udf.so examples/test_udf.cc -I /work/OpenMLDB/include -std=c++11 -fPIC
g++ -shared -o libtest_udf.so examples/test_udf.cc -I /work/OpenMLDB/include -std=c++17 -fPIC
```

### 2.3 拷贝动态库
Expand Down
2 changes: 1 addition & 1 deletion release/sbin/deploy-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ distribute() {
rsync -arz "${SPARK_HOME}/" "$host:${SPARK_HOME}/"
fi
else
dir_list=(bin sbin conf)
dir_list=(bin sbin conf udf)
fi
for folder in "${dir_list[@]}"
do
Expand Down

0 comments on commit 73d2937

Please sign in to comment.