Update 09-udf.md
This commit is contained in:
parent
615be563a0
commit
c5b4bbc6d2
|
@ -359,7 +359,7 @@ ldconfig
|
||||||
2. 如果 Python UDF 程序执行时,通过 PYTHONPATH 引用其它的包,可以设置 taos.cfg 的 UdfdLdLibPath 变量为PYTHONPATH的内容
|
2. 如果 Python UDF 程序执行时,通过 PYTHONPATH 引用其它的包,可以设置 taos.cfg 的 UdfdLdLibPath 变量为PYTHONPATH的内容
|
||||||
|
|
||||||
## Python UDF 示例代码
|
## Python UDF 示例代码
|
||||||
### Python UDF 标量函数示例 [pybitand](https://github.com/taosdata/TDengine/blob/develop/tests/script/sh/pybitand.py)
|
### Python UDF 标量函数示例 [pybitand](https://github.com/taosdata/TDengine/blob/3.0/tests/script/sh/pybitand.py)
|
||||||
|
|
||||||
pybitand 实现多列的按位与功能。如果只有一列,返回这一列。pybitand 忽略空值。
|
pybitand 实现多列的按位与功能。如果只有一列,返回这一列。pybitand 忽略空值。
|
||||||
|
|
||||||
|
@ -372,7 +372,7 @@ pybitand 实现多列的按位与功能。如果只有一列,返回这一列
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
### Python UDF 聚合函数示例 [pyl2norm](https://github.com/taosdata/TDengine/blob/develop/tests/script/sh/pyl2norm.py)
|
### Python UDF 聚合函数示例 [pyl2norm](https://github.com/taosdata/TDengine/blob/3.0/tests/script/sh/pyl2norm.py)
|
||||||
|
|
||||||
pyl2norm 实现了输入列的所有数据的二阶范数,即对每个数据先平方,再累加求和,最后开方。
|
pyl2norm 实现了输入列的所有数据的二阶范数,即对每个数据先平方,再累加求和,最后开方。
|
||||||
|
|
||||||
|
@ -386,4 +386,4 @@ pyl2norm 实现了输入列的所有数据的二阶范数,即对每个数据
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
# 管理和使用 UDF
|
# 管理和使用 UDF
|
||||||
需要 UDF 将其加入到系统才能被正常的 SQL 调用。关于如何管理和使用 UDF,参见[UDF使用说明](../12-taos-sql/26-udf.md)
|
需要 UDF 将其加入到系统才能被正常的 SQL 调用。关于如何管理和使用 UDF,参见[UDF使用说明](../12-taos-sql/26-udf.md)
|
||||||
|
|
Loading…
Reference in New Issue