Query method and device for blood relationship data
By monitoring the processing logic information of the data engine, it parses and finds blood relationships, solving the problem of difficulty in analyzing multiple data formats with existing technology, achieving efficient and accurate blood relationship calculations, and is suitable for complex business scenarios.
Patent Information
- Application Number
- CN202310216060.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-01
- Publication Date
- 2024-09-03
AI Technical Summary
Existing technology is difficult to implement lineage analysis of multiple data formats, and requires configuring special analysis tasks for data in specified formats, which cannot adapt to the needs of complex business scenarios.
By monitoring the target data to be processed by the data engine, obtain its processing logic information, parse out the identification information used to match the blood relationship of the data, search for related data to determine the blood relationship, realize blood relationship analysis of multiple data formats, simplify the triggering process and improve Data coverage.
It realizes blood relationship calculation in multiple data formats, improves the data coverage and accuracy of blood relationship calculation, is suitable for more application scenarios, and simplifies the process of blood relationship calculation.
Smart Images

Figure CN118585544A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method and device for querying blood relationship data. Background Art
[0002] Data lineage, also known as data lineage, data origin, and data genealogy, refers to the natural relationship between data during its entire life cycle, from generation, processing, processing, fusion, and circulation to final extinction. It records the link relationship of data generation, which is similar to human blood relationship, so it is called data lineage relationship. Through data lineage, we can clearly know the upstream and downstream dependencies of data production. Data lineage analysis is one of the important applications of metadata management. It sorts out the relationships between systems, tables, views, stored procedures, ETL, program codes, fields, etc., and uses graph databases for visualization.
[0003] In the prior art, the analysis of data lineage requires configuring corresponding data analysis tasks according to the data format, so as to perform data lineage analysis on data in a specified format when processing data in that format. However, with the generalization of data processing, more and more application scenarios require processing data in multiple formats at the same time, so the existing data lineage analysis method is difficult to perform lineage analysis on data in different formats. Summary of the invention
[0004] In view of the above problems, the present invention proposes a method and device for querying bloodline data, the main purpose of which is to use the processing timing of data as a trigger signal for bloodline analysis, and to analyze the bloodline of the data using the processing logic information of the data.
[0005] In order to achieve the above object, the present invention mainly provides the following technical solutions:
[0006] In a first aspect, the present invention provides a method for querying blood relationship data, the method comprising:
[0007] Monitor the target data to be processed by the data engine;
[0008] Acquire processing logic information of the data engine processing the target data;
[0009] parsing the target data using the processing logic information to obtain identification information for matching data lineage;
[0010] The associated data of the target data is searched according to the identification information to determine the blood relationship between the target data and the associated data.
[0011] In a second aspect, the present invention provides a device for querying bloodline data, the device comprising:
[0012] A monitoring unit, used for monitoring target data to be processed by the data engine;
[0013] An acquisition unit, used for acquiring processing logic information of the data engine processing the target data monitored by the monitoring unit;
[0014] A parsing unit, used to parse the target data using the processing logic information obtained by the acquisition unit to obtain identification information for matching data lineage;
[0015] The search and analysis unit is used to search for the associated data of the target data according to the identification information obtained by the analysis unit to determine the blood relationship between the target data and the associated data.
[0016] On the other hand, the present invention also provides a processor, which is used to run a program, wherein the program executes the above-mentioned method for querying bloodline data when running.
[0017] On the other hand, the present invention also provides a storage medium, which is used to store a computer program, wherein when the computer program is running, it controls the device where the storage medium is located to execute the above-mentioned bloodline data query method.
[0018] By means of the above technical solution, the present invention provides a method and device for querying lineage data. It is not necessary to configure a trigger task for lineage analysis for data in a specified format. Instead, the data processing of the data engine is monitored. When it is found that the target data is to be processed, the processing logic information required for processing the target data is obtained. By analyzing the processing logic information, it is matched with the target data to extract the identification information for matching the data lineage, thereby finding the associated data with the target data in lineage relationship to establish the corresponding lineage relationship. Compared with the existing method of querying lineage data, the embodiment of the present invention no longer limits the format of the target data. What is needed is the processing logic information for processing the target data. Therefore, the lineage calculation method can be applied to application scenarios with multiple data formats. At the same time, the method triggers the lineage calculation of the target data by the data engine, and there is no need to configure the corresponding trigger task separately. It also simplifies the triggering process of the lineage calculation, realizes the lineage calculation of all data that may change, and improves the data coverage of the lineage calculation. In addition, since the calculation of the embodiment of the present invention relies on the processing logic information of the target data, it can more accurately analyze the change process of the target data in the upstream and downstream, thereby improving the accuracy of the query of the target lineage data.
[0019] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0021] Figure 1 A flow chart of a method for querying blood relationship data proposed in an embodiment of the present invention is shown;
[0022] Figure 2 A flow chart of a method for querying offline blood relationship data proposed in an embodiment of the present invention is shown;
[0023] Figure 3 A flow chart of a method for querying real-time blood relationship data proposed in an embodiment of the present invention is shown;
[0024] Figure 4 A schematic diagram of the structure of a blood relationship data query device proposed in an embodiment of the present invention is shown;
[0025] Figure 5 A schematic diagram of the structure of another blood relationship data query device proposed in an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0026] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0027] At present, data lineage relationship maps are needed in many business scenarios, such as data traceability and data quality assessment. The construction of this map requires lineage analysis and calculation of the data, and the existing lineage calculation often requires the configuration of corresponding data analysis tasks for the specified data to trigger the lineage analysis of the specified data. This kind of data analysis task is generally distinguished by the format of the data. Data of different formats have different processing methods, so different data analysis tasks need to be configured. With the continuous growth and update of data formats, the existing lineage calculation method has been difficult to meet the needs of complex business scenarios.
[0028] To this end, the inventor of this case proposed a method for querying bloodline data. This method no longer distinguishes the specific format of the data, but triggers bloodline calculation based on the data engine's processing of the data, and uses the data processing logic information to analyze the bloodline relationship of the data. Specifically, the execution steps of the bloodline data query method in the embodiment of the present invention are as follows: Figure 1 As shown, including:
[0029] 101. Monitor the target data to be processed by the data engine.
[0030] The embodiment of the present invention is executed by a computing device that installs and runs a data engine. In this step, a data engine refers to an engine used for large-scale data processing and analysis, and common data engines include Hadoop, Spark, Flink, Zookeeper, etc. Different data engines have their own application scenarios for performing data processing. In this embodiment, the processing of data by a data engine refers to the process of processing data A into data B, and the difference between data A and data B includes but is not limited to format, content, etc. In other words, data B is obtained by processing data A, and in data lineage analysis, the two processed data are related by blood.
[0031] In this step, by monitoring the target data that the data engine is to process or is about to process, it can be determined that the target data will change, and in order to mark the path of its change, it is necessary to perform a lineage analysis on it. Therefore, this embodiment triggers the task of lineage analysis on the target data based on the monitored target data. That is, in this solution, the task of lineage analysis will be triggered for the target data to be processed by the data engine, and the specific data format of the target data is not limited. Therefore, in this embodiment, the target data can be data of different formats and types.
[0032] 102. Obtain processing logic information of the data engine for processing target data.
[0033] There are multiple data processing functions built into the data engine, and different processing functions correspond to at least one processing logic. The data engine will match the corresponding processing logic for the target data based on the relevant information of the target data. It can be a single processing logic or a comprehensive processing logic obtained by combining multiple processing logics. This step is to obtain the processing logic information of the target data processed by the data engine through a listener. The listener can be a built-in listening device or listening service in the data engine, or an external listening device or listening service configured for the data engine.
[0034] The purpose of obtaining processing logic information is to determine the corresponding operations to be performed on the target data. Based on these different operations, the processing link of the target data can be determined. Through the processing link, the upstream and downstream data of the target data can be analyzed, and then the blood relationship of the target data can be found and determined.
[0035] 103. Analyze the target data using the processing logic information to obtain identification information for matching data lineage.
[0036] This step is to find relevant identification information in the target data according to the processing logic information. For example, if the processing logic information includes a merge process with other data, then it is necessary to find the source of the target data and the source of other data from the target data, and use the source path of the data as identification information. These identification information can be used as identification information for matching the data lineage of the target data. Specifically, for table data, its processing logic information can be the processing fields, and the corresponding identification information is the specific content of these fields.
[0037] The core of this step is to use the processing logic information to parse out the relevant content of the target data involving upstream and downstream data, extract these contents and organize them into identification information for the subsequent establishment of the blood relationship of the target data.
[0038] 104. Search for associated data of the target data according to the identification information, and determine the associated data as the bloodline data of the target data.
[0039] This step is to search for related data in the designated database based on the identification information, that is, to verify the authenticity of the data processing link. If the related data can be found, it means that the related data is related to the target data. At this time, the two can be marked as data with a blood relationship, and the related data can be determined as the blood relationship data of the target data; conversely, if the related data cannot be queried, it means that the identification information is inaccurate, and the target data does not have blood relationship data. For such cases, the related data may not have been generated by the processing engine, or the related data may have been deleted.
[0040] Based on the above Figure 1It can be seen from the implementation method that when the embodiment of the present invention needs to calculate the data lineage of the target data, it does not need to pre-configure the corresponding analysis task, but monitors whether the target data is processed by the data engine. When it needs to be processed, the lineage analysis of the target data is triggered, and the processing logic information of the target data is processed by the data engine. The identification information for matching the associated data is parsed from the target data, thereby finding the associated data and marking its lineage relationship with the target data. It can be seen that when the embodiment of the present invention processes and analyzes data lineage, not only is its triggering method different from the existing method, but its analysis method is based on the analysis of the processing logic of the target data, and does not pay attention to the data format of the target data itself. Therefore, the embodiment of the present invention can be adapted to more application scenarios, and this method realizes the lineage calculation of all data that may change, thereby improving the data coverage of the lineage calculation. At the same time, since the execution of this solution relies on the processing logic information of the target data, it can more accurately analyze the change process of the target data in the upstream and downstream, thereby improving the accuracy of the query on the target lineage data.
[0041] Furthermore, based on the above Figure 1 In the embodiment of the present invention shown, the monitored target data can be specifically divided into offline data and real-time data in terms of timeliness. For these two types of target data with different timeliness, since offline data has downstream associated data, while real-time data does not, the embodiment of the present invention has differences in the specific steps of blood relationship analysis. The specific process of blood relationship analysis will be described below for target data with different timeliness states:
[0042] First, the analysis process of offline data is described. The specific steps are as follows: Figure 2 As shown, including:
[0043] 201. Monitor target data to be processed by the data engine.
[0044] The data engine in this embodiment is described by taking the Spark engine as an example, and the monitored target data is offline data. The format types of the processed offline data include offline data generated by data modes such as Spark SQL, DAG (directed acyclic graph), custom SQL, and custom scripts.
[0045] 202. Call a preset algorithm through a listener in the data engine to obtain processing logic information applied by the data engine when processing target data.
[0046] In this step, a listener (QueryExcutionListener) is built into the Spark engine. When it is detected that there is target data to be processed, the onSuccess method of the listener is used to obtain the processing logic information (Logicalplan) for processing the target data. The processing logic information can also be called the logical plan, which is one of the two major processes that the sparksql statement goes through in the cluster. The other is the physical plan. The logical plan can be understood as a tree data structure, a logical operator tree.
[0047] 203. Decompose the processing logic information into at least one type of logic fields according to preset field categories.
[0048] Among them, the preset field category corresponds to the specified type of identification information.
[0049] The preset field categories in this embodiment can be specifically divided into data source fields, data conversion fields, data flow fields, etc. Among them, the data source field is used to mark or process the processing logic of the data source related information; the data conversion field is used to describe the processing logic of operations such as data conversion processing; the data flow field is used to mark or process the processing logic of the data flow target and other related information.
[0050] The preset field categories in this step can be specifically represented in the logic plan of the Spark engine as: LogicalRelation; HiveTableRelation; InsertlntoHiveTable; InsertlntoHadoopFsRelationCommand; CreateHiveTableAsselectCommand; Aggregate; Project; Window; Union, etc. The processing logic information is traversed through these field categories, and the above fields are determined as logical fields.
[0051] 204. Use logical fields to match field information in target data.
[0052] This step is to match the logical field with the field information in the target data. If the match is successful, step 205 is executed. The field information of the target data includes but is not limited to data source information, data conversion information, data flow information, etc. The specific matching method is as follows:
[0053] If the logical field is a data source field, the data source information in the target data is obtained. When the logical field in the corresponding Spark engine is LogicalRelation or HiveTableRelation, the data source information such as the source table and field information in the target data is obtained.
[0054] If the logical field is a data conversion field, the data conversion information of the target data is obtained. When the corresponding logical field in the Spark engine is Aggregate, Project, Window, or Union, the conversion relationship of the corresponding field in the target data is used as the data conversion information, such as alias and other processing operations or tag information.
[0055] If the logical field is a data flow field, the data flow information of the flow target data is obtained.
[0056] When the corresponding logical field in the Spark engine is InsertlntoHiveTable or InsertlntoHadoopFsRelationCommand or CreateHiveTableAsselectCommand, data flow information such as the target table and field information in the target data is obtained.
[0057] 205. Obtain identification information of a specified type in the target data according to the matched field information.
[0058] This step is to process the hit multiple field information to generate identification information of a specified type or format, and the identification information can be used to search for data in a specified database to retrieve associated data that is related to the target data.
[0059] Specifically, the acquired data source information, data conversion information, and data flow information may be combined according to a preset query structure to generate identification information executable by a specified database.
[0060] 206. Parse the identification information by field in the designated database to search for associated data that has a blood relationship with the target data in terms of data content in the corresponding field.
[0061] This step sends the identification information to a designated database, such as Kafka, etc. Since the identification information is generated according to the designated database processing method, the designated database can process the identification information, parse it according to the fields in the identification information, and search for associated data that has a blood relationship with the target data in the data content of the corresponding fields, where the blood relationship includes but is not limited to fields with the same name or number; the data content of the corresponding fields is the same or has a designated processing relationship, etc. If the corresponding associated data is found, the blood relationship between the target data and the associated data can be constructed and stored for subsequent data analysis.
[0062] above Figure 2The embodiment shown is a query process of lineage data designed for offline data in the embodiment of the present invention. The embodiment of the present invention is also applicable to real-time data. The specific analysis steps of data lineage are as follows: Figure 3 As shown, including:
[0063] 301. Monitor target data to be processed by the data engine.
[0064] The target data in this embodiment is real-time data. The difference between real-time data and offline data lies in the time of their generation. Real-time data is newly generated new data, while offline data is old data that has been generated. Real-time data cannot have downstream associated data, but can only have upstream associated data, while offline data can have upstream and downstream data. Therefore, for real-time data, it is not necessary to analyze its downstream associated data, but only to determine the blood relationship of the upstream associated data.
[0065] 302. Obtain source information of the target data according to the flow information of the target data.
[0066] The flow direction information in this step is obtained based on the analysis of the real-time data processing strategy. For example, for ETL real-time data, the flow direction of the real-time data can be determined by analyzing the etl component strategy, and then the source information of the real-time data can be determined based on the flow direction, that is, the table and field information connected to the predecessor node of the current component processing the real-time data is determined as the source information.
[0067] 303. Obtain processing logic information of the data engine for processing target data.
[0068] The processing logic information in this step includes but is not limited to the processing logic built into the data engine and the processing logic entered in real time. Figure 1 Step 102 of the illustrated embodiment is the same and will not be described again here.
[0069] 304. Analyze the target data using the processing logic information to obtain identification information for matching data lineage.
[0070] This step is to decompose the processing logic information, and then match the decomposed processing logic fields with the target data to obtain identification information. Figure 2The main difference between the identification information in step 302 and step 304 is that the real-time data in this embodiment focuses on the upstream associated data, so in the matching process, what is obtained is the source information of other data that needs to be processed with the real-time data. For example, the real-time data is data A, and A is obtained by processing data B. Then the source information obtained by step 302 is the information pointing to data B. When the data engine processes data A, its corresponding processing logic is to merge data A with data C. Then, the identification information obtained in this step is the information pointing to data C.
[0071] Specifically, in the development mode of Flink SQL and ClickHouse SQL, the identification information can be obtained by using preset tools, such as cakite tools, antlr4 files, etc., to convert the processing logic information into a syntax tree, and query and match the content in the target data layer by layer according to the syntax tree.
[0072] 305. Search for associated data of the target data according to the identification information, and determine the associated data as the blood relationship data of the target data.
[0073] In this step, when the associated data is found, it includes not only the data that is directly processed with the real-time data, but also the data that is indirectly processed with the real-time data. Corresponding to the syntax tree, it is to search layer by layer from the logical relationship at the bottom to the logical relationship at the top. When the level of the syntax tree exceeds 2 layers, there will be associated data that has an indirect processing relationship with the real-time data.
[0074] For the related data being searched, no matter whether it is directly or indirectly related, the basis for analyzing whether it has a blood relationship with the real-time data is: detecting whether the source information of the related data is legal, which can be specifically understood as detecting whether the processing logic of the related data is correct. If it is correct, it is considered legal, and the source information can be determined as the related data of the real-time data. On the contrary, if the processing logic is incorrect, it is considered illegal, and the blood relationship calculation failure of the real-time data will be prompted.
[0075] Through the above Figure 2 , 3 It can be seen from the contents of the illustrated embodiments that the embodiments of the present invention can analyze real-time data and offline data when calculating data lineage, and when analyzing the lineage of target data, there is no need to pre-configure the corresponding analysis tasks, but the lineage analysis of the target data is triggered by monitoring the processing engine. In the specific analysis process, the embodiments of the present invention are implemented based on the processing logic information of the target data, and can more accurately analyze the upstream and downstream changes of the target data, thereby improving the accuracy of the query on the target lineage data.
[0076] Furthermore, as a response to the above Figure 1-3 The implementation of the method embodiment shown in the figure, the embodiment of the present invention provides a device for querying bloodline data, which uses the processing timing of data as a trigger signal for bloodline analysis, and uses the processing logic information of the data to analyze the bloodline of the data, so as to improve the applicability of the query of bloodline data. The embodiment of the device corresponds to the aforementioned method embodiment. For the sake of ease of reading, this embodiment will no longer repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. Specifically, Figure 4 As shown, the device comprises:
[0077] A monitoring unit 41, used for monitoring target data to be processed by the data engine;
[0078] An acquisition unit 42 is used to acquire processing logic information of the data engine processing the target data monitored by the monitoring unit 41;
[0079] A parsing unit 43, configured to parse the target data using the processing logic information obtained by the acquiring unit 42, and obtain identification information for matching data lineage;
[0080] The search and analysis unit 44 is used to search for the associated data of the target data according to the identification information obtained by the analysis unit 43, and determine the associated data as the blood relationship data of the target data.
[0081] Furthermore, the target data is offline data, and the acquisition unit 42 is specifically configured to acquire processing logic information applied by the data engine when processing the target data by calling a preset algorithm through a listener in the data engine.
[0082] Further, such as Figure 5 As shown, the parsing unit 43 includes:
[0083] A decomposition module 431, configured to decompose the processing logic information into at least one type of logic fields according to a preset field category, wherein the preset field category corresponds to a specified type of identification information;
[0084] A matching module 432, configured to match field information in the target data using the logical fields obtained by the decomposition module 431;
[0085] The acquisition module 433 is used to acquire the identification information of a specified type in the target data according to the field information matched by the matching module 432 .
[0086] Furthermore, the preset field categories are divided into data source fields, data conversion fields, and data flow fields. The matching module 432 is specifically used for:
[0087] If the logical field is a data source field, obtaining data source information in the target data;
[0088] If the logic field is a data conversion field, obtaining data conversion information for processing the target data;
[0089] If the logic field is a data flow field, data flow information of the target data is obtained.
[0090] Furthermore, the acquisition module 433 is specifically used for:
[0091] The acquired data source information, data conversion information, and data flow information are combined according to a preset query structure to generate the identification information.
[0092] Furthermore, the search and analysis unit 44 is specifically used to parse the identification information by field in the designated database, and search for associated data that has a blood relationship with the target data in terms of data content in the corresponding field.
[0093] Further, such as Figure 5 As shown, the target data is real-time data, and the device further includes:
[0094] The extraction unit 45 is used to obtain the source information of the target data according to the flow information of the target data before the acquisition unit 42 acquires the processing logic information of the data engine processing the target data.
[0095] Furthermore, the search and analysis unit 44 is also used to detect whether the source information obtained by the extraction unit 45 is legal; if legal, the source information is determined as the associated data of the target data; if illegal, it is prompted that the blood relationship calculation of the target data has failed.
[0096] Furthermore, an embodiment of the present invention further provides a processor, the processor is used to run a program, wherein the program executes the above Figure 1-3 The query method of blood relationship data described in .
[0097] Furthermore, an embodiment of the present invention further provides a storage medium, wherein the storage medium is used to store a computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the above Figure 1-3 The query method of blood relationship data described in .
[0098] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0099] It is understandable that the related features in the above methods and devices can be referenced to each other. In addition, the "first", "second" and the like in the above embodiments are used to distinguish the embodiments, and do not represent the advantages and disadvantages of the embodiments.
[0100] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0101] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description of the above specific languages is for disclosing the best mode of the present invention.
[0102] In addition, the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0103] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0104] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0105] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0106] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0107] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0108] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0109] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0110] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0111] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0112] The above are only embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A method for querying bloodline data. It is characterized in that The method comprises: Monitor the target data to be processed by the data engine; Acquire processing logic information of the data engine processing the target data; parsing the target data using the processing logic information to obtain identification information for matching data lineage; The associated data of the target data is searched according to the identification information, and the associated data is determined as the bloodline data of the target data.
2. The method according to claim 1, It is characterized in that The target data is offline data, and obtaining the processing logic information of the data engine for processing the target data includes: The preset algorithm is called by the listener in the data engine to obtain the processing logic information applied by the data engine when processing the target data.
3. The method according to claim 2, It is characterized in that Utilizing the processing logic information to parse the target data to obtain identification information for matching data lineage includes: Decomposing the processing logic information into at least one type of logic fields according to preset field categories, wherein the preset field categories correspond to the specified type of identification information; Matching field information in the target data using the logical field; The identification information of a specified type in the target data is obtained according to the field information of the matching hit.
4. The method according to claim 3, It is characterized in that The preset field categories are divided into data source fields, data conversion fields, and data flow fields. The logical fields are used to match the field information in the target data, including: If the logical field is a data source field, obtaining data source information in the target data; If the logic field is a data conversion field, obtaining data conversion information for processing the target data; If the logic field is a data flow field, data flow information of the target data is obtained.
5. The method according to claim 4, It is characterized in that Obtaining identification information of a specified type in the target data according to the matched field information, including: The acquired data source information, data conversion information, and data flow information are combined according to a preset query structure to generate the identification information.
6. The method according to any one of claims 1 to 5, It is characterized in that Searching for associated data of the target data according to the identification information includes: The identification information is parsed by field in a designated database to search for associated data that has a blood relationship with the target data in terms of data content in the corresponding field.
7. The method according to claim 1, It is characterized in that The target data is real-time data. Before obtaining the processing logic information of the data engine processing the target data, the method further includes: The source information of the target data is obtained according to the flow direction information of the target data.
8. The method according to claim 7, It is characterized in that Searching for associated data of the target data according to the identification information includes: Check whether the source information is legitimate; If it is legal, the source information is determined as associated data of the target data; If it is illegal, it will prompt that the blood relationship calculation of the target data has failed.
9. A device for querying blood relationship data, It is characterized in that The device comprises: A monitoring unit, used for monitoring target data to be processed by the data engine; An acquisition unit, used for acquiring processing logic information of the data engine processing the target data monitored by the monitoring unit; A parsing unit, used to parse the target data using the processing logic information obtained by the acquisition unit to obtain identification information for matching data lineage; A search and analysis unit is used to search for associated data of the target data according to the identification information obtained by the analysis unit, and determine the associated data as the blood relationship data of the target data.
10. A processor, It is characterized in that The processor is used to run a program, wherein the program, when running, executes the method for querying bloodline data described in any one of claims 1-8.
11. A storage medium, It is characterized in that The storage medium is used to store a computer program, wherein when the computer program is running, it controls the device where the storage medium is located to execute the method for querying bloodline data described in any one of claims 1-8.
Citation Information
Patent Citations
Data blood relationship construction method and device, storage medium and electronic equipment
CN114356964A
Data parallel processing method and device, computer equipment and readable storage medium
CN114691356A
Field blood relationship processing method and system based on graph database
CN115080570A
Data field blood relationship analysis method and device, electronic equipment and storage medium
CN117688061A
Cited By
Method and system for querying database source based on blood relationship
CN120469983A
