Import logical tables from Excel

Updated at:

You can bulk-create logical tables and their quality rules by importing Excel files in either standard format or Visual Paradigm format. This feature also lets you quickly import previously exported files to easily migrate logical tables between workspaces. This topic describes how to import logical tables from an Excel file.

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 navigation bar, click the 选择工作组 icon, select the target workspace, then click Asset Processing.

    Note

    If you are already on the Asset Processing page, skip clicking Asset Processing.

  4. In the left navigation pane, click the 建模 icon and select Data Model Design.

  5. Under My Models, hover over the target directory and click the image icon.

  6. From the menu that appears, choose Import > Import from Excel.

  7. In the Import logical table from Excel dialog box, configure the file format and import type.

    1. Select the file format.

      • Standard Format: Select this option to import an Excel file that contains both logical tables and quality rules.

      • Visual Paradigm Format: Select this option to import a logical table file exported from Visual Paradigm.

        Note
        • If you select Standard Format, the imported file can contain both logical tables and quality rules.

        • If you select Visual Paradigm Format, the imported file can contain only logical tables.

    2. Select the import type.

      • Logical table: Imports logical tables based on the model directory list, directory-to-model mappings, and model list information from the Excel file.

      • Quality rule: Imports quality rules for logical tables using the model, field, and custom SQL rules from the Excel file.

    3. Select how to handle duplicate content.

      • Replace Existing Content: Overwrites existing content with the newly imported content.

      • Keep Existing Content: Retains existing content and skips duplicate entries from the imported file.

    4. Click Download Template to download a template file, then fill in the template with your logical table data or quality rules.

      Note

      To migrate data models from another workspace, you can directly import an exported file instead of downloading a new template.

  8. Upload the prepared file.

    Click Click here to upload a file, or drag and drop it into the import area.

    Note

    When selecting a file, ensure you choose the correct template for logical tables or quality rules.

  9. Click OK.

    After the import is successful, refresh the page. The imported logical tables appear in the list on the right side of the model directory.

Related operations

Actions

Description

Edit a logical table

On the logical table list page, in the Actions column for the target logical table, click Details. On the Logical Table Details page, click the 修改 icon in the upper-right corner to edit the table's parent directory, retention period, description, fields, and other information.

Note
  • To modify a materialized logical table, click the 锁定 icon in the upper-right corner of the Edit Logical Table panel to unlock it before making changes.

  • If you change the fields of a logical table, you must update the corresponding DDL statement.

Copy a logical table

On the logical table list page, in the Actions column for the target logical table, choose More > Copy. The system automatically generates a model name. You can customize the name, select a parent directory, enter a description, then click OK.

Delete a logical table

  • To delete a single table: On the logical table list page, in the Actions column for the target logical table, choose More > Delete. In the confirmation dialog box that appears, click OK.

  • To delete multiple tables:

    1. On the logical table list page, select the logical tables to delete, then click Batch Actions > Delete in the lower-left corner of the page.

    2. In the confirmation dialog box, click Delete.

Note

Deleting a logical table does not delete the corresponding physical table in the database.

Next steps

After creating logical tables, you must materialize them. For more information, see Materialize a logical table.