All Products
Search
Document Center

DataWorks:Data lineage (public preview)

Last Updated:Dec 16, 2025

The data lineage feature in DataWorks visualizes the lineage of sensitive data. It automatically analyzes abnormal associations between fields and identifies fields with incorrect identification results. This helps you understand the spread and impact of sensitive data and improves identification efficiency. This topic describes how to view a data lineage graph.

Background information

The data lineage feature provides the following capabilities:

  • Visualized lineage graph

    Data Security Guard provides a lineage graph that shows the relationships between sensitive fields. This graph helps you clearly understand the source and destination of your data.

  • Improved efficiency in data identification

    Automatic sensitive data identification tasks can use field lineage to propagate identification results to other fields that contain the same type of sensitive data. This greatly improves identification efficiency.

  • Analysis of abnormal lineage

    • Analysis of fields with abnormal associations

      The system automatically analyzes abnormal associations between sensitive fields, such as those created by SELECT_CONCAT and SELECT_SUBSTRING operations. This prevents users from bypassing sensitive data identification and usage audits by concatenating or splitting character strings.

    • Analysis of associated fields with inconsistent identification results

      This feature helps you identify associated fields that have inconsistent identification results. For example, if you query a field A that is identified as a name, and it has lineage relationships with field B (also a name) and field C (a province), field C is considered to have an inconsistent result.

Limits

Only users of DataWorks Enterprise Edition or a more advanced edition can use the data lineage feature. For more information, see Editions and billing.

Go to the Data Lineage page

  1. Go to Data Security Guard.

    1. Go to the DataStudio page.

      Log on to the DataWorks console. In the top navigation bar, select the desired region. In the left-side navigation pane, choose Data Development and O&M > Data Development. On the page that appears, select the desired workspace from the drop-down list and click Go to Data Development.

    2. Click the 图标 icon in the upper-left corner. Then, choose All Products > Data Governance > Data Security Guard. On the page that appears, click Try Now to go to the Data Security Guard page.

      Note
      • If your Alibaba Cloud account is granted the required permissions, you can directly access the homepage of Data Security Guard.

      • If your Alibaba Cloud account is not granted the required permissions, you are redirected to the authorization page of Data Security Guard. You can use the features of Data Security Guard only after your Alibaba Cloud account is granted the required permissions.

  2. Go to the Data Lineage page.

    You can go to the Data Lineage page in one of the following ways:

    • Go to the View and Manually Correct Sensitive Data Identification Results page. Find the field whose lineage you want to view and click Analyze Lineage in the Actions column to open the Data Lineage page.

    • In Data Security Guard, click Data Lineage in the navigation pane on the left. The Data Lineage page appears.

View the data lineage graph

The Data Lineage page visualizes the lineage of sensitive data.

image

Category

Description

Analysis scenario

The default analysis scenario is Lineage of a single field. More analysis scenarios will be available in the future.

Filter

In area ② of the preceding figure, you can Select schema. Enter the Project, Table, and Field name of the field that you want to query, and click Query. The page displays one level of lineage for the field. The queried field is highlighted.

Filter conditions

In area ③ of the preceding figure, you can select filter conditions as needed:

  • Associated fields with inconsistent identification results

    If you select this check box, the lineage graph automatically refreshes to display the fields that are associated with the queried field but have inconsistent sensitive data type identification results. The graph also displays the edge relationships between the fields.

    Note

    An edge relationship is the name of the SQL function that is used to create a field, such as SELECT or SELECT_LTRIM.

  • Fields with abnormal associations

    If you select this check box, the lineage graph automatically refreshes to display fields that have abnormal associations, such as SELECT_CONCAT or SELECT_SUBSTRING. The graph also displays the edge relationships between the fields.

  • If you select both the Associated fields with inconsistent identification results and Fields with abnormal associations check boxes, the graph displays fields that have abnormal associations with the queried field and have inconsistent sensitive data type identification results. The graph also displays the edge relationships between the fields.

Data lineage graph

Area ④ in the preceding figure displays a one-level data lineage graph for the queried field. You can click a field or the edge relationship button between fields to view field and edge information.

  • View field information

    Click a field to open its details page. The details page shows the data location, sensitive data type, list of upstream and downstream associated fields, and the relationships between the fields, such as SELECT, SELECT_CONCAT, or SELECT_REPEAT. If the identification results are inaccurate, you can modify the Sensitive Data Type of the current field in area ① of the following figure. You can also modify the Sensitive Data Type, Category, and Level of the upstream and downstream associated fields in area ②.

    Note
    • If the queried field has no upstream or downstream associated fields, the list is empty.

    • If the sensitive data type is Non-sensitive or Unidentified, the sensitive data type, category, and level information is empty.

    • After you modify the sensitive data type, the data on the Sensitive Data Overview and View and Manually Correct Sensitive Data Identification Results pages is updated.

    • A maximum of one level of upstream and downstream associated fields is displayed for each field.

  • View edge information

    Click the edge relationship button between two fields. The edge details appear in a panel on the right. The details include Edge Relationship, Edge Relationship Type, SQL Details, Upstream Node List, and Downstream Node List. If the identification results are inaccurate, you can click the drop-down list next to Edge Relationship Type to modify the relationship between fields. Click the Sensitive Data Type drop-down list for upstream and downstream nodes to modify the sensitive data type.

    Note
    • If an edge relationship is abnormal, the Abnormal Association label appears next to the relationship. If the relationship is normal, no label is displayed.

    • Abnormal associations include relationships such as SELECT_CONCAT and SELECT_SUBSTRING, which can occur when users try to bypass sensitive data identification by concatenating or splitting characters.

    • The edge relationship type is the name of the SQL function that is used to create the field, such as SELECT or SELECT_LTRIM.

    • If the sensitive data type is Non-sensitive or Unidentified, the sensitive data type is empty.

Correct data in batches

You can correct inaccurate identification results for multiple fields in one of the following ways:

  • In the data lineage graph, view the upstream and downstream fields associated with the current field. Then, select multiple fields and correct their identification results.

  • Go to the Manually Correct Data page. Then, select multiple fields and correct their identification results. For more information, see View and Manually Correct Sensitive Data Identification Results.