[Feat](udf) Support Python UDF/UDAF/UDTF for Doris#3274
Open
sjyango wants to merge 1 commit intoapache:masterfrom
Open
[Feat](udf) Support Python UDF/UDAF/UDTF for Doris#3274sjyango wants to merge 1 commit intoapache:masterfrom
sjyango wants to merge 1 commit intoapache:masterfrom
Conversation
HappenLee
reviewed
Jan 12, 2026
| :::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 的运行情况、函数执行信息和调试错误。 |
HappenLee
reviewed
Jan 12, 2026
| ) | ||
| AS $$ | ||
| class ClassName: | ||
| def __init__(self): |
HappenLee
reviewed
Jan 12, 2026
| count += 1 | ||
| ``` | ||
|
|
||
| #### Q6: 如何在 Python UDTF 中使用第三方库? |
HappenLee
reviewed
Jan 12, 2026
|
|
||
| **解决方案**: | ||
| 1. 检查所有节点的 Python 版本和依赖版本 | ||
| 2. 统一使用 `requirements.txt` 或 `environment.yml` 部署环境 |
Contributor
There was a problem hiding this comment.
这两个文件的使用方法需要给文档解释或这个给链接哈
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Versions
Languages
Docs Checklist