All Products
Search
Document Center

MaxCompute:DESC FUNCTION

Last Updated:Mar 26, 2026

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

ParameterRequiredDescription
function_nameYesThe name of an existing function.

Return values

FieldDescription
NameThe name of the UDF.
OwnerThe account that owns the UDF.
Created TimeThe time when the UDF was created.
ClassThe implementing class of the UDF. Case-sensitive — must match the class name exactly as compiled.
ResourcesThe 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.jar
The 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.