Create a dataset by selecting an existing table

Updated at:

You can import datasets from a data source to use in the model canvas when you edit business models. This topic describes how to create a dataset by selecting an existing table.

Prerequisites

You have created a computing resource and updated its cache by viewing its physical tables. For more information, see Create a computing resource.

Background information

You can create datasets from the following types of computing resources: MaxCompute, Hive, RDS MySQL, *ADB MySQL 2.0.

Note

Computing resources marked with an asterisk (*) are available only in specific scenarios.

Procedure

  1. Log on to the Data Resource Platform console.

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

  3. In the top menu bar, click the 选择工作组 icon, select the target workspace, and then click Data Center.

  4. In the navigation pane on the left, choose Data Management > Dataset.

  5. You can add a source table folder.

    1. In the directory bar, select a directory and click the add icon. Enter a directory name in the input box and press Enter.

      A success message is displayed. The new directory appears in the directory bar.

    2. Note

      The system provides the following three isolated directories:

      • System Directory: Resources in this directory can be used by users with tenant administrator permissions. Other users can only view the resources.

      • Current Workspace Directory: Resources in this directory can be used by all members of the workspace.

      • My Directory: Resources in this directory can be used only by you.

    3. (Optional) To add a child directory, select a manually added directory in the directory bar and click the add2 icon.

  6. Import a source table.

    1. In the upper-right corner of the Dataset page, click New Dataset and select Select Existing Table.

    2. In the Select Existing Table panel, select a computing resource type, a computing resource identity, and a source table directory.

      Parameter

      Description

      Computing Resource Type

      Select the type of computing resource to add.

      Computing Resource Identity

      Select the identity of the resource to add.

      Note

      Click Refresh Source Table to update the table resource data for the selected computing resource.

      Source Table Directory

      Select a directory to categorize and display the source table.

    3. From the source table drop-down list, select the source table to import and enter a table alias.

    4. (Optional) Click Add Source Table to import multiple source tables.

    5. After you complete the configuration, click OK.

      A success message is displayed. The imported source table is added to the dataset list.

Related operations

Operation

Description

Edit a directory name

In the directory bar, select the directory that you want to edit, click the 编辑 icon, modify the directory name in the input box, and press Enter.

Note

You cannot edit preset system directories.

Delete a directory

In the directory bar, select the directory that you want to delete and click the 删除目录 icon.

Note
  • You cannot delete preset system directories.

  • You cannot delete a directory if it contains child directories.

Set a source table directory

In the dataset list, select the target source table. In the lower-left corner of the page, choose Batch Operations > Batch Modify Directory. In the Batch Modify Directory panel that appears, select a directory and click OK.

View source table details

In the dataset list, click View in the Actions column of the target source table. In the Data Details panel that appears on the right, you can view the basic information and field list of the source table.

  • Basic information: includes the table name, alias, database name, total number of columns, and table type.

  • Field list: includes the field name, field type, and field description.

Delete a source table

  • Single deletion: In the dataset list, click Delete in the Actions column of the target source table. In the dialog box that appears, click OK.

  • Batch deletion: In the dataset list, select the source tables that you want to delete. In the lower-left corner of the page, choose Batch Operations > Batch Delete. In the dialog box that appears, click Confirm.

Important

After a source table is deleted, it is no longer displayed in the model canvas and cannot be used for modeling. Delete source tables with caution.