This topic describes how to use Function Studio to develop a user-defined function (UDF) and commit the UDF to the development environment in DataStudio.
Limits
Function Studio is available only in the China (Beijing), China (Shanghai), China (Shenzhen), and China (Hangzhou) regions.
Create a project
If you have Git code, you can import the Git code to create a project. You can import Git code only from code.aliyun.com.
Add the SSH public key to code.aliyun.com
After you set parameters on the SSH Key, Git Config, and Preference tabs, you can add the SSH public key to code.aliyun.com.
- Visit code.aliyun.com and click Settings in the left-side navigation pane.
- On the page that appears, click Add SSH Public Key in the upper-right corner. in the left-side navigation pane. On the SSH Public Key page, click
- On the Add SSH Public Key page, enter the SSH public key that is generated on the SSH Key tab and click Add.
Test the class to run
Commit the UDF and resource to the development environment in DataStudio
After you verify that code is correct, commit the UDF and resource to the development environment in DataStudio.
- Commit the resource to the development environment in DataStudio.
- On the project editing page, move the pointer over the Submit icon and select Submit Resource to Development Environment.
- In the Submit Resource to DataStudio Development Environment dialog box, set the Target Workspace, Target Workflow, and Resource parameters.
- Click OK.
- Commit the UDF to the development environment in DataStudio.
- On the project editing page, move the pointer over the Submit icon and select Submit Function to Development Environment.
- In the Submit Function to DataStudio Development Environment dialog box, set the Target Workspace, Target Workflow, Resource, Class, and Function parameters.
- Click OK.
After you commit the resource and UDF to the development environment in DataStudio, you can use them in SQL nodes.