File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ import EEFeature from '@site/src/components/EEFeature';
77
88<EEFeature featureName =' Python UDF ' />
99
10- 用户定义函数(UDFs)通过支持匿名lambda表达式和预定义处理程序(Python、JavaScript & WebAssembly )来定义UDF,提供了增强的灵活性。这些功能允许用户创建定制的操作,以满足其特定的数据处理需求。Databend UDF分为以下几类:
10+ 用户定义函数(UDFs)通过支持匿名lambda表达式和预定义处理程序(Python、JavaScript和WebAssembly )来定义UDF,提供了增强的灵活性。这些功能允许用户创建定制的操作,以满足其特定的数据处理需求。Databend UDF分为以下几类:
1111
12- - [ Lambda UDFs ] ( #lambda-udf )
13- - [ 嵌入式UDFs ] ( #embedded-udfs )
12+ - [ Lambda UDF ] ( #lambda-udf )
13+ - [ 嵌入式UDF ] ( #embedded-udfs )
1414
1515Databend提供了多种命令来管理UDF。详情请参阅[ 用户定义函数] ( /sql/sql-commands/ddl/udf/ ) 。
1616
@@ -42,24 +42,24 @@ SELECT get_v1(data), get_v2(data) FROM json_table;
4242+ -- ----------+------------+
4343```
4444
45- ## 嵌入式UDFs
45+ ## 嵌入式UDF
4646
47- 嵌入式UDFs允许您在SQL中嵌入以下编程语言编写的代码 :
47+ 嵌入式UDF允许您在SQL中嵌入以下编程语言编写的代码 :
4848
4949- [ Python] ( #python )
5050- [ JavaScript] ( #javascript )
5151- [ WebAssembly] ( #webassembly )
5252
5353::: note
54- 如果您的程序内容较大,可以将其压缩,然后传递到Stage。请参阅 [ 使用示例] ( #usage-examples-2 ) 中的WebAssembly 。
54+ 如果您的程序内容较大,可以将其压缩,然后传递到Stage。请参阅WebAssembly的 [ 使用示例] ( #usage-examples-2 ) 。
5555:::
5656
5757### Python(需要Databend企业版)
5858
5959Python UDF允许您通过Databend的内置处理程序从SQL查询中调用Python代码,从而在SQL查询中无缝集成Python逻辑。
6060
6161::: note
62- Python UDF必须仅使用Python的标准库;不允许使用第三方导入 。
62+ Python UDF必须仅使用Python的标准库;不允许第三方导入 。
6363:::
6464
6565#### 数据类型映射
@@ -255,4 +255,12 @@ FROM
255255WHERE
256256 (number > 0 )
257257ORDER BY 1 ;
258+ ```
259+
260+ ## 显示已创建的UDF
261+
262+ 如果您想显示已创建的UDF。
263+
264+ ``` sql
265+ show user functions;
258266```
You can’t perform that action at this time.
0 commit comments