Files
tldr/pages.zh/common/odps-func.md

21 lines
533 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# odps 函数
> 管理 ODPS开放数据处理服务中的函数。
> 另见 `odps`。
> 更多信息: <https://www.alibabacloud.com/help/doc-detail/27971.htm>。
- 显示当前项目中的函数:
`list functions;`
- 使用 `.jar` 资源创建 Java 函数:
`create function {{func_name}} as {{path.to.package.Func}} using '{{package.jar}}';`
- 使用 `.py` 资源创建 Python 函数:
`create function {{func_name}} as {{script.Func}} using '{{script.py}}';`
- 删除一个函数:
`drop function {{func_name}};`