Create a dataset by selecting an existing table
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.
Computing resources marked with an asterisk (*) are available only in specific scenarios.
Procedure
Log on to the Data Resource Platform console.
In the upper-left corner of the page, click the
icon and select Explore.In the top menu bar, click the
icon, select the target workspace, and then click Data Center.In the navigation pane on the left, choose Data Management > Dataset.
You can add a source table folder.
In the directory bar, select a directory and click the
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.
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.
(Optional) To add a child directory, select a manually added directory in the directory bar and click the
icon.
NoteThe system provides the following three isolated directories:
Import a source table.
In the upper-right corner of the Dataset page, click New Dataset and select Select Existing Table.
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.
NoteClick 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.
From the source table drop-down list, select the source table to import and enter a table alias.
(Optional) Click Add Source Table to import multiple source tables.
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 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 Note
|
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.
|
Delete a source table |
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. |
icon, modify the directory name in the input box, and press Enter.
icon.