Create a data template
When you use message middleware as a data source, you need to create a data template to define the message structure. This topic describes how to create a data template.
Procedure
-
Log on to the Data Resource Platform console.
-
In the upper-left corner of the page, click the
icon and select Collaboration. -
In the top menu bar, click the
icon, select the target workgroup, and click Asset Processing. -
In the navigation pane on the left, click the
icon and choose Synchronization Management > Data Template Management. -
In the upper-right corner of the Template Management page, click Create Template.
-
In the Create Template panel, configure the template.
-
Enter a template name and description.
-
Configure the data fields for the template.
-
Add fields manually: Click Add Field, enter a field name and description, and then select a field type. To add multiple data fields, click Add Field again.
-
Add fields using a Data Definition Language (DDL) statement: Click Add Fields with DDL. In the Add Fields with DDL dialog box, select a data source type, enter the DDL statement, and then click OK.
NoteYou can add data fields using DDL statements for the following data source types: MaxCompute, Hive, HiveStorage, DataHub, AnalyticDB PostgreSQL, AnalyticDB for RDS, and PostgreSQL.
-
-
-
After you complete the configuration, click OK.
Related operations
On the Template Management page, you can perform the following operations on templates:
| Operation |
Description |
| View template details |
In the template list, find the target template and click View in the Actions column to view the basic information and data fields of the template. |
| Edit a template |
In the template list, find the target template and click Edit in the Actions column to edit the information of the template. |
| Delete a template |
In the template list, find the target template and click Delete in the Actions column to remove the template from the list. |