Data domain management

Updated at:

You can use natural language commands to instruct code agents like Qoder and CodeX to query, create, update, and delete data domains. This helps organize the business-layer architecture of your data warehouse. This topic describes the feature's functions, prerequisites, usage examples, and execution results. An appendix provides a list of input fields for reference.

Feature overview

The data domain management feature lets you manage the full lifecycle of data domains by using natural language commands. A data domain is an organizational unit in the logical layer of a data warehouse used to group dimension tables, fact tables, and summary tables by business subject. A data domain belongs to a business unit and can be organized into a hierarchy tree with a parent data domain. You can query data domain lists and details, and create, modify, and delete data domains.

Use cases:

  • Create a new data domain, such as a trade or user domain, under a business unit.

  • Modify the display name, abbreviation, or description of a data domain, or change its parent data domain.

  • Query the list of data domains under a business unit, or view the details of a specific data domain.

  • Delete data domains that are no longer in use.

Note

Limitations: Data domains must belong to a business unit. You must specify this unit for all create, update, and delete operations. Data domains do not have a development-to-production deployment pipeline and take effect immediately. To update a data domain, you must resubmit all fields required for creation. Before deleting a data domain, ensure that it has no associated logical tables, or the deletion request may be rejected.

Prerequisites

  • Your account must have the required administrative permissions for data planning.

  • A target business unit must exist, and you must know its ID.

  • Prepare the data domain's code (English name), display name (Chinese name), and abbreviation.

Usage examples

The following examples show commands you can use:

  • Create a data domain under the trade business unit with the code 'trade', display name 'Trade Domain', and abbreviation 'trd'.

  • Change the display name of the trade data domain to 'Trade Data Domain'.

  • List the data domains under the trade business unit.

Interaction steps:

  1. After you issue a command, the agent confirms the associated business unit and the data domain's code, display name, and abbreviation with you.

  2. If the data domain needs to be placed under a parent data domain, the agent confirms the parent data domain with you.

  3. For an update operation, the agent typically queries the current configuration of the data domain first. Then, it modifies the configuration and resubmits all required fields.

  4. Before submitting the final request, the agent typically summarizes the pending changes—such as the business unit, data domain information, and scope of impact—for you to confirm.

  5. After you confirm, the agent submits the operation and then re-queries the data domain list or details to verify the change.

Execution results

After the operation is complete, you receive the following results:

  • Return value: For create, update, and delete operations, the system returns an acceptance result. For query operations, it returns a list of data domains or the details of a specific data domain, including its code, display name, abbreviation, and parent data domain.

  • Completion status: The operation is successful if the command returns a success message and a follow-up query confirms the expected result.

  • Verification: You can view the data domain and its hierarchy tree on the data planning page in Dataphin to verify the changes.

Note

A success response from the command line only indicates that the request has been accepted. The final result is reflected in the Dataphin UI.

Appendix: Input fields

The following table lists the fields for managing data domains. In practice, the agent identifies the required information from your commands and prompts you if any is missing. You do not need to provide system-generated fields.

Parameter

Required

Description

Example

tenant ID

Yes

The 19-digit ID of the target Dataphin tenant.

1234567890123456789

business unit ID

Yes

The ID of the business unit to which the data domain belongs.

—

data domain ID

Conditionally required

The ID of the target data domain. Required for update, delete, and detail query operations.

—

data domain code

Conditionally required

The English name and unique identifier for the data domain. Required for create and update operations. We recommend that you do not modify this code after the data domain is in use.

trade

data domain display name

Conditionally required

The Chinese name of the data domain. Required for create and update operations.

Trade Domain

abbreviation

Conditionally required

The abbreviation for the data domain, used as a prefix in logical table names. Required for create and update operations.

trd

parent data domain ID

No

The parent data domain, used to build a hierarchy tree. If this field is left empty, the data domain is a top-level domain.

—

description

No

A description of the data domain.

Trade-related topics