Udf

Use when listing, showing, searching, creating, testing, or removing MaxCompute UDFs and UDF resources.

aliyun 248b2d6 2 files · 3.4 KB Updated

File contents

mcs UDF workflow

Use this workflow for MaxCompute UDF lifecycle work.

Commands

mcs udf list
mcs udf search KEYWORD
mcs udf show NAME
mcs udf create NAME --inline-python script.py
mcs udf test NAME --args '1, "abc"'
mcs udf remove NAME
mcs udf resource list
mcs udf resource show NAME
mcs udf resource remove NAME

mcs udf test --args accepts SQL literals only: numeric values, NULL, TRUE/FALSE, and quoted strings. Do not pass identifiers, function calls, expressions, or semicolon-separated fragments as test arguments.

For ordinary SQL querying, do not manage UDFs unless the question requires a function that is absent or broken.

See references/udf.md.

aliyun/maxcompute-semantic/tree/main/src/maxcompute_semantic/_skill_data/udf commit 248b2d6e33

Frequently asked questions

npx skillmds@latest add aliyun/udf