Create a data template

Updated at:

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

  1. Log on to the Data Resource Platform console.

  2. In the upper-left corner of the page, click the 导航图标 icon and select Collaboration.

  3. In the top menu bar, click the 选择工作组 icon, select the target workgroup, and click Asset Processing.

  4. In the navigation pane on the left, click the 数据同步 icon and choose Synchronization Management > Data Template Management.

  5. In the upper-right corner of the Template Management page, click Create Template.

  6. In the Create Template panel, configure the template.

    1. Enter a template name and description.

    2. 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.

        Note

        You can add data fields using DDL statements for the following data source types: MaxCompute, Hive, HiveStorage, DataHub, AnalyticDB PostgreSQL, AnalyticDB for RDS, and PostgreSQL.

  7. 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.