This is an automated email from the ASF dual-hosted git repository. jiafengzheng pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push: new 6d81527960a vectorization needs to be turned off to use native udf (#106) 6d81527960a is described below commit 6d81527960a2d2a84c7bc9102f5d74608d9c3fe9 Author: lsy3993 <110876560+lsy3...@users.noreply.github.com> AuthorDate: Tue Sep 20 12:55:46 2022 +0800 vectorization needs to be turned off to use native udf (#106) --- docs/ecosystem/udf/native-user-defined-function.md | 5 +++++ .../current/ecosystem/udf/native-user-defined-function.md | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/docs/ecosystem/udf/native-user-defined-function.md b/docs/ecosystem/udf/native-user-defined-function.md index 1ccacd30477..9d9c32bf83c 100644 --- a/docs/ecosystem/udf/native-user-defined-function.md +++ b/docs/ecosystem/udf/native-user-defined-function.md @@ -260,6 +260,11 @@ Users must have the `SELECT` permission of the corresponding database to use UDF The use of UDF is consistent with ordinary function methods. The only difference is that the scope of built-in functions is global, and the scope of UDF is internal to DB. When the link session is inside the data, directly using the UDF name will find the corresponding UDF inside the current DB. Otherwise, the user needs to display the specified UDF database name, such as `dbName`.`funcName`. +In current version, vectorization needs to be turned off to use native udf +``` +set enable_vectorized_engine = false; +``` + ## Delete UDF diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/ecosystem/udf/native-user-defined-function.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/ecosystem/udf/native-user-defined-function.md index 4e6650dd0ee..efb5b379225 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/ecosystem/udf/native-user-defined-function.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/ecosystem/udf/native-user-defined-function.md @@ -262,6 +262,11 @@ CREATE [AGGREGATE] FUNCTION UDF 的使用与普通的函数方式一致,唯一的区别在于,内置函数的作用域是全局的,而 UDF 的作用域是 DB内部。当链接 session 位于数据内部时,直接使用 UDF 名字会在当前DB内部查找对应的 UDF。否则用户需要显示的指定 UDF 的数据库名字,例如 `dbName`.`funcName`。 +当前版本中,使用原生UDF时还需要将向量化关闭 +``` +set enable_vectorized_engine = false; +``` + ## 删除 UDF函数 --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org