The MaxCompute Functions pane displays the functions in the MaxCompute compute engine for your workspace, along with their change history. From this pane, you can sync functions into a business flow in Data Studio.
To open the pane: log on to the DataWorks console, select the desired region in the top navigation bar, choose Data Development and O&M > Data Development, select your workspace, click Go to Data Development, then expand MaxCompute in the left navigation pane and click MaxCompute Functions.
Explore functions
View the function list
Functions are sorted by creation time in descending order by default. Click the
icon to change the sort order.
The pane shows functions that have been submitted or published from the Data Studio page. Functions uploaded through other tools—such as the MaxCompute client or MaxCompute Studio—also appear here, but are not visible in Data Studio.
A delay may occur before UDFs uploaded outside DataWorks appear in the pane. To find a function immediately, run a command. For details, see Appendix 1: View a list of user-defined functions.
View function details
Click a function to open its details pane. By default, the pane shows functions in the production environment. To view functions that have been submitted but not yet published, click the
icon to switch to the development environment.
Workspaces in basic mode support only the production environment.
View change history
In the function's details pane, click View Change History to see its creation and modification records.
Manage functions
Add a function to Data Studio
The following figure shows the process of adding a function to the Data Studio pane.
To sync a function from the MaxCompute Functions pane into a business flow in Data Studio:
-
Click the function to open its details pane.
-
Click Add to Data Studio. This operation syncs the function from the MaxCompute Functions pane to a business flow in Data Studio.
-
In the Create Function dialog box, enter a function name and select a destination folder.
When adding a function, you can rename it and select a destination folder, which changes its business flow. You cannot modify the function definition.
-
Click Create.
-
Manually save, submit, and publish the function. The process is the same as for a MaxCompute function in a business flow. After you submit and publish the function, it is uploaded to both the development and production environments of MaxCompute, and the MaxCompute Functions pane is updated.
Function names must be unique within a MaxCompute project. If a function with the same name already exists in the same workspace, the add operation overwrites it. If the existing function belongs to a different business flow, it is moved to the new business flow and its content is overwritten.
Delete a function
To delete a function, switch to Data Studio, right-click the function name in the relevant business flow, and click Delete.