Custom attributes

更新时间:
复制 MD 格式

DataWorks Data Map provides custom attributes to extend business metadata for workspaces and datasets. These attributes support inheritance, helping you manage and govern business metadata more efficiently.

Overview

In large-scale data governance and asset management, traditional technical metadata like table structures, lineage, and partition information often fails to fully describe an asset's business context. Its inheritance mechanism enables batch information management and improves metadata management efficiency.

Important

You can currently configure custom attributes for workspaces and datasets. This feature is not yet supported for objects such as tables, code, and APIs. If you require this capability for other objects, please submit a ticket.

Custom attributes help you solve the following problems:

  • Missing business information: Technical metadata cannot answer key business questions, such as "Who is the business owner?" or "How is this metric defined?"

  • Inefficient configuration: When thousands of tables or datasets must adhere to the same governance standard, such as a unified approval link, manually configuring each one is costly and difficult to maintain.

Core capabilities of custom attributes include:

  • Custom attribute declaration: Administrators can define an attribute's name, Identifier, type (such as text or Enumerated item), and the entity types to which it applies.

  • Attribute value configuration: Users can view and edit custom attribute values on the entities to which they apply.

  • Attribute inheritance: Automatically inherits attribute values between object levels to reduce repetitive configuration.

Typical use cases:

  • Tag datasets with business information, such as business domain and data owner, to facilitate search and management in Data Map.

  • Configure a unified data approval link for a workspace. All datasets within that workspace automatically inherit this link, eliminating the need for individual configuration.

Limitations

  • Custom attribute names must be unique within a tenant.

  • The Identifier for a custom attribute must be unique within a tenant and cannot be changed after creation.

  • The Type of a custom attribute cannot be changed after creation.

Permissions

The table below lists the permissions required for custom attribute operations for RAM users and roles. By default, an Alibaba Cloud account (primary account) has all permissions.

Actions

Permission description

Create and manage custom attributes

Requires one of the following roles or permissions:

  • Tenant Owner

  • Tenant Administrator

  • Tenant Data Governance Administrator

  • A RAM user with the DataWorksFullAccess permission

Configure custom attributes for a workspace

Requires one of the following roles:

Tenant level: Tenant Owner, Tenant Administrator, or Tenant Data Governance Administrator

Workspace level: Workspace Owner or Workspace Administrator

Configure custom attributes for a dataset

Requires one of the following roles:

Tenant level: Tenant Owner, Tenant Administrator, or Tenant Data Governance Administrator

Workspace level: Workspace Owner, Workspace Administrator, or Workspace Developer

View custom attributes, workspace details, and dataset details

No restrictions

Create a custom attribute

Administrators can create custom attributes by following these steps.

  1. Log on to the DataWorks console. In the left-side navigation pane, click Data Map.

  2. Hover over the Configuration Management icon in the left-side navigation pane and select Custom Property Configuration.

  3. On the custom attribute management page, click + Add.

  4. In the Create Custom Property dialog box, configure the parameters as described in the following table.

    Category

    Parameter

    Description

    Attribute Configuration

    ID

    The unique identifier (key) for the custom attribute, used in scenarios such as API calls. It can contain only letters, digits, and underscores (_). It cannot be changed after creation.

    Name

    The display name of the custom attribute. It must be unique within the tenant. The name can be up to 128 characters long.

    Type

    Select the data type for the attribute value. This cannot be changed after creation. The following types are supported:

    • Enum Value: The attribute value is selected from a predefined list of options.

    • Text: The attribute value is a free-form text string.

    • Link: The attribute value is a user-input link, which includes a Link Title and a URL.

    Enum Value

    If you select Enum Value as the attribute type, you must configure a list of selectable values.

    Description

    A description of the custom attribute.

    Effective Scope

    Applicable Entity Type

    Select the entity type to which this custom attribute applies. Supported types are workspace and dataset.

    Inherit

    Currently, this option is supported only for the workspace type.

    When enabled, this attribute supports inheritance. Datasets associated with the workspace automatically inherit the attribute value.

    For example, if you set an attribute such as "Environment Type: Production" for a workspace, its associated datasets automatically acquire the same attribute value. When the parent attribute value is updated, the inherited value changes accordingly.

    Allow Overwrite

    When enabled, child objects can modify the inherited attribute value. After modification, the value becomes a local value and no longer updates when the parent's value changes.

    Enable as a Filter

    When the attribute type is Enum Value, you can configure this custom attribute as a filter, allowing users to quickly filter data by this attribute during searches.

    Show on Details Page

    Controls whether this custom attribute is displayed on an object's details page.

  5. Click Confirm . The new attribute appears in the custom attribute management list, where you can edit or delete it.

Note
  • Edit Attribute: After a custom attribute is created, you can modify its name, description, enumerated values, the entity types it applies to, and inheritance rules. However, the attribute Identifier and Type cannot be modified.

  • Delete Attribute: If a custom attribute is in use on an object, deleting the attribute also removes its value from that object. This action is irreversible. Proceed with caution.

Configure and view custom attribute values

After creating a custom attribute, you can configure its values for workspaces and datasets.

Configure workspace custom attributes

  1. On the Data Map page, click the image icon in the left-side navigation pane to open the Data Catalog page.

  2. Expand DataSet. The list of workspaces is displayed on the right.

  3. Find the target workspace and edit its custom attribute values. The following figure uses Test-Attribute as an example.

    image

  4. After configuration, you can also view the custom attribute values on the workspace details page.

    image

Configure dataset custom attributes

  1. On the Data Map page, click the image icon in the left-side navigation pane to open the Data Catalog page.

  2. Configure custom attributes for a dataset by using one of the following methods:

    1. For a new dataset:

      You can configure its custom attribute values during the dataset creation process.

      image

    2. For an existing dataset:

      1. On the Data Catalog page, expand DataSet, select the target workspace, and click the target dataset within that workspace.

      2. On the dataset details page, you can edit its custom attribute values.

  3. On the dataset details page, you can view the configured custom attribute values.

    image

Filter by custom attributes

For custom attributes of the Enum Value type with Enable as a Filter enabled, you can use the attribute to quickly filter workspaces or datasets during a search.

Filter workspaces

You can filter workspaces by custom attributes in the following two ways:

Method 1: In the left-side navigation pane, click the search icon image to open the advanced search page. Select Workspace as the type and set the filter criteria for the custom attribute. For more information, see Multi-dimensional filtering and browsing.

Method 2: In the left-side navigation pane, click the image icon to open the Data Catalog page. Expand DataSet, view the workspace list, then use the custom attribute filter to narrow down the results.

image

Filter datasets

You can filter datasets by custom attributes in the following two ways:

Method 1: In the left-side navigation pane, click the search icon image to open the advanced search page. Set the type to Dataset and add a filter for the custom attribute. For details, see Multi-dimensional filtering and browsing.

Method 2: In the left navigation bar, click image to go to the Data Catalog page. Expand DataSet, navigate to the list of workspaces, click Dataset, and filter the results based on the enum values of a custom attribute.

image

Attribute inheritance

Custom attributes support inheritance across object levels, allowing child objects to automatically inherit values from parent objects.

  • Inheritance chain: The inheritance of custom attributes follows this hierarchy: Workspace > Dataset.

    For example, when you configure a custom attribute value at the workspace level, all datasets within that workspace automatically inherit that value.

  • Inheritance policy: When you create a custom attribute, you can set the Allow Overwrite policy.

    • Allow Override : A child object (dataset) inherits the attribute value from its parent (workspace) by default, but you can override this value at the child level. For example, a workspace can be configured with a standard approval link that most of its datasets automatically inherit. For datasets that contain sensitive information, you can override this link with one that requires a higher level of approval.

    • Disallow Override: The child object must inherit the parent's attribute value, and this value cannot be modified at the child level.

  • Changes to parent values: When a parent attribute value changes, all child objects that inherit it are updated simultaneously. Child objects with an overridden value are not affected.

  • Inheritance indicator: On the dataset details page, an indicator icon is displayed next to custom attributes inherited from a workspace. Hover over the icon to view the inheritance source and override policy.

    image

References