2016-05-12 13:27:17 +01:00
|
|
|
# odps func
|
|
|
|
|
|
|
|
> Manage functions in ODPS (Open Data Processing Service).
|
|
|
|
|
|
|
|
- Show functions in the current project:
|
|
|
|
|
|
|
|
`list functions;`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Create a Java function using a `.jar` resource:
|
2016-05-12 13:27:17 +01:00
|
|
|
|
|
|
|
`create function {{func_name}} as {{path.to.package.Func}} using '{{package.jar}}';`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Create a Python function using a `.py` resource:
|
2016-05-12 13:27:17 +01:00
|
|
|
|
2016-05-15 09:50:36 +01:00
|
|
|
`create function {{func_name}} as {{script.Func}} using '{{script.py}}';`
|
2016-05-12 13:27:17 +01:00
|
|
|
|
|
|
|
- Delete a function:
|
|
|
|
|
|
|
|
`drop function {{func_name}};`
|