Returns the metadata of a specified user-defined function (UDF) in a MaxCompute project, including its name, owner, creation time, implementing class, and associated resources.
Syntax
desc function <function_name>;Parameters
| Parameter | Required | Description |
|---|---|---|
function_name | Yes | The name of an existing function. |
Return values
| Field | Description |
|---|---|
Name | The name of the UDF. |
Owner | The account that owns the UDF. |
Created Time | The time when the UDF was created. |
Class | The implementing class of the UDF. Case-sensitive — must match the class name exactly as compiled. |
Resources | The list of resources that are used by the UDF. |
Example
The following example returns the metadata of the my_lower function:
desc function my_lower;Output:
Name my_lower
Owner ALIYUN$****
Created Time 2020-06-18 15:50:19
Class org.alidata.odps.udf.examples.Lower
Resources project_name/my_lower.jarThe Class field is case-sensitive.What's next
FUNCTION: Create a temporary SQL function scoped to the current SQL script, without storing it in the MaxCompute metadata system.
CREATE FUNCTION: Register a UDF in MaxCompute using the
create_function()method of the entry object.DROP FUNCTION: Remove a registered UDF from a MaxCompute project.
DELETE FUNCTION: Delete a function using the
delete_function()method of the entry object.UPDATE FUNCTION: Update a registered UDF by calling the
update()method of the entry object.LIST FUNCTIONS: View the metadata of all UDFs in a MaxCompute project.