Project Explorer in MaxCompute Studio provides a visual interface for managing user-defined functions (UDFs) in your MaxCompute project. Use it to create UDFs from uploaded JAR or PY resources, view function syntax and code, and delete UDFs you no longer need.
Supported operations
The following table shows which operations are available for built-in functions and MaxCompute UDFs.
| Operation | Built-in function | MaxCompute UDF | Notes |
|---|---|---|---|
| Create | No | Yes | — |
| View syntax | Yes | Yes | — |
| View code | No | Yes | Built-in functions: syntax only. MaxCompute UDFs: syntax and code. |
| Modify | No | No (workaround required) | To modify a UDF: delete it, redevelop, package, upload, and recreate. |
| Delete | No | Yes | — |
Create a UDF
Before creating a UDF, upload the resource files it depends on to your MaxCompute project.
-
In the IntelliJ IDEA menu bar, choose MaxCompute > Create UDF.
-
In the Create Function dialog box, configure the parameters.
Parameter Description MaxCompute project The MaxCompute project in which to create the function. Function name The name used when calling the function in SQL statements. Must be unique within the project. To check existing names, open Project Explorer and expand the Functions folder. Using resources The resource file(s) the function depends on. To select multiple files, hold Ctrl and click each file. Main class The class defined in the JAR or PY file on which the function depends. Force update if already exists If selected, overwrites any existing function with the same name in the project. 
-
Click OK.
-
In Project Explorer, right-click the Functions folder and select Refresh meta. The new function appears in the list.
View function syntax or code
Built-in functions
In Project Explorer, expand the Functions folder and double-click a function name in the Builtln folder to view its syntax.
MaxCompute UDFs
In Project Explorer, expand the Functions folder, then do one of the following in the UserDefined folder:
-
Double-click the function name to view its code.
-
Right-click the function name and select Show function detail to view its code.
-
Click the function name to view its syntax.
Delete a UDF
-
In Project Explorer, expand the Functions folder, right-click the function name, and select Delete function from server.

-
In the Confirmation Required dialog box, click OK.
-
Right-click the Functions folder and select Refresh meta. The deleted function no longer appears in the list.