Files
cheatsheet-tldr/tldr/odpscmd-func
2025-12-23 00:21:40 +00:00

27 lines
726 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# odpscmd func
> Manage functions in ODPS (Open Data Processing Service).
> See also: `odpscmd`.
> More information: <https://www.alibabacloud.com/help/en/maxcompute/user-guide/maxcompute-client>.
- [Interactive] Show functions in the current project:
`list functions;`
- [Interactive] Create a Java function using a `.jar` resource:
`create function {{func_name}} as {{path.to.package.Func}} using '{{package.jar}}';`
- [Interactive] Create a Python function using a `.py` resource:
`create function {{func_name}} as {{script.Func}} using '{{script.py}}';`
- [Interactive] Delete a function:
`drop function {{func_name}};`