Node Lineages
Implementation Solution
On the DGC platform, data lineages are generated by configuring data processing and migration nodes in the Data Development module. Currently, the system collects the lineages generated by static node configuration and the lineages on some node instances.
Node Types Supported by Data Lineage
- SQL nodes
DGC supports lineage parsing of DLI SQL, DWS SQL and MRS Hive SQL nodes. It supports multi-SQL parsing and column-level lineage parsing. If a statement contains a temporary table, the temporary table entity is automatically created in the Data Assets module.
- DLI SQL
- Support for parsing the lineages generated during data insertion between DLI tables.
- Support for lineages between OBS files generated by table creation statements and DLI tables.
- DWS SQL
- Support for lineages between DWS tables generated by DDL operations such as "Create table like/as".
- Support for lineages between DWS tables generated by DML operations such as "Insert into".
- MRS Hive SQL
- Support for lineages between Hive tables generated by DDL operations such as "Create table like/as".
- Support for lineages between DWS tables generated by DML operations such as "Insert into/overwrite".
- DLI SQL
- Data integration nodes
Support for lineage parsing of the CDM Job, ETL Job, and OBS Manager nodes.
- CDM Job
Support for data lineages generated during table file migration between MRS Hive, DLI, DWS, RDS, OBS, and CSS.
- ETL Job
Support for data lineages generated by ETL tasks between DLI, OBS, MySQL, and DWS.
- OBS Manager
Support for data lineages generated by file replication and migration between OBS directories.
- CDM Job
Automatic Lineage Analysis
In DGC, when a job in Data Development is scheduled, the system automatically analyzes the lineage relationships and synchronizes the job information to the Data Assets module for display.
The prerequisite for automatic lineage analysis is that you have collected metadata from the data source in the job. For details on metadata collection, see Task Management.
- Log in to the DGC console, select a DGC instance and a workspace, and click Data Development on the workspace to access the Data Development console.
- Choose the Develop Job icon
from the left navigation bar. On the displayed page, click the required job. - During data development, when a job is scheduled, the job information is synchronized to Data Assets. Figure 1 Scheduling
- Select Data Assets from the drop-down list in the upper left corner of the console to access the Data Assets console. Choose Data Catalog > Technical Assets to query data development jobs and nodes. In the Types filter area, click ALL, select Job and Node, and click OK.
Jobs and nodes in Data Development correspond to the Job and Node types, respectively. Note that job information in Data Development does not belong to any data connection. Therefore, if you select a data connection in the search criteria, no result is displayed.
Figure 2 Job and Node types
In the data asset search result, the data asset whose type name ends with _job is a job. You can click the job name to view the job details. On the job details page that is displayed, click Edit to go to the job editing page of Data Development.
Figure 3 Viewing a job
In the data asset search result, the data asset whose type name ends with _node is a node. You can click the node name to view the node details. On the node details page, you can view the script content and lineage of the node.
- Click the + and - icons of a node in the lineage diagram to view the upstream and downstream links of the lineage.
- Click a node in the lineage diagram to view the details about the node.
- On the job details page that is displayed, click Edit to go to the job editing page of Data Development.
Figure 4 Viewing a node lineage
Manually Configuring a Lineage
In DGC Data Development, you can define the input and output lineage relationships of nodes. When you manually configure a lineage, automatic lineage analysis does not take effect. Manual lineage configuration does not affect job running.
Currently, DLI, DWS, Hive, CSS, OBS, and CUSTOM are supported as the input and output data sources during manual lineage configuration. CUSTOM indicates a custom type. When manually configuring a lineage, you can add data sources that are not supported as custom types.
The following describes the nodes that support manual lineage configuration. See the description of related nodes for more details.
Last Article: Node Overview
Next Article: CDM Job
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.