Data blood relationship management method and system, electronic equipment and storage medium

By parsing the execution plan of the data processing framework and storing it in the graph database, automatic management of data lineage is realized, solving the problems of insufficient performance, scalability and expressiveness of data lineage management solutions in the existing technology, and improving data management efficiency. and transparency.

CN118733684APending Publication Date: 2024-10-01CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410849720.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing data lineage management solutions have limitations in performance, scalability, and lineage expression capabilities when dealing with large-scale and complex data lineage relationships, and cannot meet increasingly complex data environments and business needs.

Method used

By parsing the execution plan of the data processing framework, data assets and their dependencies are extracted and stored in the graph database. Data kinship relationships are managed based on the graph database to achieve automated data kinship management.

Benefits of technology

It improves the efficiency and quality of data management, enhances the transparency and credibility of data, supports more effective decision-making and compliance management, and solves the limitations of performance, scalability and lineage expression capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733684A_ABST
    Figure CN118733684A_ABST
Patent Text Reader

Abstract

The invention provides a data blood relationship management method and system, electronic equipment and a storage medium. The method comprises the steps of obtaining an execution plan of a data processing framework adopted by a target data warehouse; obtaining data assets of the target data warehouse and a dependency relationship between the data assets according to the execution plan; storing the data assets and the dependency relationship in a graph database; wherein the data assets and the dependency relationship are used for constructing a data blood relationship of the target data warehouse; and managing the data blood relationship based on the graph database. According to the invention, the execution plan of the data processing framework is analyzed to obtain the data assets and the dependency relationship between the data assets, and the data assets and the dependency relationship between the data assets are stored in the specified graph database, so that the data blood relationship of the target data warehouse can be automatically managed based on the data assets in the graph database and the dependency relationship between the data assets. The efficiency and the quality of data management are greatly improved, and the transparency and the credibility of the data are enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data technology, and in particular to a data lineage management method, system, electronic device and storage medium. Background Art

[0002] Data warehouse (DW or DWH) is a strategic collection of all types of data support for decision-making processes at all levels of the enterprise. The data warehouse extracts the required data from different data sources, processes and unifies them, and integrates them together. In the data warehouse, lineage is an important foundation for data quality management, metadata management, and data governance.

[0003] Existing data lineage management solutions generally have limitations in performance, scalability, and lineage expression capabilities when dealing with large-scale and complex data lineage relationships, and are unable to meet the increasingly complex data environment and business needs.

[0004] For example, the blood relationship storage solution based on relational databases stores blood relationship data in relational databases and queries blood relationship information through SQL statements. This solution has limited storage space and low query efficiency, which is not conducive to the expression and analysis of complex blood relationship. In addition, traditional relational databases usually use table structures to store blood relationship data. As the scale and complexity of data increase, they will face performance bottlenecks and scalability issues. In addition, complex blood relationship may lead to low query efficiency, and relational databases are difficult to flexibly describe complex data dependencies, and the expression ability of blood relationship is limited. Summary of the invention

[0005] In order to solve the above technical problems, the present application provides a data lineage management method, system, electronic device and storage medium.

[0006] This application solves the above technical problems through the following technical solutions:

[0007] In a first aspect, the present application provides a data lineage management method, comprising:

[0008] Obtain the execution plan of the data processing framework adopted by the target data warehouse;

[0009] Obtaining data assets of the target data warehouse and dependencies between the data assets according to the execution plan;

[0010] The data assets and the dependency relationships are stored in a graph database; wherein the data assets and the dependency relationships are used to construct data lineage relationships of the target data warehouse;

[0011] The data lineage relationship is managed based on the graph database.

[0012] In this solution, data assets and their dependencies are obtained by parsing the execution plan of the data processing framework and stored in a specified graph database. Based on the data assets and their dependencies in the graph database, the data lineage relationship of the target data warehouse can be automatically managed, greatly improving the efficiency and quality of data management and enhancing the transparency and credibility of the data.

[0013] Optionally, the step of obtaining the data assets of the target data warehouse and the dependency relationship between the data assets according to the execution plan includes:

[0014] The execution plan is parsed, and the preset operator and the data asset are extracted from the execution plan; and the dependency relationship between the input data asset and the output data asset is determined according to the type of the preset operator.

[0015] Optionally, the step of storing the data assets and the dependency relationships in a graph database includes:

[0016] generating point data according to the data asset, wherein the point data includes identification information and asset type of the data asset;

[0017] generating edge data according to the dependency relationship between the data assets, the edge data including the first identification information of the input data asset, the second identification information of the output data asset, and the dependency relationship between the two;

[0018] The point data and the edge data are stored in the graph database.

[0019] Optionally, the step of managing the data lineage relationship based on the graph database includes:

[0020] Capturing change information of the data assets and / or change information of the dependency relationships in the target data warehouse;

[0021] The point data and / or the edge data in the graph database are updated according to the change information.

[0022] Optionally, the step of managing the data lineage relationship based on the graph database includes:

[0023] In response to a first lineage query request for the target data warehouse, based on the point data and the edge data in the graph database, the data lineage relationship of the target data warehouse is obtained and fed back;

[0024] and / or,

[0025] In response to a second lineage query request for a target data asset, based on the point data and the edge data associated with the target data asset in the graph database, an upstream and downstream lineage relationship of the target data asset is obtained and fed back.

[0026] Optionally, after the step of obtaining the data lineage relationship of the target data warehouse and feeding back the same, the method further includes:

[0027] Generate and display a first data lineage relationship map of the target data warehouse according to the data lineage relationship;

[0028] and / or,

[0029] After the step of obtaining the upstream and downstream blood relationship of the target data asset and feeding back the result, the method further includes:

[0030] A second data lineage relationship map of the target data asset is generated and displayed according to the upstream and downstream relationships.

[0031] Optionally, the data processing framework includes at least one of Spark and Flink;

[0032] and / or,

[0033] The graph database is Nebula Graph.

[0034] In a second aspect, the present application provides a data lineage relationship management system, including:

[0035] A plan acquisition module is used to obtain the execution plan of the data processing framework adopted by the target data warehouse;

[0036] A plan parsing module, used to obtain the data assets of the target data warehouse and the dependency relationships between the data assets according to the execution plan;

[0037] A data storage module, used to store the data assets and the dependency relationships in a graph database; wherein the data assets and the dependency relationships are used to construct a data lineage relationship graph of the target data warehouse;

[0038] A blood relationship management module is used to manage the data blood relationship map based on the graph database.

[0039] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, wherein when the processor executes the computer program, the data lineage management method as described in the first aspect is implemented.

[0040] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the data lineage relationship management method as described in the first aspect is implemented.

[0041] On the basis of conforming to the common sense in the art, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present application.

[0042] The positive effects of this application are:

[0043] By parsing the execution plans of several data processing frameworks adopted by the target data warehouse, this application can comprehensively and clearly understand the source and processing process of data assets, and then extract the data assets and the dependencies between them and store them in the specified graph database. Based on the data assets and the dependencies between them in the graph database, it is possible to automatically manage the data lineage relationships of the target data warehouse to facilitate the tracing of each data asset, and realize the modeling, storage, query and dynamic update of complex data lineage relationships in the data warehouse. It can effectively solve the limitations of existing technologies in performance, scalability and lineage expression capabilities, and can provide more powerful and flexible solutions for data governance in enterprise-level big data application scenarios, thereby greatly improving the efficiency and quality of data management, enhancing the transparency and credibility of data, and supporting more effective decision-making and compliance management. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 A flow chart of a data lineage management method provided in an embodiment of the present application;

[0045] Figure 2 A schematic diagram of a module of a data blood relationship management system provided in an embodiment of the present application;

[0046] Figure 3 A schematic diagram of the architecture of data lineage management provided in an embodiment of the present application;

[0047] Figure 4 A schematic diagram of a module of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The present application is further described below by way of examples, but the present application is not limited to the scope of the examples.

[0049] In the embodiments of the present application, prefixes such as "first" and "second" are used only to distinguish different description objects, and have no limiting effect on the position, order, priority, quantity or content of the described objects. The use of prefixes such as ordinal numbers to distinguish description objects in the embodiments of the present application does not constitute a limitation on the described objects. For the statement of the described objects, please refer to the description in the context of the claims or embodiments, and no unnecessary limitation should be constituted due to the use of such prefixes. In addition, in the description of the present embodiment, unless otherwise specified, the meaning of "multiple" is two or more.

[0050] In the embodiments of the present application, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0051] The present application embodiment provides a data lineage management method, such as Figure 1 As shown, the following steps are included:

[0052] S101, obtaining an execution plan of a data processing framework adopted by a target data warehouse;

[0053] S102: Obtain the data assets of the target data warehouse and the dependencies between the data assets according to the execution plan

[0054] S103, storing data assets and dependency relationships in a graph database; wherein the data assets and dependency relationships are used to construct data lineage relationships in a target data warehouse;

[0055] S104. Manage data lineage relationships based on a graph database.

[0056] When processing and analyzing massive amounts of data, data warehouses usually use multiple data processing frameworks in combination, such as Apache Spark and Apache Flink. This is mainly because different data processing frameworks have their own advantages in terms of performance, functions, and applicable scenarios. By combining them, they can better meet the diverse needs of data warehouses.

[0057] The execution plan of the data processing framework is customized according to the business scenario requirements. In addition, the execution plan of the data processing framework usually records in detail all the processing steps from the source to the target, including operations such as conversion, aggregation, and filtering. This detailed information can be used to build a comprehensive lineage relationship diagram covering all data processing links.

[0058] In an embodiment of the present application, through the execution plans of several data processing frameworks adopted by the target data warehouse, the source and processing process of the data assets can be fully and clearly understood, and then the data assets and the dependencies between them can be obtained and stored in the designated graph database. Based on the data assets and the dependencies between them in the graph database, the data lineage relationship of the target data warehouse can be automatically managed to facilitate the tracing of each data asset, thereby greatly improving the efficiency and quality of data management, enhancing the transparency and credibility of the data, and supporting more effective decision-making and compliance management.

[0059] There are usually multiple steps in an execution plan, and each step is a link in data processing. Based on the above execution plan, data assets and preset operators can be extracted, and the dependencies between data assets can be determined based on the preset operators.

[0060] In one embodiment, step S102 includes:

[0061] S1021. Obtain data assets of the target data warehouse and dependencies between data assets according to the execution plan;

[0062] S1022 determines the dependency relationship between the input data assets and the output data assets according to the type of the preset operator.

[0063] For example, for Apache Spark, the execution plan can be obtained through SparkSession (a programming interface), and data assets such as data tables, fields, and views, as well as preset operators such as Join, Filter, and Projection, can be extracted from it.

[0064] For Apache Flink, you can use the DataStreamAPI (a programming interface for processing data streams) or TableAPI (a programming interface for processing and analyzing structured data) it provides to obtain the execution plan and extract data assets such as data streams, fields, and operation types, as well as preset operators such as map, filter, keyBy, window, and join.

[0065] The dependency relationship between data assets may be dependency between data tables, dependency between table fields in the same data table, dependency between table fields in different data tables (cross-table dependency), etc.

[0066] Exemplarily, the Join operator is used to merge two or more data sets; when analyzing the execution plan, it is necessary to identify the data tables or data flows involved in the Join operator, that is, the input data assets and the output data assets, as well as the connection conditions between them.

[0067] The Filter operator is used to select data that meets specific conditions; when analyzing the execution plan, you need to identify the fields that the filter conditions depend on. For example, if there is a filter condition df.filter(df("age")>18), this indicates that the output data asset depends on the input data asset age field and the data corresponding to the input data asset df.

[0068] The Projection operator is used to select or rename columns in a dataset. When analyzing the execution plan, you need to identify which columns are selected or transformed. For example, if there is a projection operation df.select(df("name").alias("full_name")), this indicates that the output data asset depends on the input data asset name field and the data corresponding to the input data asset df.

[0069] The keyBy operator is used to group data streams by a key. This is usually used for subsequent aggregation operations or window operations. For example, keyedStream = stream.keyBy(0) indicates that each element in the data stream will be grouped according to the value of its first field, that is, the output data asset keyedStream depends on the input data asset stream and the first field of the data input asset stream.

[0070] The Window operator is used to split the data stream into finite windows. For example, windowedStream = keyedStream.window(TumblingEventTimeWindow.of(Time.seconds(5))), which indicates that the data stream will be grouped according to the time window, that is, the output data asset

[0071] The Map and FlatMap operators are used to apply a function to each element in a dataset and produce a new dataset. For example, in Flink, stream.map(x=>(x._1, x._2.toUpperCase)) indicates that the output data asset depends on the transformation of the input data asset stream.

[0072] Aggregation operators include reduce and aggregate, which are used to perform summary operations on data sets. For example, reducedStream = stream.reduce((a, b)=>a+b), indicating that the output data asset reducedStream is the aggregation result of the input data asset stream.

[0073] In one embodiment, step S103 includes:

[0074] S1031. Generate point data according to data assets;

[0075] S1032. Generate edge data according to the dependency relationship between data assets;

[0076] S1033. Store the point data and edge data in the graph database.

[0077] The point data includes the identification information and asset type of the data asset, and the edge data includes the first identification information of the input data asset, the second identification information of the output data asset, and the dependency relationship between the two.

[0078] Exemplarily, data asset entities and blood relationship edge entities can be defined in the following ways:

[0079] class DataAsset:

[0080] def__init__(self, name, asset_type):

[0081] self.name = name

[0082] self.asset_type = asset_type

[0083] class Lineage(Edge):

[0084] def__init__(self, source, target, relationship):

[0085] self.source = source

[0086] self.target = target

[0087] self.relationship=relationship

[0088] The data assets are then written into the data asset entity to form point data, the input data assets, output data assets, and the dependency relationship between the two are written into the blood relationship edge entity to form edge data, and the point data and edge data are stored in the graph database.

[0089] It should be noted that graph databases usually provide a graph data model, which is represented by nodes and relationships. Using graph databases, data assets and their dependencies are abstracted into a "node and edge" structure in the graph data model, which can make the expression of data lineage relationships more intuitive and the operation simpler and faster.

[0090] Data lineage relationships map the large and complex dependencies between data assets. The high-performance query and complex relationship modeling capabilities of graph databases can build and maintain data lineage relationships in a big data environment.

[0091] In one embodiment, step S104 includes:

[0092] In response to the first lineage query request for the target data warehouse, the data lineage relationship of the target data warehouse is obtained and fed back based on the point data and edge data in the graph database.

[0093] In order to help users view the data lineage relationship of the target data warehouse more intuitively, the data lineage relationship can be displayed in a graphical visualization form.

[0094] After obtaining the data lineage relationship of the target data warehouse and providing feedback, the following steps may also be included:

[0095] Generate and display a first data lineage relationship map of the target data warehouse according to the data lineage relationship;

[0096] In one embodiment, step S104 further includes:

[0097] In response to the second lineage query request for the target data asset, based on the point data and edge data associated with the target data asset in the graph database, the upstream and downstream lineage relationships of the target data asset are obtained and fed back.

[0098] Similarly, after obtaining the upstream and downstream blood relationship of the target data asset and providing feedback, a second data blood relationship map of the target data asset can be generated and displayed based on the upstream and downstream relationship, thereby achieving a quick query for one or more target data assets to obtain the corresponding upstream and downstream blood relationship through a graph database that stores the data assets and dependency relationships of the target data warehouse.

[0099] In another embodiment, step S104 further includes:

[0100] Capture change information of data assets and / or dependency changes in the target data warehouse;

[0101] Update the vertex data and / or edge data in the graph database according to the change information.

[0102] In this embodiment, by monitoring the scheduling system of the target data warehouse, change information of data assets, such as change operations such as addition, modification and deletion, can be captured in real time, and the graph database can be synchronously updated according to the captured change information to modify the point data and edge data in the graph database, thereby making the point data and edge data in the graph database consistent with those in the target data warehouse.

[0103] In addition, the point data and edge data in the graph database can be comprehensively checked and supplemented through regular scheduling tasks to ensure the accuracy and completeness of the data blood relationship map generated based on the point data and edge data in the graph database.

[0104] In the above embodiments, based on the graph database, the modeling, storage, query and dynamic update of complex data lineage relationships in the data warehouse can be realized, which can effectively solve the limitations of the existing technology in terms of performance, scalability and lineage expression capabilities, and can provide a more powerful and flexible solution for data governance in enterprise-level big data application scenarios.

[0105] Corresponding to the aforementioned data lineage relationship management method embodiment, the present application also provides an embodiment of a data lineage relationship management system.

[0106] Figure 2 A schematic diagram of a module of a data kinship management system provided by an exemplary embodiment of the present application, the system comprising:

[0107] A plan acquisition module 201 is used to acquire an execution plan of a data processing framework adopted by a target data warehouse;

[0108] A plan parsing module 202, used to obtain data assets of a target data warehouse and dependencies between data assets according to an execution plan;

[0109] The data storage module 203 is used to store data assets and dependencies in a graph database; wherein the data assets and dependencies are used to construct a data lineage relationship graph of a target data warehouse;

[0110] The blood relationship management module 204 is used to manage the data blood relationship graph based on the graph database.

[0111] For the system embodiment, since it basically corresponds to the method embodiment, the relevant parts can be referred to the partial description of the method embodiment. The system embodiment described above is only illustrative, in which the units described as separate components may or may not be physically separated, and the components of the units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the present application solution.

[0112] The data kinship management method and system are further described below through a specific example:

[0113] Figure 3 A schematic diagram of the architecture of data lineage management provided in the embodiment of the present application is as follows: Figure 3As shown, it mainly involves four aspects: multiple data sources, data warehouse, data lineage management system and graph database.

[0114] The data warehouse obtains data from multiple data sources and processes the data using the Spark and Flink data processing frameworks.

[0115] The data lineage management system obtains the execution plans of Spark and Flink used by the data warehouse, analyzes the data assets and the dependencies between the data assets, converts the data assets into point data, converts the above dependencies into edge data, and stores them in Nebula Graph (a graph database).

[0116] The data lineage management system based on Nebula Graph can quickly query the data lineage of data assets, such as the upstream and downstream lineage of data tables and table fields, and generate corresponding visual data lineage graphs to display to users, so that users can understand the data lineage of data assets more intuitively and comprehensively.

[0117] The data lineage management system can monitor the data warehouse in real time, capture the change information of data assets in the data warehouse and the change information of the dependencies between data assets, and update the point data and edge data in NebulaGraph in real time based on the change information.

[0118] The data lineage management system can also perform comprehensive verification and supplementation of point data and edge data in Nebula Graph through regular scheduling tasks to ensure the integrity and accuracy of the generated data lineage relationship map.

[0119] This example obtains data assets and their dependencies by directly parsing the execution plans of the Flink and Spark data processing frameworks used by the data warehouse, and uses data assets and their dependencies to express the data lineage relationships of the data warehouse. Compared with the existing method of obtaining data lineage relationships by parsing SQL statements, this example can provide more accurate and comprehensive data dependency information.

[0120] Because the execution plan can reflect the actual data processing logic inside the engine and capture more hidden data relationships. At the same time, this method is also more adaptable, not limited by SQL dialects and syntax, and can be flexibly applied to different SQL engines. In addition, since the execution plan information is provided by the engine, there is no need to parse SQL statements in real time, so it can better meet the needs of real-time lineage analysis. In addition, the execution plan contains a wealth of performance indicators and optimization suggestions, which helps to analyze the data processing process and perform targeted performance optimization.

[0121] This example also uses Nebula Graph to manage the data lineage relationships in the data warehouse.

[0122] As a high-performance, scalable distributed graph database, Nebula Graph can better describe and store complex data lineage relationships, improving the performance and scalability of data lineage analysis. Nebula Graph provides a powerful graph data model that can better express complex data lineage topology. This graph-based modeling method can clearly describe the complex front-and-back relationships between data assets and store these relationships in the form of attribute-rich graphs, greatly improving the expression and storage capabilities of lineage relationships.

[0123] Using Nebula Graph's built-in graph traversal algorithm, you can quickly and accurately query the upstream and downstream blood relationship of a data asset. Compared with traditional relational databases, graph-based query methods can quickly find the location and association of the target data asset in the entire blood relationship network, greatly improving the efficiency and response speed of blood relationship queries.

[0124] By associating blood relationship data with other metadata (such as data quality, access rights, etc.), more comprehensive and in-depth data asset management and data governance can be supported. This cross-dimensional data association analysis can provide richer contextual information for data governance and help data managers make more accurate decisions.

[0125] In order to ensure the timeliness and accuracy of the data lineage relationship in Nebula Graph, a real-time monitoring and regular correction mechanism is introduced. On the one hand, it can capture the changes in data lineage relationships in real time, and on the other hand, it can also regularly check and correct the data to ensure that the lineage relationship map is always up-to-date and accurate.

[0126] In general, the data lineage management solution based on Nebula Graph in this example has significant technical advantages in data modeling, query efficiency, data governance support, and data quality assurance, providing strong technical support for enterprise-level data asset management.

[0127] Figure 4 This is a schematic diagram of the structure of an electronic device shown as an example embodiment of the present application. The electronic device includes a memory, a processor, and a computer program stored in the memory and used to run on the processor. When the processor executes the computer program, it implements the data lineage management method of any of the above embodiments. Figure 4 The electronic device 40 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0128] like Figure 4 As shown, the electronic device 40 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 40 may include, but are not limited to: at least one processor 41, at least one memory 42, and a bus 43 connecting different system components (including the memory 42 and the processor 41).

[0129] The bus 43 includes a data bus, an address bus, and a control bus.

[0130] The memory 42 may include a volatile memory, such as a random access memory (RAM) 421 and / or a cache memory 422 , and may further include a read-only memory (ROM) 423 .

[0131] The memory 42 may also include a program tool 425 (or utility) having a set (at least one) of program modules 424, such program modules 424 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0132] The processor 41 executes various functional applications and data processing by running the computer programs stored in the memory 42, such as the data lineage management method provided in any of the above embodiments.

[0133] The electronic device 40 may also communicate with one or more external devices 44 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 45. Furthermore, the electronic device 40 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 46. As shown, the network adapter 46 communicates with other modules of the electronic device 40 via a bus 43. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 40, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.

[0134] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.

[0135] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the data lineage relationship management method provided in any of the above embodiments is implemented.

[0136] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.

[0137] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned data lineage relationship management methods.

[0138] Among them, the program code for executing the computer program product of the present application can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.

[0139] Although the specific implementation methods of the present application are described above, those skilled in the art should understand that this is only an example, and the protection scope of the present application is defined by the appended claims. Those skilled in the art may make various changes or modifications to these implementation methods without departing from the principles and essence of the present application, but these changes and modifications all fall within the protection scope of the present application.

Claims

1. A data lineage management method, characterized in that: The data lineage relationship management method comprises: Obtain the execution plan of the data processing framework adopted by the target data warehouse; Obtaining data assets of the target data warehouse and dependencies between the data assets according to the execution plan; The data assets and the dependency relationships are stored in a graph database; wherein the data assets and the dependency relationships are used to construct data lineage relationships of the target data warehouse; The data lineage relationship is managed based on the graph database.

2. The data lineage management method according to claim 1, characterized in that: The step of obtaining the data assets of the target data warehouse and the dependency relationship between the data assets according to the execution plan comprises: Parsing the execution plan, and extracting the preset operator and the data asset from the execution plan; According to the type of the preset operator, the dependency relationship between the input data asset and the output data asset is determined.

3. The data lineage management method according to claim 2, characterized in that: The step of storing the data assets and the dependency relationships in a graph database includes: generating point data according to the data asset, wherein the point data includes identification information and asset type of the data asset; generating edge data according to the dependency relationship between the data assets, the edge data including the first identification information of the input data asset, the second identification information of the output data asset, and the dependency relationship between the two; The point data and the edge data are stored in the graph database.

4. The data lineage management method according to claim 3, characterized in that: The step of managing the data blood relationship based on the graph database comprises: Capturing change information of the data assets and / or change information of the dependency relationships in the target data warehouse; The point data and / or the edge data in the graph database are updated according to the change information.

5. The data lineage management method according to claim 3, characterized in that: The step of managing the data blood relationship based on the graph database comprises: In response to a first lineage query request for the target data warehouse, based on the point data and the edge data in the graph database, the data lineage relationship of the target data warehouse is obtained and fed back; and / or, In response to a second lineage query request for a target data asset, based on the point data and the edge data associated with the target data asset in the graph database, an upstream and downstream lineage relationship of the target data asset is obtained and fed back.

6. The data lineage management method according to claim 5, characterized in that: After the step of obtaining the data lineage relationship of the target data warehouse and feeding back the same, the method further includes: Generate and display a first data lineage relationship map of the target data warehouse according to the data lineage relationship; and / or, After the step of obtaining the upstream and downstream blood relationship of the target data asset and feeding back the result, the method further includes: A second data lineage relationship map of the target data asset is generated and displayed based on the upstream and downstream relationships.

7. The data lineage management method according to any one of claims 1 to 6, characterized in that: The data processing framework includes at least one of Spark and Flink; and / or, The graph database is Nebula Graph.

8. A data lineage relationship management system, characterized in that: The data blood relationship management system includes: A plan acquisition module is used to obtain the execution plan of the data processing framework adopted by the target data warehouse; A plan parsing module, used to obtain the data assets of the target data warehouse and the dependency relationships between the data assets according to the execution plan; A data storage module, used to store the data assets and the dependency relationships in a graph database; wherein the data assets and the dependency relationships are used to construct a data lineage relationship graph of the target data warehouse; A blood relationship management module is used to manage the data blood relationship graph based on the graph database.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, characterized in that: When the processor executes the computer program, the data bloodline relationship management method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data lineage management method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Data warehouse system based on data management and blood relationship design

    CN110232098A

  • Blood relationship analysis method and device, computer equipment and storage medium

    CN116842011A