HappenLee commented on code in PR #3274:
URL: https://github.com/apache/doris-website/pull/3274#discussion_r2681343237
##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/query-data/udf/python-user-defined-function.md:
##########
@@ -0,0 +1,3293 @@
+---
+{
+ "title": "Python UDF, UDAF, UDWF, UDTF",
+ "language": "zh-CN",
+ "description": "Python UDF 为用户提供使用 Python 语言编写 UDF 的接口,以方便用户使用 Python
语言进行自定义函数的执行。 Doris 支持使用 Python 编写 UDF、UDAF 和 UDTF。下文如无特殊说明,使用 UDF 统称所有用户自定义函数。"
+}
+---
+
+## Python UDF
+
+Python UDF (User Defined Function) 是 Apache Doris 提供的自定义标量函数扩展机制,允许用户使用 Python
语言编写自定义函数,用于数据查询和处理。通过 Python UDF,用户可以灵活地实现复杂的业务逻辑,处理各种数据类型,并充分利用 Python 丰富的生态库。
+
+Python UDF 支持两种执行模式:
+- **标量模式 (Scalar Mode)**: 逐行处理数据,适用于简单的转换和计算
+- **向量化模式 (Vectorized Mode)**: 批量处理数据,利用 Pandas 进行高性能计算
+
+:::tip 提示
+**环境依赖**: 使用 Python UDF 前,必须在所有 BE 节点的 Python 环境中预先安装 **`pandas`** 和
**`pyarrow`** 两个库,这是 Doris Python UDF 功能的强制依赖。详见 [Python UDF
环境配置](python-user-defined-function#python-udfudafudtf-环境配置与多版本管理)。
+
+**日志路径**: Python UDF Server 的运行日志位于
`output/be/lib/udf/python/python_udf_output.log`。用户可以在该日志中查看 Python Server
的运行情况、函数执行信息和调试错误。
Review Comment:
修改这个日志的路径,统一放在log目录下
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]