Data asset governance method, apparatus, device, and computer program product

By performing semantic parsing and feature extraction on data query statements, dual semantic fingerprints are generated for clustering and operator-level lineage analysis. This solves the problems of redundant calculations and conflicting definitions in data asset management, realizes automated data asset governance, and improves the efficiency of computing resource utilization and data asset control capabilities.

CN123178385APending Publication Date: 2026-11-27QIXUN XIN YOU
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611656384.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-26
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Under the data-driven business operation model, enterprises face problems such as scattered redundant equivalent calculation logic, waste of computing resources, low efficiency of tag calculation, long manual governance cycle, inability to fully understand the asset inventory, and difficulty in unifying business standards in the management of SQL reports and ETL scripts, resulting in passive and lagging data asset governance.

Method used

By acquiring the data query statements to be governed, semantic parsing and feature extraction are performed to generate a standardized syntax tree and execution feature information. Clustering is performed based on dual semantic fingerprints to identify groups of repeated calculation logic. Operator-level lineage analysis and consistency verification are also performed to derive incremental calculation schemes and generate governance scripts, thereby achieving automated asset governance transformation and health assessment.

Benefits of technology

It has enabled a shift from passive, experience-driven processing to systematic, proactive governance, identifying and eliminating redundant calculations, standardizing business terminology, reducing resource consumption, quantifying asset governance effectiveness, and improving data asset management capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178385A_ABST
    Figure CN123178385A_ABST
Patent Text Reader

Abstract

The application discloses a data asset governance method and device, equipment and computer program product, relates to the technical field of data asset management, and comprises the following steps: acquiring and performing semantic analysis and feature extraction processing on each data query statement, obtaining a normalized syntax tree and execution feature information, and generating a double semantic fingerprint; clustering each data query statement based on each double semantic fingerprint to identify a repeated calculation logic group; performing operator-level blood relationship analysis and caliber consistency verification on the data query statements related to the repeated calculation logic group, obtaining an operator-level processing link and a caliber conflict detection result, and deriving an incremental calculation mode according to the operator-level processing link to generate an incremental calculation scheme; generating a governance script, performing asset governance transformation and task flow gray control processing on each data query statement, carrying out health degree evaluation on data assets, and outputting an asset governance result. The application can improve the data asset governance precision and the resource control level of a data warehouse.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data asset management technology, and in particular to a data asset governance method, apparatus, equipment and computer program product. Background Technology

[0002] In data-driven business operation models, enterprises accumulate a massive amount of SQL reports and ETL script assets over a long period of time. Especially in business scenarios such as e-commerce retail, the number of reports can reach tens of thousands, covering multiple business analysis domains. Among them, a large number of business reports are independently developed and iterated, which has led to many real pain points. Repetitive equivalent calculation logic is widely scattered in various scripts, resulting in real business problems such as wasted computing resources, low efficiency of label calculation, long manual governance cycle, inability to fully understand the asset assets, and difficulty in unifying business standards. The overall data asset governance work is in a passive and lagging state, and relies heavily on the experience of senior developers to complete the entire process.

[0003] Therefore, there is an urgent need for a technical solution to improve the automation and accuracy of data asset governance, so as to transform the governance model from manual passive handling to system-driven proactive governance, and improve the utilization efficiency of data warehouse computing resources and the ability to manage data assets. Summary of the Invention

[0004] The main purpose of this application is to provide a data asset governance method, apparatus, equipment and computer program product, which aims to realize the transformation of data asset governance from passive handling driven by human experience to systematic and proactive governance, and solve the problems of difficulty in identifying duplicate calculations in massive data query statements, difficulty in discovering conflicts of standards and the reliance on manual governance processes.

[0005] To achieve the above objectives, this application proposes a data asset governance method, which includes: Multiple data query statements to be processed are obtained, and semantic parsing and feature extraction are performed on each data query statement to obtain the normalized syntax tree and execution feature information corresponding to each data query statement. Based on the normalized syntax trees and execution feature information, generate dual semantic fingerprints corresponding to each data query statement, and cluster each data query statement based on the dual semantic fingerprints to identify groups of repeated calculation logic. Operator-level lineage parsing and caliber consistency verification are performed on the data query statements involved in the repeated calculation logic grouping to obtain operator-level processing links and caliber conflict detection results. Based on the operator-level processing links, the incremental calculation mode is derived and an incremental calculation scheme is generated. A governance script is generated based on the repeated calculation logic grouping, the caliber conflict detection results, and the incremental calculation scheme. Based on the governance script, asset governance transformation and task flow gray-scale control processing are performed on each of the data query statements. A health assessment is conducted on the data assets constituted by the governed data query statements, and the asset governance results are output.

[0006] In one possible implementation, the semantic parsing and feature extraction processing of each of the data query statements to obtain the normalized syntax tree and execution feature information corresponding to each of the data query statements includes: The data query statements are parsed into abstract syntax trees by a structured query language parser, and the abstract syntax trees preserve the query semantic structure of each data query statement. Normalization processing is performed on each of the abstract syntax trees to obtain the normalized syntax tree corresponding to each of the data query statements. The normalization processing includes table alias resolution, constant folding and predicate standardization, function equivalence normalization, and join order standardization. The execution plan of each data query statement is obtained through the data warehouse query engine. The table scan row count estimate, data redistribution estimate, operator type sequence, partition pruning information, full table scan flag and data skew flag are extracted from the execution plan and integrated to generate the execution feature information.

[0007] In one possible implementation, generating dual semantic fingerprints corresponding to each data query statement based on the normalized syntax tree and the execution feature information, and clustering each data query statement based on the dual semantic fingerprints to identify groups of repeated computation logic, includes: Using a post-order traversal approach, the hash value of each operator node is calculated layer by layer based on the node type, hash value of the child node, and normalized text of each operator node in the normalized syntax tree until the hash value of the root node in the normalized syntax tree is obtained. The hash value of the root node is then used as the structural fingerprint. The execution feature information includes multiple runtime features that are processed by vector encoding and transformation to generate execution feature vectors. Then, the execution feature vectors are transformed by a feature mapping algorithm to obtain execution feature fingerprints. The structural fingerprints and the execution feature fingerprints are concatenated to obtain dual semantic fingerprints. Locality-sensitive hashing algorithm is used to perform grouping and clustering processing on all dual semantic fingerprints. Based on the preset feature distance judgment rule, repeated calculation logic groups are aggregated to obtain groups.

[0008] In one possible implementation, the step of performing operator-level lineage parsing and consistency verification on the data query statements involved in the repeated calculation logic grouping to obtain operator-level processing links and consistency conflict detection results, and deriving the incremental calculation mode based on the operator-level processing links to generate an incremental calculation scheme, including: Semantic annotation is performed on each operator node in the normalized syntax tree corresponding to the data query statement involved in the repeated calculation logic grouping. Based on the annotated operator nodes, an operator-level processing link from the output field to the source table field is constructed. The operator-level processing link supports forward tracing, reverse tracing, and cross-layer penetration. Semantic tags corresponding to each field are generated according to the operator-level processing link, and similarity calculations are performed on each semantic tag for comparison. Based on the similarity comparison results, a caliber conflict detection result is generated. The aggregation operator type of the operator-level processing link record is read, and the data write update attribute of the upstream source data table is obtained. The aggregation operator type and the data write update attribute are combined to perform pattern discrimination processing, derive the incremental calculation mode, and generate the incremental calculation scheme.

[0009] In one possible implementation, the step of generating semantic tags corresponding to each field based on the operator-level processing link, performing similarity calculations and comparisons on each semantic tag, and generating caliber conflict detection results based on the similarity comparison results includes: The source table field information, operator filtering condition content, and aggregation operation logic content in the operator-level processing link are sequentially processed by text concatenation to assemble the semantic tags of the corresponding fields. For any two semantic tags corresponding to the same field across query statements, the set similarity calculation method is used to compare the features of each semantic tag and output the semantic similarity value; Read the preset similarity discrimination threshold, compare each semantic similarity value with the preset similarity discrimination threshold, and generate the caliber conflict detection result by marking field objects that exceed the threshold range.

[0010] In one possible implementation, the step involves generating a governance script based on the repeated calculation logic grouping, the caliber conflict detection results, and the incremental calculation scheme; performing asset governance transformation and task flow gray-scale control processing on each of the data query statements based on the governance script; conducting a health assessment on the data assets constituted by the governed data query statements; and outputting asset governance results, including: Read the calculation logic of the repeated calculation logic group, the field correction requirements of the caliber conflict detection results, and the update logic of the incremental calculation scheme, and generate a governance script containing table structure definitions and data update statements through template filling; Call the open interface of the data development platform to load the governance script, complete the rewriting of the query statement logic and the creation of intermediate objects, configure the upstream and downstream dependencies of the task, synchronously enable the shadow parallel running mode to carry out data consistency comparison, and perform gray-scale control processing of the task flow. Collect various asset statistical information retained during the asset governance and transformation process and the gray-scale control process of the task flow, extract multi-dimensional asset indicators, conduct health assessment on the multi-dimensional asset indicators, and output asset governance results.

[0011] In one possible implementation, the step of performing a health assessment on the multi-dimensional asset indicators and outputting asset governance results includes: Based on the aforementioned multi-dimensional asset indicators, the following scores are calculated: redundancy score, reuse rate score, query efficiency score, consistency score, and lifecycle rationality score. The repetition score, reuse rate score, query efficiency score, consistency score, and lifecycle rationality score are weighted and summed according to preset weights to obtain a comprehensive health score. The comprehensive health score is then compared with a preset level range to determine the corresponding health level. When the overall health score is lower than the preset health threshold, governance suggestions are generated based on the repetition score, the reuse rate score, the query efficiency score, the consistency score, and the lifecycle rationality score. The governance suggestions include suggestions for merging duplicates, incremental transformation, cold data archiving, and conflict resolution. The changes in health scores before and after this governance operation are obtained to generate governance effect trend information. The health level, the governance recommendations, and the governance effect trend information are used as the asset governance results.

[0012] Furthermore, to achieve the above objectives, this application also proposes a data asset governance device, which includes: The acquisition module is used to acquire multiple data query statements to be processed, and to perform semantic parsing and feature extraction processing on each data query statement to obtain the normalized syntax tree and execution feature information corresponding to each data query statement. The identification module is used to generate a dual semantic fingerprint corresponding to each data query statement based on each of the normalized syntax trees and each of the execution feature information, and to cluster each of the data query statements based on each of the dual semantic fingerprints to identify groups of repeated calculation logic. The generation module is used to perform operator-level lineage parsing and caliber consistency verification on the data query statements involved in the repeated calculation logic grouping, obtain operator-level processing links and caliber conflict detection results, and derive incremental calculation mode based on the operator-level processing links to generate incremental calculation schemes. The governance module is used to generate a governance script based on the repeated calculation logic grouping, the caliber conflict detection results and the incremental calculation scheme, perform asset governance transformation and task flow gray-scale control processing on each of the data query statements based on the governance script, conduct a health assessment on the data assets constituted by the governed data query statements, and output the asset governance results.

[0013] In addition, to achieve the above objectives, this application also proposes a data asset governance device, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the data asset governance method as described above.

[0014] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the data asset governance method described above.

[0015] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the data asset governance method described above.

[0016] This application provides a data asset governance method, apparatus, device, and computer program product. The data asset governance method acquires multiple data query statements to be governed, performs semantic parsing and feature extraction on each data query statement to obtain a normalized syntax tree and execution feature information corresponding to each data query statement. Then, based on each normalized syntax tree and execution feature information, it generates a dual semantic fingerprint corresponding to each data query statement. Based on the dual semantic fingerprints, it clusters the data query statements to identify groups of repeated computation logic, thereby performing operator-level lineage analysis and consistency verification on the data query statements involved in the repeated computation logic groups, resulting in... The system analyzes operator-level processing links and caliber conflict detection results, derives incremental calculation patterns based on these links, generates incremental calculation schemes, and then generates governance scripts based on the repeated calculation logic grouping, caliber conflict detection results, and incremental calculation schemes. Based on these governance scripts, it performs asset governance transformation and task flow gray-scale control processing on each data query statement, conducts health assessments on the data assets constituted by the governed data query statements, and outputs asset governance results. This transforms data asset governance from passive, experience-driven handling to systematic, proactive governance, solving the problems of difficulty in identifying repeated calculations, difficulty in discovering caliber conflicts, and reliance on manual processes in massive data query statements. Attached Figure Description

[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a flowchart illustrating an embodiment of the data asset governance method of this application. Figure 2 The overall system architecture diagram provided for the data asset governance method of this application; Figure 3 A radar chart providing a data asset health score for the data asset governance method in this application; Figure 4 This is a schematic diagram of the hardware operating environment involved in the data asset governance method in this application embodiment.

[0020] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0021] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0022] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0023] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device, big data service platform, or data asset governance system capable of realizing the above functions. The following description uses a data asset governance system as an example to illustrate this embodiment and the subsequent embodiments.

[0024] Based on this, embodiments of this application provide a data asset governance method, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the data asset governance method of this application, provided in Embodiment 1.

[0025] In this embodiment, the data asset governance method includes steps S11 to S14: Step S11: Obtain multiple data query statements to be processed, and perform semantic parsing and feature extraction processing on each data query statement to obtain the normalized syntax tree and execution feature information corresponding to each data query statement; It should be noted that the multiple data query statements to be addressed refer to the script statements stored in the data development platform used for report calculation and data processing. Semantic parsing refers to the process by which the system deconstructs and identifies the syntactic structure and query logic of the data query statements. Feature extraction refers to the process by which the system extracts relevant runtime parameters of the data query statements during actual operation. The normalized syntax tree refers to the abstract syntax tree after format standardization and logical equivalence rewriting, eliminating structural differences caused by different developers' writing habits. Execution characteristic information refers to the runtime behavior information corresponding to the data query statements when running in the data warehouse engine.

[0026] The purpose of this step is to convert the original, disorganized business scripts into a unified and comparable structured expression, while capturing the characteristics of the actual operational layer and eliminating the problem of subsequent logical recognition errors caused by different writing styles. In one possible implementation, the system can batch retrieve all data query statements under the project through the platform interface; in another possible implementation, the system receives filtering conditions and only retrieves a portion of the data query statements that meet the access time and business domain conditions.

[0027] Specifically, the system first obtains the data query statements to be processed within the target range, then calls the structured query language parser to parse each data query statement into an abstract syntax tree. Next, the system performs normalization processing on the abstract syntax tree, including table alias removal, constant folding and predicate standardization, function equivalence normalization, and join order standardization, to obtain a normalized syntax tree. At the same time, the system calls the data warehouse query engine to obtain the execution plan of the corresponding data query statement, and extracts the table scan row count estimate, data redistribution estimate, operator type sequence, partition pruning information, full table scan flag, and data skew flag from the execution plan, integrating them to form execution feature information.

[0028] For example, the system retrieves the data query statements corresponding to 15,000 reports from an e-commerce analysis project. For two data query statements with completely identical business logic but with table aliases defined as 'a' and 'u' respectively, the structured query language parser parses them to obtain their respective abstract syntax trees. The system then performs normalization processing to uniformly eliminate table aliases, resulting in a normalized syntax tree with completely consistent structure. At the same time, the system retrieves the execution plans of the two data query statements from the Spark query engine, extracts the number of rows scanned, the amount of data redistribution, and partition pruning related tags, and assembles them to obtain the corresponding execution feature information.

[0029] Step S12: Based on each of the normalized syntax trees and each of the execution feature information, generate a dual semantic fingerprint corresponding to each of the data query statements, and cluster each of the data query statements based on each of the dual semantic fingerprints to identify groups of repeated calculation logic. It should be noted that dual semantic fingerprints refer to identifier information formed by combining structural fingerprints and execution feature fingerprints, used to characterize the query logic and operational characteristics of a data query statement. The structural fingerprint refers to the identifier obtained by hashing node information based on a normalized syntax tree, used to characterize the query logic structure. The execution feature fingerprint refers to the identifier obtained by encoding and mapping execution feature information, used to characterize the features at the actual execution level of the query. Clustering refers to the process by which the system groups logically similar data query statements into the same set based on fingerprint similarity. Repeated computation logic grouping refers to a set consisting of multiple semantically equivalent or nearly equivalent data query statements, where statements within the set execute the same or similar business computation logic.

[0030] The purpose of this step is to combine the query logic structure with the actual operating characteristics to identify a large number of scattered repetitive calculation logics in the business, distinguish data query statements that are only similar in text but different in semantics or have the same logic but different execution strategies, and group scripts with the potential for repetitive calculations into groups to provide objects for subsequent governance.

[0031] Specifically, the system traverses the normalized syntax tree by operator nodes, performs layer-by-layer hashing based on node type, child node hash value, and normalized text, and uses the root node hash result as the structural fingerprint. The system performs vector encoding conversion on the execution feature information, and then converts it through a feature mapping algorithm to obtain the execution feature fingerprint. The system concatenates and combines the structural fingerprint and the execution feature fingerprint to obtain a dual semantic fingerprint. The system uses the locality-sensitive hashing algorithm to group and cluster all dual semantic fingerprints, and combines them with preset feature distance judgment rules to aggregate the corresponding repeated calculation logic groups.

[0032] For example, for 23 data query statements in an e-commerce project that calculate the frequency of user purchases and cumulative spending over the past 30 days, the system calculates their respective structural fingerprints based on a normalized syntax tree, generates execution feature fingerprints based on the runtime features extracted from the execution plan, and combines them to obtain a dual semantic fingerprint for each statement. The system uses a locality-sensitive hashing algorithm to compare the distance between the fingerprints and group the 23 data query statements into the same repeated calculation logic group. At the same time, it can also calculate the merging priority score of the group based on the reference frequency and the average daily scan data volume.

[0033] Step S13: Perform operator-level lineage parsing and caliber consistency verification on the data query statements involved in the repeated calculation logic grouping to obtain operator-level processing links and caliber conflict detection results, and derive the incremental calculation mode based on the operator-level processing links to generate an incremental calculation scheme. It should be noted that operator-level lineage analysis refers to the system's process of streamlining field transformation relationships down to the granularity of each operational operator node. An operator refers to the execution unit in a data query statement that performs operations such as filtering, aggregation, association, and projection. The operator-level processing chain refers to the complete flow of a record field from its upstream source table through various operator nodes until the final output field. This chain supports forward tracing, reverse tracing, and cross-layer penetration. Calibration consistency verification refers to the system comparing the processing logic of fields with the same name in different data query statements to determine if there are differences in business statistical calibers. Calibration conflict detection results refer to the output information recording fields with caliber conflicts, conflict types, and affected objects. Incremental calculation mode refers to a calculation execution mode where metrics are only calculated for newly added or changed data, without recalculating all historical data. An incremental calculation scheme refers to an executable processing scheme that includes incremental update logic and table structure-related definitions.

[0034] The purpose of this step is twofold: first, to accurately reconstruct the complete processing logic of fields and proactively identify inconsistencies such as name mismatches; and second, to automatically determine whether indicators can be calculated incrementally based on the characteristics of operators and source table data, and output corresponding executable solutions, eliminating the need for manual indicator analysis and writing of incremental scripts. In one possible implementation, the operator-level processing chain can support tracing from application-layer report fields to the detailed layer source data table; in another possible implementation, the incremental calculation solution can be encapsulated as a declarative materialized definition and managed by the underlying engine.

[0035] Specifically, the system performs semantic annotation on each operator node of the normalized syntax tree corresponding to the data query statement within the repeated calculation logical group, and constructs an operator-level processing link based on the annotated operator nodes; the system assembles the semantic tags of each field based on the operator-level processing link, performs similarity comparison on the semantic tags of the same-named fields in different query statements, and generates a caliber conflict detection result; the system reads the aggregation operator type recorded in the operator-level processing link, and at the same time obtains the data write update attribute of the upstream source data table, combines the two types of information to perform pattern discrimination, derives the incremental calculation pattern, and generates an incremental calculation scheme.

[0036] For example, the system groups the repetitive calculation logic corresponding to the user RFM metric (RFM is a quantitative indicator system used for user value segmentation and behavior analysis, consisting of three dimensions: Recency of the most recent consumption, Frequency of consumption, and Monetary amount of consumption). It then completes semantic annotation of the operator nodes for twenty-three data query statements within each group, constructs an operator-level processing link, and reconstructs the complete transformation process of the cumulative consumption amount field through filtering and summation / aggregation operators. The system assembles semantic tags for the cumulative consumption amount field in each report, and after comparison, finds inconsistencies in the filtering conditions of some reports, outputting the corresponding conflict detection results. The system identifies the aggregation operator as a summation operator and also identifies the upstream order source data table as an append-only write attribute, determining that the metric supports incremental calculation and automatically generating an incremental calculation scheme including an idempotent state table definition and incremental update statements.

[0037] Step S14: Generate a governance script based on the repeated calculation logic grouping, the caliber conflict detection result and the incremental calculation scheme. Perform asset governance transformation and task flow gray-scale control processing on each of the data query statements based on the governance script, and conduct a health assessment on the data assets constituted by the governed data query statements, and output the asset governance result.

[0038] It should be noted that governance scripts refer to executable scripts containing table structure definitions and data update statements, generated based on repetitive calculation logic, caliber correction requirements, and incremental update logic. Asset governance transformation refers to the system's processing of repetitive logic merging, caliber conflict repair, and incremental logic rewriting, completing the transformation of data query statements and corresponding data objects. Task flow canary control processing refers to the system's completion of task link orchestration, enabling shadow parallel verification, and completing the entire control process of switching and having anomaly rollback capabilities while ensuring online business security. Data assets constituted by data query statements after governance refer to the entire asset set after asset governance transformation, including rewritten data query statements, newly created intermediate objects, scheduled tasks, and metadata. Health assessment refers to the system's processing of quantitatively evaluating the overall quality level of data assets based on multi-dimensional asset indicators. Asset governance results refer to the output content including asset health level, governance recommendations, and governance effect trend information.

[0039] The purpose of this step is to transform the previously identified grouping, conflict, and incremental solutions into executable scripts, complete asset transformation under gray-scale security protection, quantitatively evaluate the overall asset quality after governance, and output complete governance outputs, forming a complete closed loop of identification-transformation-evaluation. In one possible implementation, the task flow gray-scale control processing executes a shadow parallel operation mode to perform data consistency comparison; in another possible implementation, the task flow gray-scale control processing automatically performs rollback operations when anomalies are detected, ensuring that the original business is not affected.

[0040] Specifically, the system reads the calculation logic of the repeated calculation logic group, the field correction requirements carried by the caliber conflict detection results, and the update logic of the incremental calculation scheme, and generates a governance script through template filling. The system calls the open interface of the data development platform to load the governance script, completes the rewriting of the query statement logic and the creation of intermediate objects, configures the upstream and downstream dependencies of tasks, enables the shadow parallel running mode to carry out data consistency comparison, and performs task flow gray-scale control processing. The system collects asset statistical information retained during the asset governance transformation and task flow gray-scale control process, extracts multi-dimensional asset indicators, conducts health assessment based on multi-dimensional asset indicators, and outputs asset governance results.

[0041] For example, the system reads the repeated calculation logic grouping information corresponding to the user's RFM indicator, the requirements for the correction of the cumulative consumption amount, and the incremental calculation scheme. It uses a template to fill in and generate a governance script consisting of intermediate table creation statements and incremental update statements. The system calls the open interface of the data development platform to create the user's RFM intermediate object, configures the daily scheduling task at 2:00 AM, enables the shadow parallel mode, and runs the old and new logics in parallel for three days to complete the data consistency verification. After the verification is passed, the data source is switched. The system collects the asset operation statistics after the transformation, extracts multi-dimensional asset indicators corresponding to repetition, reuse rate, query efficiency, consistency of the scope, and life cycle rationality, calculates the score of each dimension, weights them to obtain the comprehensive health score, determines the asset health level, generates corresponding governance suggestions and governance effect trend information, integrates all information and outputs the asset governance results.

[0042] Appendix Figure 2The overall system architecture and data flow process of this solution are demonstrated. The system first receives natural language input through the user interaction layer. This input is then processed by a two-level intent recognition and parameter extraction engine, which performs rule template matching, lightweight classification model classification, and named entity extraction to determine the operation type and target parameters. Subsequently, it concurrently calls an SQL semantic parsing and execution plan feature extraction engine, a dual semantic fingerprint generation and LSH clustering engine, an operator-level lineage parsing and caliber verification engine, and an incremental computation derivation and idempotency guarantee engine. These engines respectively complete query statement normalization and execution feature extraction, repetitive computation logic clustering identification, field-level lineage parsing and caliber conflict detection, and incremental computation pattern derivation and idempotency state table design. The outputs of these four engines are then uniformly integrated into a natural language task flow orchestration and canary-scale switching engine, which automatically completes intermediate table creation, data link orchestration, scheduling configuration, canary-scale switching, and exception rollback. Finally, the governance results are output to a data asset health scoring and continuous optimization module for multi-dimensional health assessment, and a data quality rule automatic discovery module for implicit constraint extraction and rule registration. The data development platform API layer then handles metadata registration, task scheduling, computation execution, and storage management.

[0043] This embodiment transforms massive amounts of data query statements with diverse writing styles into standardized syntax trees and generates dual semantic fingerprints by combining execution feature information. It no longer relies solely on text similarity to identify duplicate calculations. Instead, it leverages operator-level lineage analysis to accurately reconstruct the complete processing and transformation chain of each field, proactively identifying cross-report conflicts, automatically deriving incremental calculation schemes, and further generating governance scripts. Under the security protection of task flow gray-scale control, asset transformation is completed. Finally, multi-dimensional indicators are used to complete a quantitative assessment of asset health. This reduces a significant amount of manual work, such as reviewing scripts, manually creating tables, writing incremental logic, and manually verifying definitions. It shifts from passive manual handling to proactive system-wide data asset governance, reducing reliance on the experience of senior developers, minimizing resource consumption caused by ineffective duplicate calculations within the data warehouse, unifying business statistical definitions, and providing quantitative feedback on the overall quality level after asset governance.

[0044] In one feasible implementation, the step of performing semantic parsing and feature extraction processing on each of the data query statements to obtain the normalized syntax tree and execution feature information corresponding to each of the data query statements includes: Step S21: The data query statements are parsed into abstract syntax trees by a structured query language parser, and the abstract syntax trees retain the query semantic structure of each data query statement. It's important to clarify that a Structured Query Language (SCL) parser is a tool used to perform lexical and syntactic analysis on data query statements, breaking them down into tree-structured data. A data query statement refers to a business script used to perform data filtering, association, and aggregation. An abstract syntax tree (AST) is structured data that records the various operational units and relationships within a query in the form of tree nodes. Query semantic structure refers to the complete business logic expressed by the data query statement, including table references, field selection, filtering conditions, associations, and aggregation logic.

[0045] The purpose of this step is to convert unstructured script text into a machine-readable, machine-processable tree-structured object, removing interference from text formatting while fully preserving the query's computational logic, thus providing a foundational object for subsequent normalization processing. In one possible implementation, the Structured Query Language parser can be implemented using the ANTLR4 tool; in another, it can be implemented using the Apache Calcite component.

[0046] Specifically, the system calls the Structured Query Language parser to load the text of the data query statement to be processed. Inside the parser, lexical analysis and syntax analysis are performed sequentially. Lexical analysis scans the script text to segment lexical units such as keywords, table names, field names, constants, operators, and function identifiers. Syntax analysis recursively assembles the lexical units based on predefined query syntax rules, identifies various operation nodes such as projection, filtering, association, aggregation, and grouping, and builds a hierarchical tree-like node object layer by layer to generate an abstract syntax tree. Each type of operation in the abstract syntax tree corresponds to an independent tree node. The node stores the operation type and input / output reference relationships, completely reproducing the query semantic structure of the original data query statement without modifying the business operation logic.

[0047] Step S22: Perform normalization processing on each of the abstract syntax trees to obtain the normalized syntax tree corresponding to each of the data query statements. The normalization processing includes table alias resolution, constant folding and predicate standardization, function equivalence normalization, and join order standardization. It should be noted that normalization refers to the process of rewriting the internal nodes of the abstract syntax tree (AST) without changing the query business logic, thus eliminating structural differences caused by different developers' writing habits. Table alias resolution refers to replacing custom temporary table aliases in the script with unified identifiers, eliminating structural differences caused by custom aliases. Constant folding refers to pre-computing and simplifying constant expressions that can be pre-calculated. Predicate standardization refers to rewriting semantically equivalent but differently written filtering conditions into a unified expression. Function equivalence normalization refers to mapping functions with the same semantic function but different names to a unified function identifier. Join order standardization refers to rearranging the order of table join nodes without dependencies without changing the join results. The normalized syntax tree is the abstract syntax tree obtained after the above-mentioned multiple types of equivalence rewriting processes.

[0048] The purpose of this step is to eliminate differences in tree structure caused by writing habits, ensure that queries with equivalent business logic are output, and output a syntax tree with a consistent structure, thus preventing subsequent fingerprint recognition from classifying queries with the same logic but different syntax as different queries. In one possible implementation, table alias resolution can assign uniformly numbered aliases according to the order in which the table first appears; in another possible implementation, join order standardization rearranges the join nodes without dependencies according to the lexicographical order of the table names.

[0049] Specifically, the system employs a depth-first traversal technique to traverse all nodes of the abstract syntax tree, sequentially performing four types of equivalence rewriting processes; it performs table alias resolution, traversing table reference nodes and replacing developer-defined aliases with unified identifiers assigned according to the order of their first appearance in the table, while simultaneously updating field references in all downstream nodes; it performs constant folding and predicate standardization, traversing conditional expression nodes, directly calculating and simplifying statically evaluable constant expressions, and uniformly converting semantically equivalent interval filtering predicates into standard left-closed, right-open interval expressions; it performs function equivalence normalization, reading a pre-defined function equivalence mapping table, traversing function nodes, and uniformly replacing semantically equivalent but differently named functions with standard function identifiers from the mapping table; and it performs join order standardization, identifying multi-table join nodes without data dependencies and reordering join child nodes according to the lexicographical order of the table names. All rewriting operations maintain the original query logic unchanged, and a normalized syntax tree is output after rewriting.

[0050] Step S23: Obtain the execution plan of each data query statement through the data warehouse query engine, extract the table scan row count estimate, data redistribution estimate, operator type sequence, partition pruning information, full table scan flag and data skew flag from the execution plan, and integrate them to generate the execution feature information.

[0051] It's important to note that a data warehouse query engine refers to the computing engine used to execute data query statements and perform distributed data reading, filtering, association, and aggregation calculations. An execution plan refers to a distributed execution scheme generated by the data warehouse query engine after parsing the data query statement, recording the complete execution details of data reading, flow, and computation. The table scan row count estimate refers to the engine's prediction of the number of data rows the query needs to read. The data redistribution estimate refers to the engine's prediction of the amount of data that needs to be transferred across nodes during the computation process. The operator type sequence refers to the sequence of various operations performed during query execution, arranged in the order of execution. Partition pruning information refers to information about whether the query hits partition filtering and which partitions were filtered out. The full table scan flag indicates whether the query triggered a direct reading of the entire table without partition filtering. The data skew flag indicates whether the query carries the risk of some nodes processing significantly more data than others. Execution characteristic information refers to a set of features that integrates the above-mentioned operational information, reflecting the behavioral characteristics of the query at the actual operational level.

[0052] The purpose of this step is to obtain features at the actual runtime level of the query, distinguishing queries with the same syntax tree structure but vastly different actual execution efficiencies, and providing runtime-dimensional feature input for dual semantic fingerprinting. In one possible implementation, the system submits a data query statement to the data warehouse query engine for parsing without triggering actual computation, only obtaining the execution plan; in another possible implementation, the system can read historical execution plans already cached in the metadata database.

[0053] Specifically, the system calls the plan parsing interface exposed by the data warehouse query engine, passes in the data query statement text, and sets a switch parameter to parse only and not execute. The engine internally generates a physical execution plan through logical and physical optimization without starting distributed computing tasks. The system recursively traverses the operator tree of the physical execution plan, parsing each physical operator node layer by layer. It reads the estimated number of table scan rows and partition pruning hit status from the table scan operator node, and assigns values ​​to generate partition pruning information and full table scan flags. It parses the estimated value of data redistribution from the data exchange operator node. It records the operator type sequence according to the execution order. It reads the output results of the skew prediction module and generates a data skew flag. All the fields extracted above are encapsulated into structured objects and integrated and assembled to generate execution feature information.

[0054] This embodiment uses a structured query language parser to perform lexical and syntactic analysis, converting the text-based query script into a machine-readable abstract syntax tree. Then, through depth-first traversal of the abstract syntax tree nodes, it sequentially performs table alias resolution, constant folding and predicate standardization, function equivalence normalization, and join order standardization. This eliminates structural differences caused by human writing habits without altering the business logic, ensuring that logically equivalent queries are expressed in a unified syntax tree. Simultaneously, it calls the data warehouse query engine's plan parsing interface to obtain the physical execution plan without triggering actual computation. It recursively traverses the physical operator tree to extract execution feature information related to scanning, redistribution, operator sequences, partitioning, full table scans, and data skew. This allows for the simultaneous capture of query logic semantics and actual execution behavior, avoiding recognition biases caused by relying solely on text comparison for logic identification and improving the accuracy of subsequent repetitive computation logic identification.

[0055] In one feasible implementation, the step of generating dual semantic fingerprints corresponding to each data query statement based on the normalized syntax tree and the execution feature information, and clustering each data query statement based on each dual semantic fingerprint to identify groups of repeated computation logic, includes: Step S31: Using a post-order traversal method, calculate the hash value of each operator node layer by layer according to the node type of each operator node in the normalized syntax tree, the hash value of the child node, and the normalized text, until the hash value of the root node in the normalized syntax tree is obtained, and use the hash value of the root node as the structural fingerprint. It should be noted that post-order traversal refers to a traversal strategy that prioritizes visiting all child nodes of the current node before processing the current node itself during the tree structure traversal. Operator nodes refer to the tree nodes within the normalized syntax tree used to implement table scans, filtering, joins, aggregations, and projections. Node type refers to the operation category corresponding to the operator node, such as table scan, filtering, aggregation, join, and projection. The hash value of a child node refers to the hash result obtained after hashing all child nodes under the operator node. Normalized text refers to the logical description text output after the operator node has been normalized and rewritten. Hash value refers to a fixed-length digest string obtained by compressing multiple types of input information using a hash digest algorithm. The root node refers to the top-level query node in the normalized syntax tree structure. The structural fingerprint refers to a digest identifier, using the root node's hash value as the output, used to characterize the logical structure of the entire data query statement.

[0056] The purpose of this step is to generate a unique digest that represents the query logic based on the operator node information of the normalized syntax tree. Logically equivalent normalized syntax trees can output the same structural fingerprint, facilitating the rapid comparison and matching of query logic in subsequent implementations. In one possible implementation, the hash operation can use the SHA-256 digest algorithm; in another possible implementation, the hash operation can use Merkle tree hashing to perform node digest calculation layer by layer.

[0057] Specifically, the system uses the root node of the normalized syntax tree as the traversal entry point to perform post-order traversal processing, recursively accessing all child nodes of the current operator node first, calculating the hash value of all child nodes and caching the results; after all child nodes of an operator node have completed hash value calculation, the system reads the node type of the current operator node, all cached child node hash values, and the normalized text corresponding to the current operator node, and concatenates these three types of information to obtain the node input string; the system calls the hash digest algorithm to perform compression operation on the node input string, outputs the hash value corresponding to the current operator node and caches it locally; following this recursive logic, the system performs back-substitution calculation layer by layer until the hash operation of the root node of the normalized syntax tree is completed, and the hash digest string output by the root node is directly used as the structural fingerprint.

[0058] Step S32: Perform vector encoding and conversion processing on the multiple runtime features included in the execution feature information to generate execution feature vectors, and convert each execution feature vector into an execution feature fingerprint through a feature mapping algorithm; It should be noted that execution feature information refers to the set of estimated table scan row counts, estimated data redistribution amounts, operator type sequences, partition pruning information, full table scan flags, and data skew flags extracted from the execution plan of the data query statement. Vector encoding conversion processing refers to the system's process of uniformly converting discrete, different data type execution features into numerical dimension vectors. An execution feature vector is a multidimensional vector object composed of multiple numerical dimensions, used to characterize query execution behavior. A feature mapping algorithm refers to a mapping processing algorithm that can map high-dimensional vectors into fixed-length summaries. An execution feature fingerprint refers to the summary identifier obtained after the execution feature vector is converted by the mapping algorithm, used to characterize the feature differences at the execution level of the data query statement.

[0059] The purpose of this step is to unify the heterogeneous operational features into vector representations, and then compress them into summary fingerprints. This enables rapid comparison between different query behaviors, distinguishing data query statements with identical syntax but significantly different actual operational behaviors. In one possible implementation, the feature mapping algorithm can be the SimHash algorithm; in another possible implementation, the feature mapping algorithm can be the MinHash algorithm.

[0060] Specifically, the system reads all runtime feature items contained within the execution feature information. For Boolean-type flag features, it converts the full table scan flag, data skew flag, and partition pruning hit flag into Boolean values. For numerical features, it performs logarithmic scaling normalization on the estimated number of table scan rows and the estimated amount of data redistribution to eliminate interference caused by differences in numerical magnitude. For sequence-type features, it performs one-hot encoding on operator-type sequences. The system then concatenates all the converted values ​​in an ordered manner to generate a fixed-dimensional execution feature vector. The system calls a feature mapping algorithm to perform hash weighted operations on each dimension of the execution feature vector, compressing the high-dimensional vector mapping into a fixed-length binary digest string, which is the execution feature fingerprint.

[0061] Step S33: Combine the structural fingerprints and the execution feature fingerprints by concatenating fields to obtain dual semantic fingerprints, and perform grouping and clustering processing on all dual semantic fingerprints using the local sensitive hashing algorithm, and aggregate them according to the preset feature distance judgment rule to obtain repeated calculation logic groups.

[0062] It should be noted that Locality Sensitive Hashing (LSH) refers to a clustering algorithm that enables fast retrieval of high-dimensional data based on approximate similarity. Grouping clustering refers to the process of grouping highly similar data queries into the same set based on the similarity between fingerprints. Preset feature distance judgment rules refer to pre-configured distance threshold conditions used to determine whether queries corresponding to two dual semantic fingerprints are counted repeatedly.

[0063] The purpose of this step is to fuse logical structure fingerprints and operational feature fingerprints to form dual semantic fingerprints. This allows for rapid clustering of massive queries using locality-sensitive hashing, grouping logically equivalent scripts with similar operational features into the same group and identifying duplicate computation objects to be addressed. In one possible implementation, Hamming distance is used as the feature distance metric; in another, after obtaining the logical groups for duplicate computations, a merging priority score for each group can be calculated based on citation frequency and average daily scan data volume.

[0064] Specifically, the system concatenates the structural fingerprint string corresponding to a single data query statement with the binary digest string of the execution feature fingerprint according to a fixed field order to obtain the complete dual semantic fingerprint corresponding to that data query statement. The system inputs the dual semantic fingerprints of all data query statements to be governed into the Locality Sensitive Hash Algorithm. The algorithm internally constructs hash buckets and performs bucket mapping on the fingerprints, mapping fingerprints with close distances into the same hash bucket. The system traverses all dual semantic fingerprints in each hash bucket and calculates the feature distance between each pair of fingerprints in the bucket according to the preset feature distance judgment rules. The data query statements corresponding to dual semantic fingerprints whose feature distance meets the threshold condition are aggregated into the same set. After aggregation, multiple logical groups with repeated calculations are output.

[0065] This embodiment obtains a structural fingerprint representing the query logic by recursively calculating the hash of operator nodes using post-order traversal. It does not rely on text comparison and can identify queries with different writing styles but equivalent logic. It normalizes and encodes heterogeneous multiple operational features to generate execution feature vectors, and compresses them using a feature mapping algorithm to obtain execution feature fingerprints, capturing the differences at the actual execution level of the query. It concatenates the two types of fingerprints to obtain a dual semantic fingerprint, and then uses the locality-sensitive hashing algorithm to complete the bucketing and clustering of massive queries. It uses a preset feature distance judgment rule to collect the repetitive calculation logic groups, thus taking into account both the semantic logic of the query and the actual operation behavior. This solves the defect of inaccurate identification by traditional text similarity recognition methods and efficiently locates script groups with repetitive calculation problems in a massive set of query statements.

[0066] In one feasible implementation, the step of performing operator-level lineage parsing and caliber consistency verification on the data query statements involved in the repeated calculation logical grouping to obtain operator-level processing links and caliber conflict detection results, and deriving the incremental calculation mode based on the operator-level processing links to generate an incremental calculation scheme, includes: Step S41: Semantic annotation is performed on each operator node in the normalized syntax tree corresponding to the data query statement involved in the repeated calculation logic grouping. Based on the annotated operator nodes, an operator-level processing link from the output field to the source table field is constructed. The operator-level processing link supports forward tracing, reverse tracing, and cross-layer penetration. It should be noted that semantic annotation refers to the system's extraction and binding of operational information from operator nodes within the normalized syntax tree (NST). An operator node is a tree node in the NST that performs table scans, filtering, joins, aggregations, and projections. An operator-level processing link refers to the complete flow of data, with the operator node as the smallest granularity, recording all transformation logic passed through the output field and tracing back to the upstream source table field. Forward tracing refers to the ability to query which downstream output fields are affected by an upstream source field. Reverse tracing refers to the ability to trace which upstream source table fields and intermediate operators originate from a downstream output field. Cross-layer penetration refers to the ability of the link query to bypass intermediate data table layers and directly query field flow relationships between the detail layer and the application report layer.

[0067] The purpose of this step is to reduce the granularity of lineage analysis to the operator node level, no longer limiting it to table-level or field-level lineage. This fully reconstructs the filtering, aggregation, and transformation logic experienced by each output field, providing a complete logical basis for subsequent caliber comparisons and incremental pattern derivation. In one possible implementation, the semantic annotation content can include the operator's input and output field sets, filtering predicates, and aggregation semantics. In another possible implementation, the operator-level processing chain can be persistently stored in the metadata storage module for repeated queries.

[0068] Specifically, the system traverses all operator nodes of the normalized syntax tree corresponding to each data query statement within the repetitive computation logic group; for each operator node, it parses and extracts the operator type, operator input field set, operator output field set, filter conditions carried by the operator, and aggregation operation information, and binds the above information to the corresponding operator node to complete semantic annotation; the system uses the output field as the link endpoint, and recursively traverses backward along the input-output reference relationship between fields between operator nodes, linking each annotated operator node through level by level upward, all the way back to the original field of the upstream source data table; the system assembles the linked operators and field flow relationships to form an operator-level processing link; the system maintains upstream and downstream field mapping indexes within the link, and realizes forward tracing, reverse tracing, and cross-layer penetration query capabilities through the indexes.

[0069] Step S42: Generate semantic tags corresponding to each field according to the operator-level processing link, perform similarity calculation and comparison on each semantic tag, and generate caliber conflict detection results based on the similarity comparison results; It should be noted that semantic tags refer to the tag text obtained by the system based on the extraction of source field information, operator filtering conditions, and aggregation logic from the operator-level processing link, used to fully describe the business statistical logic of an output field. Similarity comparison refers to the operation of comparing the degree of content overlap between different semantic tags using a set similarity calculation method. Scope conflict refers to the phenomenon where fields with the same name in different data query statements have inconsistent actual statistical filtering conditions and aggregation logic, resulting in inconsistent business statistical scope. Scope conflict detection results refer to the structured output results that record the conflicting field identifier, conflict source, and semantic tag information.

[0070] The purpose of this step is to solidify the complete processing logic of the fields into comparable semantic tags, identify fields with the same name but different meanings through tag similarity, and proactively discover discrepancies in reporting standards. In one possible implementation, fields with different names but the same meaning can also be identified based on semantic tags; in another possible implementation, the discrepancy detection results can also include a list of downstream affected reports obtained by tracing the conflicting fields forward.

[0071] Specifically, the system traverses each output field in the operator-level processing chain, sequentially extracting the source table and source field information, the filtering conditions carried by each operator node, and the aggregation operation logic within the chain. It then concatenates and assembles multiple information segments to generate semantic tags for the corresponding output fields. The system filters fields with the same name across different data query statements, extracts their corresponding semantic tags, calls a set similarity calculation method, compares the feature elements of the two sets of semantic tags, and outputs a semantic similarity value. The system reads a preset similarity threshold, compares the semantic similarity value with the preset similarity threshold, and marks fields with similarity values ​​below the threshold as conflicting objects. Finally, the system summarizes all marked conflicting objects, records the conflicting field name, the corresponding query statement, and the corresponding semantic tag content, and generates a conflict detection result.

[0072] Step S43: Read the aggregation operator type of the operator-level processing link record, and at the same time obtain the data write update attribute of the upstream source data table. Combine the aggregation operator type and the data write update attribute to perform pattern discrimination processing, derive the incremental calculation mode, and generate the incremental calculation scheme.

[0073] It should be noted that the aggregation operator type refers to the category of aggregation operation recorded in the operator-level processing chain, such as summation, counting, maximum value, and minimum value. The upstream source data table refers to the underlying business data table that provides the raw calculation data for data query statements. Data write update attributes refer to the data update behavior characteristics of the source data table, such as append-only writes or support for update modifications. Pattern discrimination processing refers to the logical discrimination process by which the system combines the aggregation operator type and the source table write attributes to determine whether the indicator supports incremental calculation. Incremental calculation mode refers to the calculation execution mode where the indicator only performs calculations on newly added or changed data, without recalculating all historical data. Incremental calculation scheme refers to an executable processing scheme that includes the definition of an idempotent state table structure and incremental update logic statements.

[0074] The purpose of this step is to automatically determine whether an indicator can be incrementally calculated by combining operators and source table attributes, eliminating the need for manual analysis of indicator characteristics and outputting a complete and implementable incremental calculation plan, thereby reducing the manual cost of indicator modification. In one possible implementation, the incremental calculation plan can be encapsulated as a declarative materialized definition and managed by the underlying data warehouse engine; in another possible implementation, for indicators that do not meet the incremental conditions, the incremental calculation plan can be marked as suggesting full calculation.

[0075] Specifically, the system reads the aggregation operator type recorded in the operator-level processing link; the system accesses the metadata module to read the data write update attribute of the upstream source data table of the link; the system inputs the aggregation operator type and the source data table write update attribute into a preset discrimination rule set to carry out pattern discrimination processing; when the aggregation operator belongs to the incremental aggregation type and the upstream source data table is an append-only write attribute, it is judged to support incremental calculation, and the corresponding incremental calculation mode is derived; according to the incremental calculation mode, the system generates an incremental calculation scheme containing an idempotent state table structure and incremental update execution statements by template filling.

[0076] This embodiment constructs an operator-level processing link with forward tracing, reverse tracing, and cross-layer penetration capabilities by semantically annotating each operator node, using the operator as the smallest granularity. This breaks through the limitations of traditional table-level and field-level lineage granularity. Based on the processing link, it assembles field semantic tags and automatically identifies caliber conflicts between fields with the same name across reports through similarity comparison, outputting caliber conflict detection results. Then, it reads the aggregation operator type of the link record, combines it with the data write update attribute execution mode judgment of the upstream source data table, automatically derives the incremental calculation mode, and generates an incremental calculation scheme that can be directly implemented and used. This can proactively discover caliber inconsistencies hidden within data assets and automatically complete the incremental scheme derivation, greatly reducing the workload of manually reading scripts and manually analyzing indicator logic.

[0077] In one feasible implementation, the step of generating semantic tags corresponding to each field based on the operator-level processing link, performing similarity calculations and comparisons on each semantic tag, and generating caliber conflict detection results based on the similarity comparison results includes: Step S51: Sequentially perform text concatenation processing on the source table source field information, operator filtering condition content, and aggregation operation logic content in the operator-level processing link to assemble the semantic tags of the corresponding fields. It should be noted that source table and source field information refers to the name of the underlying source data table and the original field names involved in the calculation. Operator filtering condition content refers to the text of the conditional expressions carried by each filtering operator in the chain. Aggregation operation logic content refers to the aggregation function type and grouping key information recorded in the aggregation operator in the chain. Text concatenation processing refers to the process of concatenating multiple segments of logical information into strings according to a fixed format and order. Semantic tags refer to text identifiers that fully describe all the processing logic of a field, used to characterize the field's business statistical scope. In one possible implementation, the filtering conditions and aggregation logic are standardized and normalized during the concatenation process; in another possible implementation, semantic tags can be persistently saved to the metadata storage module for repeated calls.

[0078] Specifically, the system traverses the operator-level processing links corresponding to the target output field, extracts the source field information of the source table in sequence according to the flow order of the link from the upstream source table to the downstream output field, then collects the operator filtering condition content corresponding to all filtering operators in the link in sequence, and then extracts the aggregation operation logic content corresponding to the aggregation operator. The system concatenates the source field information of the source table, the operator filtering condition content, and the aggregation operation logic content into strings in sequence according to a preset fixed concatenation template. During the concatenation process, the condition expression text is standardized and rewritten to eliminate irrelevant format symbols such as spaces and line breaks, and the semantic tags corresponding to the output field are assembled and generated.

[0079] Step S52: For any two semantic tags corresponding to the same field across query statements, use a set similarity calculation method to compare the features of each semantic tag and output the semantic similarity value. It should be noted that "fields with the same name across query statements" refers to fields whose names are completely identical in the output of two different data query statements, but whose processing logic may differ. The set similarity calculation method refers to the operation of decomposing semantic tags into several logical feature units and obtaining similarity by calculating the overlap ratio of feature units. The semantic similarity value refers to a numerical value used to quantify the degree of similarity between two fields in terms of statistical scope. In one possible implementation, the set similarity calculation method uses the Jaccard similarity algorithm; in another possible implementation, differentiated weights can be configured for different types of feature units to complete the weighted similarity calculation.

[0080] Specifically, the system filters out two sets of output fields that belong to different data query statements but have the same field name, and reads the semantic tags corresponding to each of them; the system segments the two sets of semantic tags according to logical delimiters, and decomposes them into multiple sets of independent logical feature units; the system constructs feature sets from the feature units obtained from the two sets of tags respectively; the system calls the set similarity calculation method to count the number of intersection units and the number of union units of the two feature sets, completes the calculation according to the set similarity formula, and outputs the semantic similarity value in the range of 0 to 1.

[0081] Step S53: Read the preset similarity discrimination threshold, compare each semantic similarity value with the preset similarity discrimination threshold, and generate a caliber conflict detection result by marking field objects that exceed the threshold range.

[0082] It should be noted that the preset similarity threshold refers to a pre-configured value used as a boundary standard to determine whether two fields with the same name have a conflict of meaning. A field object refers to a pair of fields with the same name across query statements. Marking field objects exceeding the threshold means that when the semantic similarity value is lower than the preset similarity threshold, the group of fields is marked as conflicting. The meaning conflict detection result refers to structured output data that records information such as the names of the conflicting fields, the query statements involved in the comparison, the two semantic tags, and the semantic similarity value. In one possible implementation, the meaning conflict detection result may also include a list of downstream affected reports obtained through forward tracing; in another possible implementation, differentiated preset similarity thresholds can be configured for different business domains.

[0083] Specifically, the system reads the preset similarity discrimination threshold from the configuration module; compares each set of semantic similarity values ​​output in step S52 with the preset similarity discrimination threshold; when the semantic similarity value is less than the preset similarity discrimination threshold, the system marks the same-name field objects across query statements as conflict objects; the system collects all marked field objects, records the conflict field name, the corresponding data query statement identifier, two semantic labels, and semantic similarity values, organizes them into a structured dataset, and generates conflict detection results.

[0084] This embodiment extracts source table field information, operator filtering conditions, and aggregation operation logic from the operator-level processing chain, and assembles them into semantic tags that can completely represent statistical calibers through text concatenation processing. The semantic tags are then decomposed into feature units, and a set similarity calculation method is used to complete the quantitative comparison of calibers, outputting semantic similarity values. The semantic similarity values ​​are compared with a preset similarity discrimination threshold, and fields that do not meet the similarity conditions are marked. The information is summarized to generate caliber conflict detection results, so as to transform abstract business caliber differences into calculable and comparable tags and values, realize the automatic identification of caliber conflicts of the same field across reports, and eliminate the need for manual reading of scripts to compare business logic one by one.

[0085] In one feasible implementation, the step of generating a governance script based on the repeated calculation logic grouping, the caliber conflict detection results, and the incremental calculation scheme; performing asset governance transformation and task flow gray-scale control processing on each of the data query statements based on the governance script; conducting a health assessment on the data assets constituted by the governed data query statements; and outputting asset governance results, including: Step S61: Read the calculation logic of the repeated calculation logic group, the field correction requirements of the caliber conflict detection results, and the update logic of the incremental calculation scheme, and generate a governance script containing table structure definitions and data update statements through template filling. It should be noted that the computational logic of repeated calculation logic grouping refers to the business processing logic shared by multiple data query statements within the repeated calculation logic group, including source table references, filtering conditions, aggregation and grouping rules. Template filling refers to the system calling a pre-written script template, replacing and filling business parameters and logic fragments into the template placeholder positions to generate an executable script. Table structure definition refers to the table creation description statements for creating intermediate data tables and idempotent state tables. Data update statements refer to executable statements used to complete incremental data writing and data merging updates. Governance scripts refer to a complete set of executable scripts that integrate table structure definitions and data update statements to complete asset transformation.

[0086] The purpose of this step is to convert the business logic, caliber correction rules, and incremental refresh logic generated in the previous process into machine-executable script text through a template mechanism, saving the workload of manually writing table creation and update statements. In one possible implementation, the script template is divided into intermediate table templates, idempotent state table templates, and incremental update statement templates; in another possible implementation, the governance script is generated along with output script comments, recording the script's source and governance basis.

[0087] Specifically, the system reads the common business calculation logic extracted from the repeated calculation logic group, extracts the field correction requirements obtained from the parsing of the caliber conflict detection results, and reads the incremental update logic carried by the incremental calculation scheme. The system loads a set of preset script templates, with placeholders reserved inside the templates for table names, field lists, filtering conditions, aggregation logic, idempotent fields, and update logic. The system replaces and fills the read common calculation logic, field definitions after field correction, and incremental update logic into the corresponding placeholder positions in the template. After the template is rendered, the system integrates and outputs a complete governance script that includes intermediate table structure definitions, idempotent state table definitions, and incremental data update statements.

[0088] Step S62: Call the open interface of the data development platform to load the governance script, complete the rewriting of the query statement logic and the creation of intermediate objects, configure the upstream and downstream dependencies of the task, synchronously enable the shadow parallel running mode to carry out data consistency comparison, and perform gray-scale control processing of the task flow. It should be noted that the data development platform's open interface refers to the remote call interface provided by the data development platform, supporting operations such as script submission, data table creation, and task configuration. Query statement logic rewriting refers to modifying existing data query statements, replacing repetitive calculation logic with references to newly created intermediate objects. Intermediate objects refer to intermediate data tables and idempotent state tables created after the governance script is executed. Task upstream and downstream dependencies refer to the sequential execution constraints between scheduled tasks, defining that the current task must wait for the upstream task to complete before starting. Shadow parallel operation mode refers to a mode in which new governance tasks and existing business tasks run independently, producing results separately without interference. Data consistency comparison refers to comparing and verifying the output results of the new and old sets of tasks. Task flow canary release management refers to completing the entire management process—including object creation, task configuration, parallel verification, secure switching, and rollback in case of exceptions—without directly replacing online business.

[0089] The purpose of this step is to automatically deploy objects and tasks using the platform interface, perform result verification through shadow parallel mode, and complete governance and transformation while ensuring the stability and security of online business, thus avoiding the risk of data errors caused by direct deployment. In one possible implementation, the shadow parallel operation mode supports configuring multi-dimensional verification rules, including total row count verification, key indicator summary value verification, and sampling field-by-field comparison; in another possible implementation, the task flow canary control process does not perform data source switching when verification fails, and retains the original business tasks to continue running.

[0090] Specifically, the system accesses the data development platform's open interface via network calls, passing in the governance script text. The platform executes the script to create intermediate objects. The system reads the original data query statements within the repetitive calculation logic group, rewrites the internal calculation logic of the statements, replaces the original repetitive subqueries with reading the newly created intermediate objects, and submits the rewritten query statements to the data development platform. The system parses the upstream data tasks corresponding to the intermediate objects and configures the upstream and downstream dependencies of the current governance tasks. The system enables a shadow parallel running mode, simultaneously scheduling the original business tasks and the newly created governance tasks to run independently. The system pulls the output results of the two sets of tasks and performs data consistency comparisons, including row count comparison, key summary value comparison, and random sampling field-by-field comparison. After the consistency comparison passes, the business report data source is switched. If the comparison fails, an alarm is triggered, and the switch is not performed. This entire process is used to perform gray-scale control of the task flow.

[0091] Step S63: Collect various asset statistical information retained during the asset governance transformation process and the task flow gray-scale control process, extract multi-dimensional asset indicators, conduct health assessment processing on the multi-dimensional asset indicators, and output asset governance results.

[0092] It should be noted that asset statistics refer to the operational records generated and stored in the metadata module during asset governance transformation and task flow gray-scale control processing, including repetitive pattern statistics, task operation records, access statistics, conflict records, and storage usage records. Multi-dimensional asset indicators refer to various quantitative indicators used to measure data asset quality, derived from asset statistics. Health assessment processing refers to the process of quantitatively judging the overall asset quality based on multi-dimensional asset indicators and according to preset assessment rules. Asset governance results refer to the structured result data output after assessment, which may carry health level, governance recommendations, and governance effect trend information.

[0093] The purpose of this step is to collect the raw statistical records generated throughout the governance process, process them into standardized evaluation indicators, quantitatively assess the overall quality of data assets after governance, and output complete governance output results, thus achieving a closed loop of governance and evaluation. In one possible implementation, asset statistical information is synchronously and persistently stored in the metadata storage module for historical backtracking; in another possible implementation, the health assessment process can output the raw values ​​required for visualization.

[0094] Specifically, the system accesses the metadata storage module to read all asset statistical information retained during asset governance transformation and task flow gray-scale control. The system filters and converts the original statistical records to calculate the corresponding indicator values ​​for redundancy, reuse rate, query efficiency, consistency of scope, and reasonableness of lifecycle, and combines them to form multi-dimensional asset indicators. The system reads preset evaluation rules, inputs the multi-dimensional asset indicators into the evaluation process to carry out health assessment, calculates the comprehensive score, determines the health level, and generates corresponding governance suggestions when the score is lower than the threshold. The system compares the score change trend information before and after governance. The system integrates the health level, governance suggestions, and governance effect trend information to output the asset governance results.

[0095] This embodiment integrates repetitive calculation logic, field correction requirements, and incremental update logic. It utilizes template filling technology to automatically generate governance scripts containing table structure definitions and data update statements, eliminating the need for manual script writing. It automatically completes intermediate object creation, rewriting of existing query statements, and task dependency configuration by calling the data development platform's open interface. Data consistency comparison is performed using a shadow parallel execution mode, and online asset transformation is completed through task flow canary control, reducing the business risks associated with direct changes. Asset statistical information retained throughout the governance process is collected, converted into multi-dimensional asset indicators, and subjected to health assessment processing. The resulting asset governance output includes levels, recommendations, and trends, achieving a complete closed loop from logic identification and script generation to security transformation and quality assessment. This reduces a significant amount of manual table creation, configuration scheduling, and effect statistics work, achieving automated data asset governance and quantifying the overall governance effect while ensuring the security and stability of online business.

[0096] In one feasible implementation, the step of performing a health assessment on the multi-dimensional asset indicators and outputting asset governance results includes: Step S71: Calculate the duplication score, reuse rate score, query efficiency score, consistency score, and lifecycle rationality score based on the multi-dimensional asset indicators. It should be noted that the multi-dimensional asset metrics refer to a set of metrics composed of redundancy metrics, reuse rate metrics, query efficiency metrics, consistency metrics, and lifecycle rationality metrics. The redundancy score measures the severity of duplicate calculations in data query statements within a project; a lower percentage of duplicate calculations results in a higher score. The reuse rate score measures the frequency of newly created intermediate objects being referenced in downstream reports; more downstream references result in a higher score. The query efficiency score measures the performance of report task execution and data query operation; smaller scan data volumes and shorter execution times result in a higher score. The consistency score measures the degree of uniformity in the overall field definitions of the asset; fewer conflicting fields result in a higher score. The lifecycle rationality score measures the degree of match between the data table storage lifecycle configuration and actual access; a lower percentage of cold data results in a higher score. In one possible implementation, the output range for each dimension score is set to 0-100 points; in another possible implementation, independent score conversion rules can be configured for different business projects.

[0097] Specifically, the system reads the original indicator values ​​corresponding to the multi-dimensional asset indicators; the system calls the score conversion function corresponding to each dimension, and for the duplication indicator, it converts and outputs the duplication score based on the proportion of repeated calculation patterns; for the reuse rate indicator, it converts and outputs the reuse rate score based on the average number of times the intermediate object is referenced downstream; for the query efficiency indicator, it converts and outputs the query efficiency score by combining the average amount of data scanned by the task and the task execution time; for the consistency indicator, it converts and outputs the consistency score based on the number of unresolved consistency conflicts; for the lifecycle rationality indicator, it converts and outputs the lifecycle rationality score based on the proportion of cold data; each dimension completes the calculation separately and outputs the independent score results for the five dimensions.

[0098] In one embodiment, the health scoring model calculates the health score of data assets from five dimensions: Repeatability score R (weight 20%): Calculates the percentage of repeated calculation patterns within the project based on the results of dual semantic fingerprint clustering.

[0099]

[0100] In the formula: the total number of reports refers to the report list of the data development platform; the number of reports with repeated patterns refers to the results of dual semantic fingerprint clustering; the report scan volume refers to the total volume of the execution plan TableScan.bytes. The lower the proportion of repeated patterns, the higher the score.

[0101] Reuse Rate Score U (weight 20%): Calculates the average number of times the intermediate table is referenced by the downstream report. U = 100×min(average downstream citations / target citations, 1) In the formula: the average number of downstream references comes from the metadata lineage system, and the target reference count is 5 times by default. The higher the reuse rate, the higher the score.

[0102] Query efficiency score Q (weight 20%): Calculated based on the number of rows scanned, shuffle amount, and execution time in the execution plan. Q = 100 × (1 - normalized efficiency index) In the formula: Normalized efficiency index = 0.4 × Scan efficiency index + 0.3 × Shuffle efficiency index + 0.3 × Time consumption efficiency index; Scan efficiency index = min(average number of scan lines / 1 billion, 1); Shuffle efficiency index = min(average amount of shuffle / 100GB, 1); Time consumption efficiency index = min(average time consumption / 300 seconds, 1); The higher the efficiency, the higher the score.

[0103] Caliber consistency score C (weight 20%): Calculated based on caliper conflict detection results. C = 100 × (1 - caliber collision density) ×

[0104] Caliber conflict density = Number of conflicting fields / Total number of fields; =1 -

[0105] In the formula: the number of conflicting fields comes from the conflict detection results, and the total number of fields comes from the metadata field list; the fewer the conflicts, the higher the score.

[0106] Lifecycle reasonableness score L (weight 20%): Calculated based on the ratio of table partition storage duration to access frequency in the past 30 days, identifying cold data and deducting points accordingly. L = 100 × (1 - percentage of cold data) ×

[0107] In the formula: Cold data percentage = Cold data storage volume / Total storage volume; Cold data = Data partitions that have not been accessed in the past 30 days. Cold data refers to metadata collected from the source of the total storage volume indicator.

[0108] Overall health score: H = 0.2 R + 0.2 U + 0.2 Q + 0.2 C + 0.2 L Then, output the health level according to the score range: H ≥ 85: Excellent (green); 70 ≤ H<85: Good (blue); 55 ≤ H<70: Average (yellow); H<55: Poor (red).

[0109] For example, after a round of asset governance, the original values ​​of multi-dimensional asset indicators in an e-commerce analytics project were as follows: duplicate patterns accounted for 18.5%, the average number of downstream references to intermediate tables was 2.3, the execution time for query P99 was 45 seconds, there were 7 sets of unresolved conflicts, and 32% of cold data had not been accessed for 30 days. The system called the corresponding conversion functions to calculate the following scores: duplicateness score 62, reuse rate score 55, query efficiency score 58, consistency score 48, and lifecycle reasonableness score 45. These can be used as a reference. Figure 3 .

[0110] Step S72: The repetition score, reuse rate score, query efficiency score, consistency score, and lifecycle rationality score are weighted and summed according to preset weights to obtain a comprehensive health score. The comprehensive health score is then compared with a preset level range to determine the corresponding health level. It should be noted that the preset weights refer to the pre-configured weight coefficients assigned to the five evaluation dimensions, used to characterize the importance of different dimensions in the overall asset quality assessment. Weighted summation refers to the numerical calculation of multiplying the scores of each dimension by their corresponding weights and then summing the results. The overall health score refers to the total score reflecting the overall quality level of the entire data asset set. Pre-set grade intervals refer to several pre-divided score intervals, each corresponding to a type of asset health level. Health level refers to a level label used to visually identify the overall quality of the asset, such as excellent, good, average, or poor. In one possible implementation, the preset weights for the five dimensions are all set to 0.2; in another possible implementation, the weights of each dimension can be adjusted according to business requirements.

[0111] Specifically, the system reads the preset weights for each dimension stored in the configuration module; the system multiplies the repetition score, reuse rate score, query efficiency score, consistency score, and lifecycle rationality score by their respective preset weights, and then sums all the product results to calculate and output the comprehensive health score; the system reads the preset level range configuration, compares and matches the comprehensive health score with each level range in turn, determines which score range the comprehensive health score falls into, and outputs the health level corresponding to that range.

[0112] For example, the preset weights are configured as follows: redundancy 0.2, reuse rate 0.2, query efficiency 0.2, consistency of definition 0.2, and lifecycle rationality 0.2; the scores for the five dimensions are 62, 55, 58, 48, and 45, respectively. The system performs a weighted summation operation: 62×0.2 + 55×0.2 + 58×0.2 + 48×0.2 + 45×0.2, resulting in a comprehensive health score of 53.6; the preset level range configuration is: ≥85 points is excellent, 70 to 84 points is good, 55 to 69 points is average, and <55 points is poor; 53.6 falls into the range of less than 55 points, and the system determines the corresponding health level as poor.

[0113] Step S73: When the overall health score is lower than the preset health threshold, governance suggestions are generated based on the duplication score, the reuse rate score, the query efficiency score, the consistency score, and the lifecycle rationality score. The governance suggestions include duplicate merging suggestions, incremental transformation suggestions, cold data archiving suggestions, and consistency conflict repair suggestions. It should be noted that the preset health threshold refers to a pre-set score threshold. When the overall health score falls below this threshold, it indicates insufficient asset quality, and corresponding optimization suggestions should be output. The duplicate merging suggestion is output when the duplicate score is low, suggesting optimizations for merging duplicate calculation logical groups. The incremental transformation suggestion is output when the query efficiency score is low, suggesting optimizations for transforming full calculation tasks into incremental calculations. The cold data archiving suggestion is output when the lifecycle reasonableness score is low, suggesting optimizations for archiving cold data tables that have not been accessed for a long time. The caliber conflict remediation suggestion is output when the caliber consistency score is low, suggesting optimizations for handling unresolved caliber conflict fields.

[0114] The purpose of this step is to provide targeted governance optimization suggestions based on the low scores of each sub-dimension when the overall asset quality fails to meet standards, guiding subsequent secondary governance work. In one possible implementation, the governance suggestions may also include identification information of the corresponding object to be addressed; in another possible implementation, if the overall health score is higher than or equal to a preset health threshold, no governance suggestions are generated.

[0115] Specifically, the system reads a preset health threshold and compares the overall health score with the preset health threshold. When the overall health score is lower than the preset health threshold, the system compares the scores of the five dimensions with the warning scores within each dimension. When the duplication score is lower than the dimension warning score, a duplication merging suggestion is generated. When the query efficiency score is lower than the dimension warning score, an incremental improvement suggestion is generated. When the consistency score is lower than the dimension warning score, a conflict resolution suggestion is generated. When the lifecycle rationality score is lower than the dimension warning score, a cold data archiving suggestion is generated. The system summarizes one or more generated prompts to form a complete governance suggestion.

[0116] For example, the preset health threshold is set to 55, and the overall health score is 53.6, which is lower than the preset health threshold; the warning scores for each dimension are uniformly set to 60; the repetition score is 62, which is higher than the warning score, so no corresponding suggestions are output; the reuse rate score is 55, which is lower than the warning score; the query efficiency score is 58, which is lower than the warning score, so incremental improvement suggestions are output; the consistency score is 48, which is lower than the warning score, so suggestions for resolving consistency conflicts are output; the lifecycle rationality score is 45, which is lower than the warning score, so suggestions for cold data archiving are output; the system summarizes the governance suggestions, including incremental improvement suggestions, consistency conflict resolving suggestions, and cold data archiving suggestions, and also includes the object identifiers of the reports and data tables to be processed.

[0117] Step S74: Obtain the change in health score before and after this governance operation to generate governance effect trend information, and use the health level, the governance suggestion and the governance effect trend information as the asset governance result.

[0118] It should be noted that the health score before and after this governance operation refers to the historical comprehensive health score before the governance was implemented, and the newly calculated comprehensive health score after the completion of this governance. Governance effect trend information refers to information recording the score difference before and after governance, and the changes in scores for each dimension, used to intuitively reflect the changes in asset quality brought about by this governance. Asset governance results refer to a structured dataset integrating all assessment outputs, which can be read, displayed, or persistently saved by upper-level modules. In one possible implementation, the asset governance results will be persistently written to the metadata storage module for subsequent historical retrospective use; in another possible implementation, the governance effect trend information can also record the changes in scores for each sub-dimension before and after governance.

[0119] Specifically, the system reads the historical comprehensive health score saved before the current governance operation was executed from the metadata storage module, combines it with the comprehensive health score after the current governance calculated in step S72, calculates the score difference, and compares the score changes before and after governance for each subdivision dimension, and assembles and generates governance effect trend information. The system packages and integrates the health level obtained in step S72, the governance suggestions generated in step S73, and the generated governance effect trend information to form the asset governance result.

[0120] For example, the historical overall health score of an e-commerce analytics project before governance was 53.6. After completing group governance such as RFM, the overall health score was reassessed and reached 81.2. The system calculated that the overall score improved by 27.6 points, and recorded the increase in scores for each dimension, including duplication, query efficiency, consistency of definitions, and lifecycle, generating governance effect trend information. The system packages and integrates the health level of "good", the corresponding governance suggestions, and the governance effect trend information to output a complete asset governance result.

[0121] This embodiment converts the original multi-dimensional asset indicators into five standardized dimension scores: duplication, reuse rate, query efficiency, consistency of definitions, and reasonableness of lifecycle. A weighted summation is performed using preset weights to obtain a comprehensive health score, which is then compared with a preset level range to determine the asset's health level. When the comprehensive health score is lower than a preset health threshold, targeted suggestions are generated based on the weaknesses in each dimension's score, including suggestions for duplication merging, incremental improvement, cold data archiving, and definition conflict resolution. A comparison of the health scores before and after governance generates governance effect trend information. The health level, governance suggestions, and governance effect trend information are integrated into the asset governance result, thereby achieving a quantitative assessment of data asset quality. This allows for the identification of weak links in the asset and the output of actionable optimization directions. Simultaneously, it provides intuitive and quantitative feedback on the actual benefits of this governance, offering a quantitative basis for continuous iterative data asset governance.

[0122] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0123] This application also provides a data asset governance device, the data asset governance device comprising: The acquisition module is used to acquire multiple data query statements to be processed, and to perform semantic parsing and feature extraction processing on each data query statement to obtain the normalized syntax tree and execution feature information corresponding to each data query statement. The identification module is used to generate a dual semantic fingerprint corresponding to each data query statement based on each of the normalized syntax trees and each of the execution feature information, and to cluster each of the data query statements based on each of the dual semantic fingerprints to identify groups of repeated calculation logic. The generation module is used to perform operator-level lineage parsing and caliber consistency verification on the data query statements involved in the repeated calculation logic grouping, obtain operator-level processing links and caliber conflict detection results, and derive incremental calculation mode based on the operator-level processing links to generate incremental calculation schemes. The governance module is used to generate a governance script based on the repeated calculation logic grouping, the caliber conflict detection results and the incremental calculation scheme, perform asset governance transformation and task flow gray-scale control processing on each of the data query statements based on the governance script, conduct a health assessment on the data assets constituted by the governed data query statements, and output the asset governance results.

[0124] The data asset governance apparatus provided in this application, employing the data asset governance method described in the above embodiments, can solve the technical problems in the background art. Compared with the prior art, the beneficial effects of the data asset governance apparatus provided in this application are the same as those of the data asset governance method provided in the above embodiments, and other technical features in the data asset governance apparatus are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0125] This application provides a data asset governance device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the data asset governance method in Embodiment 1 above.

[0126] The following is for reference. Figure 4 The diagram illustrates a structural schematic of a data asset governance device suitable for implementing embodiments of this application. The data asset governance device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The data asset governance device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0127] like Figure 4 As shown, the data asset management device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the data asset management device. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows the data asset management device to communicate wirelessly or wiredly with other devices to exchange data. While the figure shows data asset management devices with various systems, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.

[0128] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0129] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0130] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the data asset governance methods provided by the methods described above.

[0131] The system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0132] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0133] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A data asset governance method, characterized in that, include: Multiple data query statements to be processed are obtained, and semantic parsing and feature extraction are performed on each data query statement to obtain the normalized syntax tree and execution feature information corresponding to each data query statement. Based on the normalized syntax trees and execution feature information, generate dual semantic fingerprints corresponding to each data query statement, and cluster each data query statement based on the dual semantic fingerprints to identify groups of repeated calculation logic. The process involves performing operator-level lineage parsing and consistency verification on the data query statements involved in the repeated calculation logic grouping to obtain operator-level processing links and consistency conflict detection results. Based on these operator-level processing links, an incremental calculation mode is derived, and an incremental calculation scheme is generated. Specifically, each operator node in the normalized syntax tree corresponding to the data query statements involved in the repeated calculation logic grouping is semantically annotated. Based on the annotated operator nodes, an operator-level processing link from the output field to the source table field is constructed. This operator-level processing link supports forward tracing, reverse tracing, and cross-layer penetration. Semantic tags corresponding to each field are generated based on the operator-level processing link, and similarity calculations are performed on each semantic tag. Consistency conflict detection results are generated based on the similarity comparison results. The aggregation operator type recorded in the operator-level processing link is read, and the data write / update attributes of the upstream source data table are obtained. Pattern discrimination processing is performed by combining the aggregation operator type and the data write / update attributes to derive the incremental calculation mode and generate an incremental calculation scheme. A governance script is generated based on the repeated calculation logic grouping, the caliber conflict detection results, and the incremental calculation scheme. Based on the governance script, asset governance transformation and task flow gray-scale control processing are performed on each of the data query statements. A health assessment is conducted on the data assets constituted by the governed data query statements, and the asset governance results are output. Specifically, the calculation logic of the repeated calculation logic grouping, the field correction requirements of the caliber conflict detection results, and the update logic of the incremental calculation scheme are read. A governance script containing table structure definitions and data update statements is generated through template filling. The governance script is loaded by calling the open interface of the data development platform, completing the rewriting of query statement logic and the creation of intermediate objects, configuring upstream and downstream dependencies of tasks, synchronously enabling shadow parallel running mode to conduct data consistency comparison, and performing task flow gray-scale control processing. Various asset statistical information retained during the asset governance transformation process and task flow gray-scale control processing is collected, multi-dimensional asset indicators are extracted, and a health assessment is conducted on the multi-dimensional asset indicators, outputting the asset governance results.

2. The data asset governance method as described in claim 1, characterized in that, The semantic parsing and feature extraction processing of each of the data query statements to obtain the normalized syntax tree and execution feature information corresponding to each of the data query statements includes: The data query statements are parsed into abstract syntax trees by a structured query language parser, and the abstract syntax trees preserve the query semantic structure of each data query statement. Normalization processing is performed on each of the abstract syntax trees to obtain the normalized syntax tree corresponding to each of the data query statements. The normalization processing includes table alias resolution, constant folding and predicate standardization, function equivalence normalization, and join order standardization. The execution plan of each data query statement is obtained through the data warehouse query engine. The table scan row count estimate, data redistribution estimate, operator type sequence, partition pruning information, full table scan flag and data skew flag are extracted from the execution plan and integrated to generate the execution feature information.

3. The data asset governance method as described in claim 1, characterized in that, The step of generating dual semantic fingerprints for each data query statement based on the normalized syntax tree and the execution feature information, and clustering each data query statement based on the dual semantic fingerprints to identify groups of repeated computation logic includes: Using a post-order traversal approach, the hash value of each operator node is calculated layer by layer based on the node type, hash value of the child node, and normalized text of each operator node in the normalized syntax tree until the hash value of the root node in the normalized syntax tree is obtained. The hash value of the root node is then used as the structural fingerprint. The execution feature information includes multiple runtime features that are processed by vector encoding and transformation to generate execution feature vectors. Then, the execution feature vectors are transformed by a feature mapping algorithm to obtain execution feature fingerprints. The structural fingerprints and the execution feature fingerprints are concatenated to obtain dual semantic fingerprints. Locality-sensitive hashing algorithm is used to perform grouping and clustering processing on all dual semantic fingerprints. Based on the preset feature distance judgment rule, repeated calculation logic groups are aggregated to obtain groups.

4. The data asset governance method as described in claim 1, characterized in that, The step of generating semantic tags corresponding to each field based on the operator-level processing link, performing similarity calculations and comparisons on each semantic tag, and generating caliber conflict detection results based on the similarity comparison results includes: The source table field information, operator filtering condition content, and aggregation operation logic content in the operator-level processing link are sequentially processed by text concatenation to assemble the semantic tags of the corresponding fields. For any two semantic tags corresponding to the same field across query statements, the set similarity calculation method is used to compare the features of each semantic tag and output the semantic similarity value; Read the preset similarity discrimination threshold, compare each semantic similarity value with the preset similarity discrimination threshold, and generate the caliber conflict detection result by marking field objects that exceed the threshold range.

5. The data asset governance method as described in claim 1, characterized in that, The process of performing a health assessment on the multi-dimensional asset indicators and outputting asset governance results includes: Based on the aforementioned multi-dimensional asset indicators, the following scores are calculated: redundancy score, reuse rate score, query efficiency score, consistency score, and lifecycle rationality score. The repetition score, reuse rate score, query efficiency score, consistency score, and lifecycle rationality score are weighted and summed according to preset weights to obtain a comprehensive health score. The comprehensive health score is then compared with a preset level range to determine the corresponding health level. When the overall health score is lower than the preset health threshold, governance suggestions are generated based on the repetition score, the reuse rate score, the query efficiency score, the consistency score, and the lifecycle rationality score. The governance suggestions include suggestions for merging duplicates, incremental transformation, cold data archiving, and conflict resolution. The changes in health scores before and after this governance operation are obtained to generate governance effect trend information. The health level, the governance recommendations, and the governance effect trend information are used as the asset governance results.

6. A data asset governance device, characterized in that, include: The acquisition module is used to acquire multiple data query statements to be processed, and to perform semantic parsing and feature extraction processing on each data query statement to obtain the normalized syntax tree and execution feature information corresponding to each data query statement. The identification module is used to generate a dual semantic fingerprint corresponding to each data query statement based on each of the normalized syntax trees and each of the execution feature information, and to cluster each of the data query statements based on each of the dual semantic fingerprints to identify groups of repeated calculation logic. The generation module is used to perform operator-level lineage parsing and consistency verification on the data query statements involved in the repeated calculation logic grouping, obtain operator-level processing links and consistency conflict detection results, and derive incremental calculation mode based on the operator-level processing links to generate an incremental calculation scheme. Specifically, it performs semantic annotation on each operator node in the normalized syntax tree corresponding to the data query statements involved in the repeated calculation logic grouping, constructs an operator-level processing link from the output field to the source table field based on the annotated operator nodes, and the operator-level processing link supports forward tracing, reverse tracing, and cross-layer penetration; generates semantic tags corresponding to each field based on the operator-level processing link, performs similarity calculations and comparisons on each semantic tag, and generates consistency conflict detection results based on the similarity comparison results; reads the aggregation operator type recorded in the operator-level processing link, and simultaneously obtains the data write update attributes of the upstream source data table, performs pattern discrimination processing by combining the aggregation operator type and the data write update attributes, derives the incremental calculation mode, and generates an incremental calculation scheme. The governance module is used to generate governance scripts based on the repeated calculation logic grouping, the caliber conflict detection results, and the incremental calculation scheme. Based on the governance scripts, it performs asset governance transformation and task flow gray-scale control processing on each data query statement, conducts a health assessment on the data assets constituted by the governed data query statements, and outputs asset governance results. Specifically, it reads the calculation logic of the repeated calculation logic grouping, the field correction requirements of the caliber conflict detection results, and the update logic of the incremental calculation scheme, and generates a governance script containing table structure definitions and data update statements through template filling. It calls the open interface of the data development platform to load the governance script, completes the query statement logic rewriting and intermediate object creation, configures upstream and downstream task dependencies, synchronously enables shadow parallel running mode for data consistency comparison, and executes task flow gray-scale control processing. It collects various asset statistical information retained during the asset governance transformation process and task flow gray-scale control processing, extracts multi-dimensional asset indicators, conducts health assessment processing on the multi-dimensional asset indicators, and outputs asset governance results.

7. A data asset governance device, characterized in that, The data asset governance device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the data asset governance method as described in any one of claims 1 to 5.

8. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the data asset governance method as described in any one of claims 1 to 5.