Skip to content

Conversation

@sjyango
Copy link

@sjyango sjyango commented Jan 9, 2026

Versions

  • dev
  • 4.x
  • 3.x
  • 2.1

Languages

  • Chinese
  • English

Docs Checklist

  • Checked by AI
  • Test Cases Built

:::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 的运行情况、函数执行信息和调试错误。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修改这个日志的路径,统一放在log目录下

)
AS $$
class ClassName:
def __init__(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reset也是调用这个,得注明一下

count += 1
```

#### Q6: 如何在 Python UDTF 中使用第三方库?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这部分应该独立出来,没必要udtf这里单独写


**解决方案**:
1. 检查所有节点的 Python 版本和依赖版本
2. 统一使用 `requirements.txt` 或 `environment.yml` 部署环境
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这两个文件的使用方法需要给文档解释或这个给链接哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants