Data standard lookup table management
Use natural language commands to instruct code agents, such as Qoder and CodeX, to create, query, update, and delete data standard lookup tables and maintain their code values. The appendix lists the input parameters.
Overview
The data standard lookup table management feature lets you manage enumerated dictionaries of code value and code name pairs, such as a lookup table for cities or order statuses. A data standard's value range can reference these tables, making them essential for standardizing enumerated values in data governance. You can create lookup tables, query their details, update code values, and delete the tables.
Use cases:
-
Create a new lookup table and add code values. For example, create an order status lookup table that includes values for Pending Payment, Paid, and Refunded.
-
Maintain the code values of an existing lookup table by adding, modifying, or deleting them.
-
Query the name, code, and complete list of code values for a specific lookup table.
-
Delete lookup tables that are no longer in use.
Limitations: Updates overwrite the entire lookup table, meaning each submission replaces all existing code values. To make changes, you must retrieve the current list, modify it, and then resubmit the complete list. The lookup table code must be unique within a tenant, and its name must be unique within the parent directory. Each lookup table supports a maximum of 10,000 code values. Use the lookup table ID for queries; no command exists to list all lookup tables. Before deleting a lookup table, you must first remove all its references from the value range of any associated data standards.
Prerequisites
-
You have the necessary management permissions for data standards.
-
You have prepared the lookup table name, lookup table code, and the list of code values to add. Each entry requires a code value and a code name, and neither can exceed 64 characters. The code value must be unique within the lookup table.
-
For query, update, or delete operations, you need the ID of the target lookup table. You can find this ID on the Standard > Standard Codes page in the Dataphin console or from the output of the create operation.
Examples
Describe your requirements to the agent using natural language. Here are some example commands:
-
Create an order status lookup table with the code ORDER_STATUS and include three code values: Pending Payment, Paid, and Refunded.
-
Add a new code value to the city lookup table, with a code value of 330100 and a code name of Hangzhou City.
-
Query the details of the order status lookup table and list all its code values.
Interaction steps:
-
After you issue a command, the agent prompts you to confirm the lookup table name, lookup table code, and the list of code values.
-
When updating code values, the agent typically first queries the table for all current code values. It then applies your changes and submits the entire updated list, which prevents accidental data loss from overwrites.
-
Before submitting the request, the agent typically summarizes the pending changes for your confirmation. This includes the target lookup table, the code value list, and the scope of the changes.
-
After you confirm, the agent submits the operation and verifies that the name, code, and number of code values in the lookup table match the expected outcome.
Results
After the operation is complete, you can expect the following results:
-
Return value: A successful creation operation returns the ID of the new lookup table. A query operation returns the table's name, code, description, and the complete code value list.
-
Completion status: A successful command response indicates that the system has accepted the request for processing.
-
Verification: Verify the changes by viewing the lookup table and its code values on the Standard > Standard Codes (lookup tables) page in the Dataphin console.
A successful response only indicates that the system has accepted the request. Always verify the final results in the Dataphin console.
Appendix: Input parameters
The following table lists parameters for managing data standard lookup tables. This list is for reference only. In practice, the agent automatically identifies the required information from your command and prompts you if anything is missing. You do not need to provide values for optional parameters.
|
Parameter |
Required |
Description |
Example |
|
Tenant ID |
Yes |
The 19-digit ID of the target Dataphin tenant. |
1234567890123456789 |
|
Lookup table name |
Conditional |
The name of the lookup table. It must be unique within its parent directory. Required for create and update operations. |
Order Status Lookup Table |
|
Lookup table code |
Conditional |
The code for the lookup table. It must be unique within the tenant. We recommend using uppercase letters with underscores. Required for create and update operations. |
ORDER_STATUS |
|
Lookup table ID |
Conditional |
The ID of the target lookup table. Required for query, update, and delete operations. You can obtain this ID from the console or from the result of a create operation. |
— |
|
Code value list |
Conditional |
A list of the table's code values. Required for create and update operations. For each entry, the code value and code name are required. Neither can exceed 64 characters, and the code value must be unique within the table. An English name and description for each entry are optional. |
Pending Payment, Paid, Refunded |
|
Parent directory |
No |
The directory path where the lookup table is located. |
/Standard/Lookup Tables |
|
Description |
No |
An optional description for the lookup table. |
Enumerated dictionary for order statuses |
|
Owner |
No |
The owner of the lookup table. If not specified, it defaults to the current user. |
— |