Configuration Center

Subject Levels

  1. Log in to the DGC console, select a DGC instance, and click Access.

    On the displayed page, click the Workspaces tab. In the workspace list, locate the required workspace.

  2. Click Data Design of the corresponding workspace to access the Data Design console.
  3. On the displayed page, click Configuration Center in the navigation tree on the left. Then, click Subject Levels.
  4. Click in the Operation column to add a custom subject level and click OK.
  5. Click in the Operation column to delete a subject level and click OK.
  6. Except the business object at the last level, you can click the names of other levels to edit them.
    • By default, there are three levels in the system, which are named Subject Area Group (L1), Subject Area (L2), and Business Object (L3) from top to bottom.
    • Currently, a maximum of seven layers and a minimum of two layers are supported.

Managing a Standard Template

  1. Log in to the DGC console, select a DGC instance, and click Access.

    On the displayed page, click the Workspaces tab. In the workspace list, locate the required workspace.

  2. Click Data Design of the corresponding workspace to access the Data Design console.
  3. Choose Configuration Center from the left navigation bar. On the displayed page, click Standard Template Management.
  4. In the Optional area, select parameters as required. Click to add custom properties. After the configuration is complete, click OK.
    Figure 1 Standard Template Management tab

    A standard template includes fields Searchable and Mandatory.

    After the template is saved, you need to set the options in the template when creating a data standard.

Function Configuration

  1. On the Data Design console, choose Configuration Center from the left navigation bar and click Function Configuration.
  2. On the Function Configuration tab, set the parameters as prompt and click OK. Click Reset to restore the default settings.
    • Model Design Process: The selected processes are automatically executed progressively when a table created in an ER or dimension model is published and suspended. You are advised to select all the options. If a process is not selected, you need to manually execute it in the DGC Data Development, Data Assets, and Data Quality Control modules.
      • To enable Synchronize Technical Assets, you must create a data asset collection task for the database to which the table belongs in the DGC Data Assets module. Otherwise, the technical asset synchronization will fail.
      • If Create Tables is selected, the physical table in the database is automatically deleted when the table is deleted.
    • Data Table Update Mode: If a table in Data Design is modified after being published, you can choose whether to update the table in the database and how to update the table. By default, the table is not updated. However, you can set the update operation in the configuration center as required. To be more specific, configure the corresponding update statements in the DDL templates.
      • Not update: Do not update tables in a database.
      • DDL-based update: Update tables in the database based on the DDL update template configured in Managing a DDL Template. Whether the update is successful depends on whether the underlying data warehouse engine. Different types of data warehouses support different table update modes. If the data warehouse does not support table update operations on the Data Design console, the tables in the database may be inconsistent with those in Data Design. For example, table fields cannot be deleted when DLI tables are updated. If table fields are deleted from the tables in Data Design, the corresponding table fields cannot be deleted from the database.

        If the offline database supports the syntax for updating the table architecture, you can configure the syntax in the DDL template. Then, the update operation can be performed. Otherwise, update the table by rebuilding it.

      • Drop and create: Delete an existing table in a database and then create a table. This option ensures that the tables in the database are the same as those in Data Design. However, since the table is deleted first, you are advised to select this option only in the development and design phase or test phase. After the product is brought online, you are not advised to select this option.
    • Case Insensitive During Technical Assets Synch: When a table, whose type is the same as the data connection, is published, the data connection name is case insensitive during technology asset synchronization. If the name is the same as an existing one, the connection exists.
    • Number of Parallel Query Subjects On the Information Architecture Page: The default value is 1. Currently, you cannot change the value.

Configuring a Model

You can perform the following operations during subject design and model design on the Model Settings page.

  • Added the subject alias, table model alias, and field alias.
  • Set the default table code prefix for the dimension table, fact table, and summary table.
  • Add custom fields to a table.
Figure 2 Configuring a model
  1. On the displayed page, click Configuration Center in the navigation tree on the left. Then, click Model Settings.
  2. Enable the alias. On the Model Settings page, you can add an alias.

    The options are as follows:

    • If you select Subjects, you must enter an alias when creating or editing subject.
    • If you select Table models, you must enter an alias when creating or editing a table. Business tables, dimension tables, fact tables, and summary tables are affected when Table models is selected.
    • if you select Fields, you can enter an alias when creating or editing a table field.

  3. Manage table names. You can set the default table code prefix for a dimension table, a fact table, or a summary table.
  4. Customize table properties. When creating or editing a table, you can set custom fields in the basic settings of the table. Business tables, dimension tables, fact tables, and summary tables are affected when Fields is selected.

Managing a Field Type

When you create a table, reverse a database, or convert a model, if the default data type or the data type mappings between different data sources cannot meet your requirements, you can add, delete, or modify data types. The default data type cannot be deleted.

  1. On the Data Design console, choose Configuration Center from the left navigation bar and click Field Type.
  2. On the displayed page, you can view the data type and the data type mappings between different data sources. The type whose creator is SYSTEM is the default field type.

    The types are described as follows:

    • DEFAULT indicates the common data type which is used for creating a table when the data source type is not specified. For example, when you create a table of a logical model, the data type in the DEFAULT group is used.
    • DLI indicates the data type of the table with the DLI data connection.
    • DWS indicates the data type of the table with the DWS data connection.
    • MRS_HIVE indicates the data type of the table with the MRS_HIVE data connection.
    Figure 3 Field Type tab

  3. Manage field types.

    • Create
      To add a field type, click Create. In the displayed dialog box, set the parameters as prompted and click OK.
      Figure 4 Creating a field type
      Table 1 Parameters

      Parameter

      Description

      Application Scope

      Type group that the new type belongs to.

      Name

      Name of the field type to be created. Letters, digits, brackets, spaces, and underscores (_) are allowed, but field type names must start with letters.

      Code

      Data type code, which must be supported by the data warehouse. Only upper-case letters, digits, and underscore (_) are allowed.

      Parent Domain

      Select the domain that the new field type belongs to.

      DLI

      Data type of the DLI data connection that the new field type is mapped to.

      DWS

      Data type of the DWS data connection that the new field type is mapped to.

      MRS_HIVE

      Data type of the MRS_HIVE data connection that the new field type is mapped to.

    • Edit

      In the field type list, specify a field type and click to edit the field type. For details on the parameters, see Table 1.

    • Delete

      You can delete field types. The field type whose creator is SYSTEM is the default field type and cannot be deleted.

      In the field type list, specify a field type and click to delete it. Then, click OK.

    • Reset

      Click Reset at the bottom of the Field Type tab page to restore the default settings.

Managing a DDL Template

In DGC Data Design, you can modify DDL templates of DLI views or diversified types of tables (such as DLI, DWS and Hive). If you need to generate DDL statements of other data sources for a created table of a certain type, you can modify the DDL template of the table based on the DDL syntax of the target data source.

  1. On the Data Design console, choose Configuration Center from the left navigation bar. Then, click DDL Template Management.
  2. On the displayed page, you can configure DDL templates for DLI views or diversified types of tables. You can modify the DDL templates by referring to the parameter description on this page. After the modification is complete, click OK. Click Reset to restore the default settings.

    Parameters in Figure 5 are described as follows:

    • New Template allows you to view or edit a new table or a DDL template of a DLI view.
    • Updated Template allows you to view or edit an updated table or a DDL template of a DLI view.
    • Deleted Template allows you to view or edit a deleted table or a DDL template of a DLI view.
    • Derivative Metric SQL Template allows you to view or edit the SQL template of a derivative metric.
    • Compound Metric SQL Template allows you to view or edit the SQL template of a compound metric.
    • Summary Table SQL Template allows you to view or edit the SQL template of a summary table.
    • The Reference Data area shows an example of table details. Variables in the example define table details.
    • The Edit Template area allows you to edit DDL templates. If you need to generate DDL statements for other types of databases, you can modify the DDL template based on the DDL syntax of the target data source.
    • The Preview Result area allows you can preview the DDL statements generated based on the edited template.
    Figure 5 DDL Template Management tab

Metric Encoding Rule

  1. On the Data Design console, choose Configuration Center from the left navigation bar. On the displayed page, click Metric Encoding Rules.
  2. In the Digital Code column, select Sequential or Random and click OK. Click Reset to restore the default settings.
    Figure 6 Metric Encoding Rule tab