Data warehouse evaluation method and device
By analyzing the metadata and embedded events of the model table in the data warehouse, and evaluating its non-use status, standardization and security level, etc., the subjectivity and limitations of the data warehouse quality assessment in the existing technology are solved, and the problem is achieved. A comprehensive and accurate assessment of data warehouse quality.
Patent Information
- Application Number
- CN202310376862.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology has subjectivity and limitations in data warehouse quality assessment, and it is impossible to objectively and comprehensively evaluate the resource, standardization, security, stability, application, credibility and completeness of the data warehouse.
By analyzing the metadata, hidden events and upstream and downstream relationships of the model table to be tested in the data warehouse, we evaluate the unused status, metadata standardization, security level, fault tolerance, user application status and call status, and whether the combination is standard. Dimension tables to comprehensively evaluate the quality of the data warehouse.
It achieves an objective and comprehensive assessment of the quality of the data warehouse, improves the accuracy and efficiency of the assessment, and can quantify the resource, standardization, security, stability, application, credibility and quality of the data warehouse from multiple aspects. Perfection.
Smart Images

Figure CN118733570A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and in particular, relates to a method and device for evaluating a data warehouse. Background Art
[0002] A data warehouse (DW) can store different types of data in the form of model tables. The data warehouse can provide corresponding model tables to management decision makers according to their different needs. When the accuracy of the data in the model table is low, it means that the quality of the data warehouse is poor, resulting in inaccurate decisions made by management decision makers based on the model table. Therefore, it is necessary to evaluate the quality of the data warehouse.
[0003] Currently, the quality of data warehouses is evaluated manually. After the data warehouse has been running for a period of time, testers can evaluate the data warehouse during this period based on past experience.
[0004] However, manual evaluation methods are highly subjective and limited, and cannot objectively and comprehensively evaluate the quality of data warehouses. Summary of the invention
[0005] The embodiments of the present application provide a method and device for evaluating a data warehouse, which can objectively and comprehensively evaluate the quality of the data warehouse.
[0006] In a first aspect, an embodiment of the present application provides a method for evaluating a data warehouse, the method comprising: determining, based on metadata of a model table to be tested in the data warehouse, whether the metadata of the model table to be tested is standardized, and determining a security level of the model table to be tested, wherein the unused status of the model table to be tested is used to indicate the resource degree of the data warehouse, whether the metadata of the model table to be tested is standardized is used to indicate the standardization degree of the data warehouse, and the security level of the model table to be tested is used to indicate the security degree of the data warehouse;
[0007] According to the metadata of the model table to be tested and the task information corresponding to the model table to be tested, the fault tolerance of the model table to be tested is determined. The fault tolerance of the model table to be tested is used to indicate the stability of the data warehouse.
[0008] According to the metadata and embedded events of the model table to be tested, the user application status of the model table to be tested is determined. The user application status of the model table to be tested is used to indicate the application degree of the data warehouse.
[0009] According to the content of the model table to be tested, determine whether the model table to be tested is a standard dimension table. Whether the model table to be tested is a standard dimension table is used to indicate the credibility of the data warehouse;
[0010] According to the metadata and upstream and downstream relationships of the model table to be tested, the calling status of the model table to be tested is determined. The calling status of the model table to be tested is used to indicate the completeness of the data warehouse;
[0011] The quality of the data warehouse is evaluated based on whether the model table to be tested is unused, whether the metadata is standardized, the security level, fault tolerance, user application and call status, and whether the model table to be tested is a standard dimension table.
[0012] The embodiments of the present application can determine the unused status of the model table to be tested, whether the metadata is standardized, the security level, fault tolerance, user application status and call status, and whether the model table to be tested is a standard dimension table based on various data such as the metadata, embedded point data, upstream and downstream relationships, content, and task information corresponding to the model table to be tested. This can provide a technical means for objectively and comprehensively evaluating the quality of the data warehouse in terms of resource level, standardization, security, stability, applicability, credibility, and completeness, solves the technical problems of strong subjectivity and limitations in the quality assessment of data warehouses in the prior art, and achieves the technical effect of quickly and accurately evaluating the data warehouse.
[0013] In a second aspect, an embodiment of the present application provides an evaluation device for a data warehouse, the device being used to execute the method in the first aspect or any possible implementation of the first aspect. Specifically, the device may include a module for executing the evaluation method in the first aspect or any possible implementation of the first aspect.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor. The memory is used to store instructions; the processor executes the instructions stored in the memory, so that the device executes the evaluation method in the first aspect or any possible implementation of the first aspect.
[0015] According to a fourth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the evaluation method in the first aspect or any possible implementation of the first aspect.
[0016] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 It is a structural diagram of a data warehouse provided in an embodiment of the present application;
[0019] Figure 2 It is a structural diagram of a data warehouse evaluation system provided in an embodiment of the present application;
[0020] Figure 3 It is a flowchart of a data warehouse evaluation method provided in an embodiment of the present application;
[0021] Figure 4 It is a flowchart of a data warehouse evaluation method provided in an embodiment of the present application;
[0022] Figure 5 It is a flowchart of a data warehouse evaluation method provided in an embodiment of the present application;
[0023] Figure 6 It is a flowchart of a data warehouse evaluation method provided in an embodiment of the present application;
[0024] Figure 7 It is a flowchart of a data warehouse evaluation method provided in an embodiment of the present application;
[0025] Figure 8 It is a flowchart of a data warehouse evaluation method provided in an embodiment of the present application;
[0026] Fig. 9 It is a flowchart of a data warehouse evaluation method provided in an embodiment of the present application;
[0027] Fig.10 It is a flowchart of a data warehouse evaluation method provided in an embodiment of the present application;
[0028] Fig.11 It is a structural diagram of a data warehouse evaluation device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0030] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0031] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0032] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0033] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0034] See also Figure 1 , Figure 1 A structural diagram of a data warehouse provided in an embodiment of the present application is shown.
[0035] The data warehouse 200 is a subject-oriented, integrated, relatively stable data set that reflects historical changes. The data warehouse 200 can be applied to fields such as logistics, e-commerce, finance, communications, medical care, and the Internet of Things.
[0036] The data warehouse 200 may store metadata and content of model tables.
[0037] The metadata is the attribute information of the model table, which may include: the name, field, field type, partition type, usage count, and user application usage count of the model table.
[0038] Fields are the contents stored in columns in a model table. For example, fields are employee ID, name, home address, birthday, etc.
[0039] Field types can include: character type or numeric type, etc.
[0040] Partition type is used to indicate that the storage area in the model table is divided into different time units.
[0041] The usage count of a model table is the total number of times the model table is actually used.
[0042] The number of times users apply for use is the total number of times users apply for use of the model table.
[0043] The content of the model table is the content stored in the columns of the model table and the content stored in the rows of the model table.
[0044] The content of the model table may include: a first preset field and a second preset field, etc.
[0045] Among them, the first preset field is the content that needs to be kept confidential in the model table pre-stored in the evaluation system 100 of the data warehouse. The first preset field may include a confidential field or a top secret field, etc. The confidential field is a field that complies with the C3 security standard type. For example, the confidential field includes: amount, telephone number and ID number, etc. The top secret field is a field that complies with the C4 security standard type. For example, the decrypted field includes: cost, profit and average ticket price, etc.
[0046] The second preset field is the core content of the standard dimension table. The second preset field can be determined based on the conventional core fields in the business usage scenario, the number of field usages, and the unique fields in the standard dimension table. For example, the second preset field is the employee's work number, name, and department. The standard dimension table is a model table with consistent data calculation caliber and algorithm. Figure 1 As shown, the data warehouse 200 may include: an operation data store (ODS) module 201, a data detail (DWD) module 202, a data warehouse summery (DWS) module 203, a data market (DM) module 204, a common dimension (DIM) module 205 and a temporary (TMP) module 206.
[0047] Among them, the original data module 201 is used to store the original data table. The original data table is a data table transmitted from the data warehouse source system to the data warehouse 200. The data warehouse source system is used to collect, store and transmit the original data table. The content of the original data table is the original detailed data. For example, the original detailed data is all the waybill data from January 1 to January 31.
[0048] The data detail module 202 is used to store the data detail table. The content of the data detail table is the detail data. The detail data is the data obtained after the original detailed data is converted. For example, the detail data is the shipping volume data, the receiving volume data and the delivery data after all the waybill data is converted.
[0049] The data detail table in the data detail module 202 can reference the original data table in the original data module 201. The data detail table in the data detail module 202 can reference the standard dimension table in the common dimension module 205. The data detail table in the data detail module 202 can reference the temporary data table in the temporary module 206. The business summary table in the data summary module 203 can also reversely reference the application scenario table in the data market module 204.
[0050] The data summary module 203 is used to store the business summary table. The content of the business summary table is summary data. The summary data is the data with high reusability in the detailed data, that is, the data used multiple times in the detailed data. For example, the summary data is the address in the delivery data.
[0051] The business summary table in the data summary module 203 can reference the data detail table in the data detail module 202. The business summary table in the data summary module 203 can also cross-layer reference the original data table in the original data module 201. The business summary table in the data summary module 203 can reference the standard dimension table in the common dimension module 205. The business summary table in the data summary module 203 can reference the temporary data table in the temporary module 206. The business summary table in the data summary module 203 can also reversely reference the application scenario table in the data market module 204.
[0052] The data market module 204 is used to store the application scenario table. The content of the application scenario table is market data that meets specific requirements. The market data is the data obtained by aggregating detailed data and summary data. For example, the market data includes the ID number and age of employees.
[0053] The application scenario table in the data market module 204 can reference the business summary table in the data summary module 203. The application scenario table in the data market module 204 can also cross-layer reference the data detail table in the data detail module 202. The application scenario table in the data market module 204 can also cross-layer reference the original data table in the original data module 201. The public dimension module 205 is used to store standard dimension tables.
[0054] The temporary module 206 is used to store a temporary data table. The content of the temporary data table is the temporary data generated during the calculation process.
[0055] See also Figure 2 , Figure 2 A structural schematic diagram of a data warehouse evaluation system provided in an embodiment of the present application is shown.
[0056] like Figure 2 As shown, the data warehouse evaluation system 100 of the embodiment of the present application includes: a resource module 101, a standardization module 102, a security module 103, a stability module 104, an application module 105, a credibility module 106, a completeness module 107 and a quality evaluation module 108.
[0057] The resource degree module 101 , the standard degree module 102 , the safety degree module 103 , the stability degree module 104 , the application degree module 105 , the credibility module 106 and the perfection degree module 107 are all connected in communication with the quality assessment module 108 .
[0058] The resource degree module 101 is used to evaluate the resource degree of the data warehouse 200 according to the computing cost and the storage cost.
[0059] The evaluation index of computing cost is invalid task rate, and the evaluation index of storage cost is invalid storage rate.
[0060] The invalid task rate is used to indicate the relationship between the unused model tables and the total model tables.
[0061] The invalid storage ratio is used to indicate the relationship between the storage size of unused model tables and the storage size of all model tables.
[0062] The resource degree module 101 is also used to transmit the invalid task rate and invalid storage rate of the data warehouse 200 to the quality evaluation module 108 .
[0063] The resource level is used to indicate the computation cost and storage cost of the data warehouse 200 .
[0064] The normalization module 102 is used to evaluate the normalization of the data warehouse 200 based on the table construction normalization rate, field normalization rate, cross-layer dependency rate, reverse dependency rate, partition normalization rate and lineage level normalization rate.
[0065] The table creation standardization rate may include: the naming standardization rate of the model table, the Chinese name standardization rate, the administrator standardization rate, etc. The naming standardization rate of the model table is used to indicate the relationship between the model table that complies with the model table naming rules and all model tables.
[0066] The naming rules of the model tables in each module of the data warehouse 200 are different. For example, the naming rule of the model table in the data detail module 202 is {level name}_{English abbreviation of the business data domain}_{business data}_{partition type}. The business data domain is used to indicate the type of business data. For example, the type of data is management type or operation type, etc.
[0067] The naming rule of the model table in the data aggregation module 203 is {level name}_{subject domain English abbreviation}_{business data}_{time granularity}_{partition type}. The subject domain is used to indicate the type of data after the business data domain is divided in detail. The time granularity indicates the time unit for storing business data. For example, the time granularity is 5 minutes.
[0068] The naming rule of the model table in the data market module 204 is {level name}_{English abbreviation of the subject domain}_{business data}_{model table type}_{partition type}. The naming rule of the model table in the public dimension module 205 is {level name}_{dimension content}_{partition type}_{model table type}. Model table types include: dimension table, fact table, zipper table, etc.
[0069] The Chinese name standardization rate is used to indicate the relationship between the model table that complies with the Chinese name rules and all model tables. The administrator standardization rate is used to indicate the relationship between the model table for configuring administrators and all model tables.
[0070] The field standardization rate may include: field type standardization rate and field annotation standardization rate, etc. The field type standardization rate is used to indicate the relationship between the model table that complies with the field type rule and all model tables.
[0071] Field type rules may include: whether a numeric field is represented as a string, whether a character field is represented as a numeric value, or whether a field is represented by a data type other than string, int, bigint, double, or decimal.
[0072] The field annotation standardization rate is used to represent the relationship between the model table that complies with the field annotation rules and all model tables.
[0073] Field annotation rules include: whether the field has no annotation or whether the annotation length of the field is less than or equal to the annotation length threshold. The annotation length threshold is the preset maximum annotation length of the field. For example, the annotation length threshold is 1.
[0074] The cross-layer dependency ratio is the ratio of the model tables in the data market module 204 to the model tables in other modules in the data warehouse 200 across layers.
[0075] The reverse dependency rate is the ratio of the model table in the data summary module 203 to the model table in the data market module 204 , or the ratio of the model table in the data detail module 202 to the model table in the data market module 204 .
[0076] The partition specification ratio is used to indicate the ratio between the partition specification model table and the total model table.
[0077] The lineage level standardization rate is used to indicate the ratio of model tables that comply with lineage level rules and model tables with set life cycles to all model tables.
[0078] The lineage hierarchy rule is whether the number of layers of the model table that has an upstream and downstream relationship with any model table is greater than the preset number of layers. For example, the preset number of layers is 10 layers.
[0079] The data warehouse evaluation system 100 can determine different standardization rates according to different preset rules.
[0080] The preset rules are the relevant criteria of the model table pre-set in the data warehouse evaluation system 100. The preset rules may include: table creation rules, field rules, cross-layer dependency rules, reverse dependency rules, partition rules, lineage level rules and life cycle rules, etc. The preset rules can be set according to user needs.
[0081] The standardization module 102 is also used to transmit the table construction standardization rate, field standardization rate, cross-layer dependency rate, reverse dependency rate, partition standardization rate and blood level standardization rate of the data warehouse 200 to the quality assessment module 108.
[0082] The security module 103 is used to evaluate the security of the data warehouse 200 according to the popularity of the model tables with high security levels and the coverage of the model tables with high security levels.
[0083] The popularity of the high-security-level model table is used to indicate the usage of the high-security-level model table. The usage of the high-security-level model table includes: the average number of users applying for the high-security-level model table and the average number of times of use.
[0084] The coverage of the model table of the high security level is used to represent the relationship between the model table of the high security level and all model tables.
[0085] The security module 103 is also used to provide the quality assessment module 108 with the average number of users applying for the model table with a high security level, the average number of times of use, and the coverage rate of the model table with a high security level.
[0086] The stability module 104 is used to determine information related to the stability of the data warehouse 200. The stability module 104 is also used to transmit the information related to the stability of the data warehouse 200 to the quality assessment module 108.
[0087] The stability is used to indicate the timeliness and fault tolerance of the output of the model table in the data warehouse 200.
[0088] The application degree module 105 is used to determine information related to the application degree of the data warehouse 200. The application degree module 105 is also used to transmit the information related to the application degree of the data warehouse 200 to the quality evaluation module 108.
[0089] The application degree is used to indicate the market application degree of the model table in the data warehouse 200 .
[0090] The credibility module 106 is used to determine information related to the credibility of the data warehouse 200. The credibility module 106 is also used to transmit the information related to the credibility of the data warehouse 200 to the quality assessment module 108.
[0091] The credibility is used to indicate the degree to which the data stored in the data warehouse 200 can be relied upon.
[0092] The completeness module 107 is used to determine information related to the completeness of the data warehouse 200. The completeness module 107 is also used to transmit the information related to the completeness of the data warehouse 200 to the quality assessment module 108.
[0093] The degree of completeness is used to indicate the comprehensiveness of the construction of the model table in the data warehouse 200 .
[0094] The quality assessment module 108 is used to evaluate the quality of the data warehouse 200 based on the invalid task rate, invalid storage rate, table construction standardization rate, field standardization rate, cross-layer dependency rate, reverse dependency rate, partition standardization rate and blood level standardization rate, the average number of applicants for model tables with a high security level, the average number of uses, the coverage rate of model tables with a high security level, information related to the stability of the data warehouse 200, information related to the application degree of the data warehouse 200, information related to the credibility of the data warehouse 200, and information related to the completeness of the data warehouse 200.
[0095] In summary, the data warehouse evaluation system of the embodiment of the present application can comprehensively evaluate the quality of the data warehouse according to objective evaluation standards, thereby facilitating users to correct errors and improve the data warehouse according to the evaluation results, thereby improving the quality of the data warehouse.
[0096] The data warehouse evaluation system 100 of the embodiment of the present application can be applied to any electronic device such as a server, a laptop computer, a desktop computer or a handheld computer, and the present application does not impose any specific limitation thereto.
[0097] Based on the above description, below, combined with Figure 3, a flow chart of a data warehouse evaluation method provided in an embodiment of the present application is described in detail.
[0098] like Figure 3 As shown, the data warehouse evaluation method of the embodiment of the present application is applied to Figure 1 The data warehouse evaluation system 100 shown. The data warehouse evaluation method of the embodiment of the present application may include:
[0099] S101. According to the metadata of the model table to be tested in the data warehouse, determine whether the metadata of the model table to be tested is standardized, and determine the security level of the model table to be tested. The unused status of the model table to be tested is used to indicate the resource degree of the data warehouse, whether the metadata of the model table to be tested is standardized is used to indicate the standardization degree of the data warehouse 200, and the security level of the model table to be tested is used to indicate the security degree of the data warehouse 200. The model table to be tested is a model table that needs to be tested in the data warehouse 200. The model table to be tested can be a model table in any module in the data warehouse 200.
[0100] The data warehouse evaluation system 100 can obtain metadata of the model table to be tested from the data warehouse 200. The data warehouse evaluation system 100 can determine the unused condition of the model table to be tested based on the number of uses in the metadata. Thus, the data warehouse evaluation system 100 can evaluate the resource level of the data warehouse 200 based on the unused condition of the model table to be tested.
[0101] The data warehouse evaluation system 100 can determine whether the name, field type and partition type of the model table in the metadata are standardized. Thus, the data warehouse evaluation system 100 can evaluate the standardization of the data warehouse 200 according to whether the metadata of the model table to be tested is standardized.
[0102] The data warehouse evaluation system 100 can determine the security level of the model table to be tested according to the fields in the metadata. Thus, the data warehouse evaluation system 100 can evaluate the security of the data warehouse 200 according to the security level of the model table to be tested.
[0103] S102. Determine the fault tolerance of the model table to be tested according to the metadata of the model table to be tested and the task information corresponding to the model table to be tested. The fault tolerance of the model table to be tested is used to indicate the stability of the data warehouse.
[0104] The task information is information generated when the task is executed using the model table to be tested. The task information may include: task name, task number, task start time, task end time, and model table used when the task is executed.
[0105] The evaluation system 100 of the data warehouse can obtain the task information corresponding to the model table to be tested from the data warehouse 200. The evaluation system 100 of the data warehouse can determine the fault tolerance of the model table to be tested according to the number of times the model table is used in the metadata and the task information corresponding to the model table to be tested. Thus, the evaluation system 100 of the data warehouse can evaluate the stability of the data warehouse 200 according to the fault tolerance of the model table to be tested.
[0106] S103. Determine the user application status of the model table to be tested according to the metadata and embedded events of the model table to be tested. The user application status of the model table to be tested is used to represent the application degree of the data warehouse.
[0107] Among them, the tracking event is used to record the number of times users browse, click and use the model table on the page.
[0108] The evaluation system 100 of the data warehouse can obtain the tracking events of the model table to be tested from the data warehouse 200. The evaluation system 100 of the data warehouse can determine the user application status of the model table to be tested based on the number of user application usages and tracking events in the metadata. Thus, the evaluation system 100 of the data warehouse can evaluate the application degree of the data warehouse 200 based on the user application status of the model table to be tested.
[0109] S104: Determine whether the model table to be tested is a standard dimension table according to the content of the model table to be tested, and whether the model table to be tested is consistent with the standard dimension table to indicate the credibility of the data warehouse.
[0110] The content of the model table to be tested is the content stored in the columns of the model table to be tested and the content stored in the rows of the model table to be tested.
[0111] The evaluation system 100 of the data warehouse can obtain the content of the model table to be tested and the standard dimension table from the data warehouse 200. The evaluation system 100 of the data warehouse can determine whether the model table to be tested is a standard dimension table. When the evaluation system 100 of the data warehouse determines that the model table to be tested is a standard dimension table, it can determine that the data calculation caliber and algorithm of the model table to be tested are consistent with the data calculation caliber and algorithm of the standard dimension table. When the evaluation system 100 of the data warehouse determines that the model table to be tested is not a standard dimension table, it can determine that the data calculation caliber and algorithm of the model table to be tested are inconsistent with the data calculation caliber and algorithm of the standard dimension table.
[0112] S105. Determine the calling status of the model table to be tested according to the metadata and upstream and downstream relationships of the model table to be tested. The calling status of the model table to be tested is used to indicate the completeness of the data warehouse.
[0113] Among them, the upstream and downstream relationship is used to represent the association relationship and reference relationship between multiple model tables to be tested.
[0114] The evaluation system 100 of the data warehouse can obtain the upstream and downstream relationship of the model table to be tested from the data warehouse. Based on the metadata and upstream and downstream relationship of the model table to be tested, the evaluation system 100 of the data warehouse can determine whether the model table to be tested is referenced by the upstream model table or the downstream model table, that is, the calling situation of the model table to be tested. Therefore, the evaluation system 100 of the data warehouse can evaluate the completeness of the data warehouse 200 based on the calling situation of the model table to be tested.
[0115] There is no temporal sequence between S101 - S105 , and S101 - S105 can be executed simultaneously or sequentially.
[0116] S106. Evaluate the quality of the data warehouse based on whether the model table to be tested is unused, whether the metadata is standardized, the security level, the fault tolerance, the user application and the calling status, and whether the model table to be tested is a standard dimension table.
[0117] Based on the above description, the data warehouse evaluation system 100 can evaluate the quality of the data warehouse 200 according to the unused status of the model table to be tested, whether the metadata is standardized, the security level, the fault tolerance, the user application status and the calling status, and whether the model table to be tested is a standard dimension table. Therefore, the data warehouse evaluation system 100 can accurately evaluate the quality of the data warehouse 200 from all aspects of the data warehouse 200.
[0118] The evaluation method of the data warehouse of the embodiment of the present application can determine the unused status of the model table to be tested, whether the metadata of the model table to be tested is standardized, and the security level of the model table to be tested according to the metadata of the model table to be tested in the data warehouse. The unused status of the model table to be tested can be used to evaluate the resource degree of the data warehouse. Whether the metadata of the model table to be tested is standardized can be used to evaluate the standardization of the data warehouse. The security level of the model table to be tested can be used to evaluate the security of the data warehouse. According to the metadata of the model table to be tested and the task information corresponding to the model table to be tested, the fault tolerance of the model table to be tested can be determined. The fault tolerance of the model table to be tested can be used to evaluate the stability of the data warehouse. According to the metadata and buried point events of the model table to be tested, the user application status of the model table to be tested can be determined. The user application status of the model table to be tested can be used to evaluate the application degree of the data warehouse. According to the content of the model table to be tested, it can be determined whether the model table to be tested is a standard dimension table. Whether the model table to be tested is a standard dimension table can be used to evaluate the credibility of the data warehouse. According to the metadata and upstream and downstream relationships of the model table to be tested, the calling status of the model table to be tested can be determined. The call status of the model table to be tested can be used to evaluate the completeness of the data warehouse.
[0119] Based on this, the quality of the data warehouse can be evaluated according to the unused status of the model table to be tested, whether the metadata is standardized, the security level, fault tolerance, user application status and call status, and whether the model table to be tested is a standard dimension table. It can achieve a comprehensive evaluation of the quality of the data warehouse from seven aspects: resource degree, standardization, security, stability, applicability, credibility and completeness.
[0120] Therefore, the quality of the data warehouse can be evaluated from multiple aspects based on the metadata, embedded events, content and task information of the model tables in the data warehouse, making the evaluation of the data warehouse more objective and comprehensive, and improving the evaluation accuracy and efficiency of the data warehouse.
[0121] Based on the description of S101, below, combined with Figure 4 , a feasible implementation method for determining the unused condition of the model table to be tested by the evaluation system 100 of the data warehouse is described in detail. The specific process of determining the unused condition of the model table to be tested by the evaluation system 100 of the data warehouse is as follows:
[0122] S201. Obtain metadata of the model table to be tested from the data detail module, data summary module and data market module in the data warehouse.
[0123] The data warehouse evaluation system 100 can obtain the model table to be tested and the metadata of the model table to be tested from the data detail module 202 , the data summary module 203 and the data market module 204 in the data warehouse 200 .
[0124] S202: Determine the usage quantity and storage size of the model table to be tested according to the metadata of the model table to be tested.
[0125] The usage number of the model table to be tested is the number of used model tables in the model table to be tested.
[0126] The data warehouse evaluation system 100 can determine the usage quantity and storage size of the model table to be tested according to the metadata of the model table to be tested.
[0127] S203: Determine the unused condition of the model table to be tested, including the invalid task rate and the invalid storage rate, according to the used quantity and storage size of the model table to be tested.
[0128] The invalid task rate is the ratio of the number of unused model tables in the model table to be tested to the number of model tables to be tested.
[0129] The invalid storage rate is the ratio of the storage size of the unused model table to the storage size of the model table to be tested.
[0130] The evaluation system 100 of the data warehouse can also determine the number of model tables to be tested based on the metadata of the model tables to be tested. The evaluation system 100 of the data warehouse can determine the number of unused model tables in the model tables to be tested based on the number of used model tables to be tested and the number of model tables to be tested. Thus, the evaluation system 100 of the data warehouse can determine the invalid task rate of the model tables to be tested based on the number of unused model tables and the number of model tables to be tested. The invalid task rate of the model tables to be tested can reflect the quality of the data warehouse from the aspect of resource degree.
[0131] In addition, the evaluation system 100 of the data warehouse can also determine the storage size of the used model tables in the model table to be tested based on the metadata of the model table to be tested. The evaluation system 100 of the data warehouse can determine the storage size of the unused model table based on the storage size of the model table to be tested and the storage size of the used model table. Thus, the evaluation system 100 of the data warehouse can determine the invalid storage rate of the model table to be tested based on the storage size of the unused model table and the storage size of the model table to be tested. The invalid storage rate of the model table to be tested can reflect the quality of the data warehouse from the aspect of resource degree.
[0132] In summary, the data warehouse evaluation system 100 can obtain the unused status of the model table to be tested according to the metadata of the model table to be tested in the data warehouse 200 .
[0133] Based on the description of S101, below, combined with Figure 5 , a feasible implementation method for determining whether the metadata of the model table to be tested is standardized by the evaluation system 100 of the data warehouse is described in detail. The specific process of determining whether the metadata of the model table to be tested is standardized by the evaluation system 100 of the data warehouse is as follows:
[0134] S301. Obtain metadata of a model table to be tested from at least one of a data detail module, a data summary module, and a data market module in a data warehouse.
[0135] The data warehouse evaluation system 100 may obtain metadata of the model table to be tested from at least one of the data detail module 202 , the data summary module 203 , or the data market module 204 in the data warehouse 200 .
[0136] Since the evaluation system 100 of the data warehouse determines whether each model table in the model table to be tested is standardized in the same process, the following is an example of a model table in the model table to be tested. For a model table in the model table to be tested, the evaluation system 100 of the data warehouse can execute S302 and S303.
[0137] S302: When the metadata of the model table meets the preset rules, determine the metadata specification of the model table.
[0138] The data warehouse evaluation system 100 may obtain pre-stored preset rules from the data warehouse 200. The data warehouse evaluation system 100 may determine whether the metadata of the model table complies with the preset rules.
[0139] When determining that the metadata of the model table meets the preset rules, the data warehouse evaluation system 100 can determine the metadata specification of the model table.
[0140] S303: When the metadata of the model table does not conform to a preset rule, determine that the metadata of the model table is non-standard.
[0141] When determining that the metadata of the model table does not comply with a preset rule, the data warehouse evaluation system 100 may determine that the metadata of the model table is not standardized.
[0142] Based on this, the data warehouse evaluation system 100 can determine the standardization rate of the model tables to be tested according to the number of model tables with standardized metadata, the number of model tables with non-standard metadata, and the number of model tables to be tested. Thus, the data warehouse evaluation system 100 can evaluate the quality of the data warehouse 200 from the aspect of standardization according to the standardization rate of the model tables to be tested.
[0143] The standardization rate is the ratio of the number of model tables with standardized metadata in the model table to be tested to the number of model tables to be tested.
[0144] In summary, the data warehouse evaluation system 100 can determine whether the metadata of the model table to be tested is standardized.
[0145] Based on the description of S101, below, combined with Figure 6 , a feasible implementation method for determining the security level of the model table to be tested by the data warehouse evaluation system 100 is described in detail. The specific process of determining the security level of the model table to be tested by the data warehouse evaluation system 100 is as follows:
[0146] S401. Obtain metadata of the model table to be tested from at least one of a data detail module, a data summary module, or a data market module in a data warehouse.
[0147] The implementation process of S401 is the same as that of S301 , and reference may be made to the relevant description of S301 , which will not be repeated here.
[0148] Since the steps of determining the security level of each model table in the to-be-tested model table are the same in the data warehouse evaluation system 100, a model table in the to-be-tested model table is used as an example for illustration. For a model table in the to-be-tested model table, the data warehouse evaluation system 100 may execute S402 and S403.
[0149] S402: When there is a first preset field in the metadata of the model table, determine that the security level of the model table is a high security level.
[0150] The data warehouse evaluation system 100 may determine whether the metadata of the model table contains a first preset field. When the metadata of the model table contains the first preset field, the data warehouse evaluation system 100 may determine that the security level of the model table is a high security level.
[0151] S403: When the first preset field does not exist in the metadata of the model table, determine that the security level of the model table is a low security level.
[0152] When the first preset field does not exist in the metadata of the model table, the evaluation system 100 of the data warehouse may determine that the security level of the model table is a low security level.
[0153] Thus, the data warehouse evaluation system 100 can determine the security level of the model table to be tested.
[0154] Based on the above description, the data warehouse evaluation system 100 can determine the number of high security level model tables in the model tables to be tested. The data warehouse evaluation system 100 can determine the coverage of high security level model tables according to the number of model tables to be tested and the number of high security level model tables.
[0155] The coverage of the model tables with a high security level is the ratio of the number of model tables with a high security level to the number of model tables to be tested.
[0156] In addition, the evaluation system 100 of the data warehouse can determine the number of times all high-security-level model tables are used and the number of users who apply for them based on the metadata of all high-security-level model tables. The evaluation system 100 of the data warehouse can determine the average number of times high-security-level model tables are used and the average number of users who apply for them based on the number of times all high-security-level model tables are used and the average number of users who apply for them. Based on this, the evaluation system 100 of the data warehouse can determine the frequency of use of high-security-level model tables based on the average number of times high-security-level model tables are used and the average number of users who apply for them.
[0157] The usage frequency of the model table with a high security level is the ratio of the average number of times the model table with a high security level is used to the average number of users who apply for the model table with a high security level.
[0158] In summary, the data warehouse evaluation system 100 can quantitatively evaluate the security of the data warehouse 200 according to the proportion of model tables with high security levels in the model tables to be tested, and the evaluation result is more accurate.
[0159] Based on the description of S102, below, combined with Figure 7, a feasible implementation method for determining the fault tolerance of the model table to be tested by the evaluation system 100 of the data warehouse is described in detail. The specific process of determining the fault tolerance of the model table to be tested by the evaluation system 100 of the data warehouse is as follows:
[0160] S501. Obtain metadata of the model table to be tested and task information corresponding to the model table to be tested from the data detail module, data summary module and data market module in the data warehouse.
[0161] The data warehouse evaluation system 100 can obtain the model table to be tested from the data detail module 202, the data summary module 203 and the data market module 204 in the data warehouse 200. At the same time, the data warehouse evaluation system 100 can obtain the metadata of the model table to be tested and the task information corresponding to the model table to be tested.
[0162] S502: Determine the coverage rate and output time satisfaction rate of the model table to be tested according to the metadata of the model table to be tested.
[0163] The coverage of the model table to be tested is the ratio of the number of model tables with configured monitoring functions in the model table to be tested to the number of model tables to be tested.
[0164] The output time satisfaction rate of the model table to be tested is the ratio of the number of model tables in the model table to be tested that meet the preset output time length to the number of model tables to be tested. The preset output time length can be set according to user needs.
[0165] The evaluation system 100 of the data warehouse can determine the coverage rate of the model table to be tested, that is, the service level agreement (SLA) coverage rate and the output time satisfaction rate, that is, the SLA satisfaction rate, based on the metadata of the model table to be tested. The higher the coverage rate of the model table to be tested, the better the model table to be tested can monitor the execution of the task. Therefore, when the evaluation system 100 of the data warehouse monitors the failure of task execution or the task execution time exceeds the preset execution time through the model table to be tested, it can trigger the corresponding instructions to notify the user of the execution status of the task. The higher the output time satisfaction rate of the model table to be tested, the more timely the output of the model table to be tested is when the user uses the model table to be tested.
[0166] S503: Determine the number of alarms and the task failure rate according to the task information corresponding to the table of models to be tested.
[0167] The alarm times are the times when the preset alarm conditions are triggered during the task operation. The preset alarm conditions can be set according to user needs and the actual task operation situation.
[0168] The task failure rate is the ratio of the number of task runs that failed to the total number of task runs.
[0169] The data warehouse evaluation system 100 can determine the total number of task runs, the number of task run failures, and the number of times a preset alarm condition is triggered during task runs, i.e., the number of alarms, based on the task information corresponding to the model table to be tested. Thus, the data warehouse evaluation system 100 can determine the task failure rate based on the total number of task runs and the number of task run failures.
[0170] In addition, the data warehouse evaluation system 100 can also determine the time point when the task fails to run for the first time and the time point when the task succeeds to run for the first time based on the task information. The data warehouse evaluation system 100 can determine the time it takes for the user to solve the problem based on the time point when the task fails to run for the first time and the time point when the task succeeds to run for the first time.
[0171] In addition, when a task fails to run multiple times, the user can manually execute the task so that the task can run successfully. The data warehouse evaluation system 100 can determine the number of tasks manually executed by the user in the total number of task runs based on the task information. The fewer the number of tasks manually executed by the user, the higher the stability of the data warehouse 200.
[0172] There is no temporal sequence between S502 and S503, and S502 and S503 can be executed simultaneously or sequentially.
[0173] S504: Determine the fault tolerance of the model table to be tested according to the coverage rate and output time satisfaction rate of the model table to be tested, as well as the number of alarms and the task failure rate.
[0174] Based on the above description, the evaluation system 100 of the data warehouse can determine the fault tolerance of the model table to be tested according to the coverage rate and output time satisfaction rate of the model table to be tested, as well as the number of alarms and the number of task failures. When the coverage rate of the model table to be tested is higher, the output time satisfaction rate is higher, the number of alarms is lower, and the task failure rate is lower, it means that the fault tolerance of the model table to be tested is better. Therefore, the evaluation system 100 of the data warehouse can quantitatively evaluate the stability of the data warehouse 200, making the evaluation result more accurate.
[0175] Based on the description of S103, below, combined with Figure 8 , a feasible implementation method for determining the user application status of the model table to be tested by the evaluation system 100 of the data warehouse is described in detail. The specific process of determining the user application status of the model table to be tested by the evaluation system 100 of the data warehouse is as follows:
[0176] S601. Obtain metadata and tracking events of the model table to be tested from the data market module in the data warehouse.
[0177] The data warehouse evaluation system 100 can obtain the model table to be tested from the data market module 204 in the data warehouse 200. The data warehouse evaluation system 100 can obtain the metadata and embedded events of the model table to be tested from the data market module 204.
[0178] Since the process of determining the user application status of each model table in the model table to be tested is the same, the following is an example of a model table in the model table to be tested. For a model table in the model table to be tested, the data warehouse evaluation system 100 can execute S602-S604.
[0179] S602: Determine the number of times the user applies to use the model table according to the metadata of the model table.
[0180] The number of times a user applies to use the model table may include: the number of historical uses and the number of current uses.
[0181] The data warehouse evaluation system 100 can determine the number of times a user applies to use a model table based on the metadata of the model table.
[0182] S603. According to the buried events of the model table, determine the number of users who clicked on the model table and the number of times the model table was put on the shelves.
[0183] The number of users who click on the model table (unique visitor, UV) is the number of users who click on the model table in the data market module 204 .
[0184] The number of times the model table is put on the shelves is the number of times the model table is displayed in the data market module 204 .
[0185] The embedding event also includes: the number of pageviews (PV). The number of pageviews is the number of times the model table is clicked in the user data market module 204, that is, the number of times the user applies to use the model table.
[0186] The data warehouse evaluation system 100 can determine the number of users who clicked on the model table and the number of times the model table was put on the shelves according to the buried events of the model table. The data warehouse evaluation system 100 can determine the shelf rate, average time consumed for re-listing and the number of shelf indicators of the model table to be tested according to the number of times each model table was put on the shelves.
[0187] The shelf rate is the ratio of the number of model tables that have been put on the shelf to the number of model tables to be tested.
[0188] The average time consumed for re-listing is the ratio of the time it takes for the model table to be tested to be re-listed to the number of model tables to be tested.
[0189] The number of listing indicators is the number of model tables that need to be listed in the model table to be tested.
[0190] There is no temporal order between S602 and S603, and S502 and S503 can be executed simultaneously or sequentially.
[0191] S604: Determine the user application status of the model table according to the number of times the user applies to use the model table, the number of users who click on the model table, and the number of times the model table is put on the shelf.
[0192] Based on the above description, the evaluation system 100 of the data warehouse can determine the user application status of the model table to be tested according to the number of times the user applies to use each model table, the number of users who click on each model table, the number of times each model table is put on the shelves, and all model tables, that is, the shelf rate of the model table to be tested, the average time consumed for re-listing, and the number of on-shelf indicators. Therefore, the evaluation system 100 of the data warehouse can use objective evaluation standards to quantitatively evaluate the quality of the data warehouse 200 from the application aspect of the data warehouse 200.
[0193] Based on the description of S104, below, combined with Fig. 9 , a feasible implementation method for the data warehouse evaluation system 100 to determine whether the model table to be tested is a standard dimension table is described in detail. The specific process of the data warehouse evaluation system 100 to determine whether the model table to be tested is a standard dimension table is as follows:
[0194] S701. Obtain the content of the model table to be tested from the data detail module or the data summary module in the data warehouse.
[0195] The data warehouse evaluation system 100 can obtain the model table to be tested from the data detail module 202 or the data summary module 203 in the data warehouse 200. At the same time, the data warehouse evaluation system 100 can obtain the content of the model table to be tested.
[0196] Since the process of determining whether each model table in the model table to be tested is a standard dimension table is the same, the following is an example of a model table in the model table to be tested. For a model table in the model table to be tested, the data warehouse evaluation system 100 can execute S702-S711.
[0197] S702: Determine whether a second preset field exists in the content of the model table.
[0198] If yes, the data warehouse evaluation system 100 may execute S704 to S711. If no, the data warehouse evaluation system 100 may execute S703.
[0199] The data warehouse evaluation system 100 can determine whether the second preset field exists in the content of the model table according to the second preset field.
[0200] S703: When the second preset field does not exist in the content of the model table, determine that the model table is consistent with the standard dimension table.
[0201] When determining that the second preset field does not exist in the content of the model table, the data warehouse evaluation system 100 may determine that the model table is consistent with the standard dimension table.
[0202] S704: When there is a second preset field in the content of the model table, determine other model tables in the model table to be tested that have upstream and downstream relationships with the model table.
[0203] When determining that the second preset field exists in the content of the model table, the data warehouse evaluation system 100 may determine other model tables in the model table to be tested that have upstream and downstream relationships with the model table.
[0204] S705: Determine whether the other model table is a preset dimension table.
[0205] The preset dimension table can be determined based on the standard dimension table. The preset dimension table is a model table with a similarity of 95% or more to the standard dimension table. The preset dimension table can also be a model table with the same source as the source table of the standard dimension table, or a model table synthesized from the main table and the core field dimension table of the synthesized standard dimension table.
[0206] The main table is a model table of the main data source of the standard dimension table. The core dimension field table is a model table that stores the second preset field of the standard dimension table.
[0207] The data warehouse evaluation system 100 may determine whether other model tables are preset dimension tables according to the contents of other model tables.
[0208] If yes, the data warehouse evaluation system 100 may execute S706. If no, the data warehouse evaluation system 100 may execute S707-S711.
[0209] S706: Determine whether the model table is not a standard dimension table.
[0210] When determining that there is a second preset field in the content of the model table and other model tables in the model table to be tested that have upstream and downstream relationships with the model table are preset dimension tables, the data warehouse evaluation system 100 may determine that the model table is not a standard dimension table.
[0211] S707: Determine whether the number of layers of other model tables is greater than or equal to a preset number of layers.
[0212] If yes, the data warehouse evaluation system 100 may execute S708. If no, the data warehouse evaluation system 100 may execute S709-S711.
[0213] When the data warehouse evaluation system 100 determines that there is a second preset field in the model table and other model tables in the model table to be tested that have upstream and downstream relationships with the model table are not non-standard dimension tables, it can continue to determine whether the number of layers of other model tables in the model table to be tested that have upstream and downstream relationships with the model table is greater than or equal to the preset number of layers.
[0214] S708. Determine whether the model table is not a standard dimension table.
[0215] The evaluation system 100 of the data warehouse can determine that the model table is not a standard dimension table when it is determined that there is a second preset field in the model table, other model tables in the model table to be tested that have upstream and downstream relationships with the model table are not non-standard dimension tables, and the number of layers of other model tables in the model table to be tested that have upstream and downstream relationships with the model table is greater than or equal to the preset number of layers. At this time, the evaluation system 100 of the data warehouse can determine that the upstream and downstream relationship of the model table is too complicated. This allows the user to reasonably optimize the upstream and downstream relationship of the model table.
[0216] S709: Determine whether there is a second preset field in the content of other model tables.
[0217] If yes, the data warehouse evaluation system 100 may execute S711. If no, the data warehouse evaluation system 100 may execute S710.
[0218] The data warehouse evaluation system 100 can further determine whether there is a second preset field in the content of the determined model table, and when other model tables in the model table to be tested that have upstream and downstream relationships with the model table are not non-standard dimension tables, and the number of layers of other model tables in the model table to be tested that have upstream and downstream relationships with the model table is less than the preset number of layers, it can be determined whether there is a second preset field in the content of other model tables in the model table to be tested that have upstream and downstream relationships with the model table.
[0219] S710: Determine whether the model table is a standard dimension table.
[0220] The data warehouse evaluation system 100 can determine that the model table is a standard dimension table when the second preset field exists in the content of the determined model table, other model tables in the model table to be tested that have upstream and downstream relationships with the model table are not non-standard dimension tables, the number of layers of other model tables in the model table to be tested that have upstream and downstream relationships with the model table is less than the preset number of layers, and the second preset field does not exist in the content of other model tables in the model table to be tested that have upstream and downstream relationships with the model table.
[0221] S711. Determine the model tables in the model table to be tested that have upstream and downstream relationships with other model tables, and continue to execute S705-S709 until the number of layers of other model tables in the model table to be tested that have upstream and downstream relationships with the model table is greater than or equal to the preset number of layers.
[0222] The data warehouse evaluation system 100 determines that there is a second preset field in the content of the model table, other model tables in the model table to be tested that have upstream and downstream relationships with the model table are not non-standard dimension tables, the number of layers of other model tables in the model table to be tested that have upstream and downstream relationships with the model table is less than the preset number of layers, and there is a second preset field in the content of other model tables in the model table to be tested that have upstream and downstream relationships with the model table.
[0223] Based on this, the evaluation system 100 of the data warehouse can continue to determine the model tables in the model table to be tested that have upstream and downstream relationships with other model tables. After determining the model tables in the model table to be tested that have upstream and downstream relationships with other model tables, the evaluation system 100 of the data warehouse can continue to execute S705-S709 until the number of layers of other model tables in the model table to be tested that have upstream and downstream relationships with the model table is greater than or equal to the preset number of layers.
[0224] In addition, after determining that the other model tables are not preset dimension tables, the evaluation system 100 of the data warehouse may also determine whether the other model tables have corresponding task information. If so, the evaluation system 100 of the data warehouse may execute S707-S711. If not, the evaluation system 100 of the data warehouse may determine that the upstream and downstream relationships of the model tables are interrupted. For example, the task information corresponding to the other model tables is to repair zip or shell, etc., and the task number cannot be determined, resulting in the interruption of the upstream and downstream relationships.
[0225] In summary, the data warehouse evaluation system 100 can determine whether the model table to be tested is a standard dimension table.
[0226] Based on the description of S105, below, combined with Fig.10 , a feasible implementation method for determining the calling status of the model table to be tested by the evaluation system 100 of the data warehouse is described in detail. The specific process of determining the calling status of the model table to be tested by the evaluation system 100 of the data warehouse is as follows:
[0227] S801. Obtain metadata of the model table to be tested from the original data module in the data warehouse.
[0228] The model table to be tested is the model table in the original data module 201 .
[0229] The data warehouse evaluation system 100 can obtain the model table to be tested from the original data module 201 in the data warehouse 200. At the same time, the data warehouse evaluation system 100 can obtain the metadata of the model table to be tested.
[0230] S802: Determine the usage count, the first call count, and the second call count of the model table to be tested according to metadata of the model table to be tested.
[0231] The usage count of the model table to be tested is the usage count of the model table in the original data module 201 .
[0232] The first call count is the number of times the model table in other modules in the data warehouse 200 calls the model table to be tested. The other modules include the data detail module 202, the data summary module 203, the data market module 204 and the public dimension module 205 in the data warehouse 200.
[0233] The second calling number is the number of times the model table in the data detail module 202 or the data summary module 203 calls the model table to be tested.
[0234] The data warehouse evaluation system 100 can determine the usage count, the first call count, and the second call count of the model table to be tested according to the metadata of the model table to be tested.
[0235] S803: Determine the query rate of the model table to be tested according to the number of times the model table to be tested is used and the first number of times it is called.
[0236] The query rate is used to indicate the reference relationship between the model table to be tested in the original data module and the model table to be tested in other modules.
[0237] The data warehouse evaluation system 100 can determine the query rate of the model table to be tested as the ratio of the first call number to the number of times the model table to be tested is used based on the number of times the model table to be tested is used and the first call number. The data warehouse evaluation system 100 can quantitatively evaluate the perfection of the data warehouse 200 based on the query rate of the model table to be tested.
[0238] S804: Determine the construction rate of the model table to be tested according to the number of times the model table to be tested is used and the second number of times it is called.
[0239] The construction rate is used to represent the reference relationship between the model table to be tested in the original data module and the model table to be tested in the data detail module or the data summary module.
[0240] The data warehouse evaluation system 100 can determine the construction rate of the model table to be tested as the ratio of the second call number to the number of times the model table to be tested is used based on the number of times the model table to be tested is used and the second call number. The data warehouse evaluation system 100 can quantitatively evaluate the perfection of the data warehouse 200 based on the construction rate of the model table to be tested.
[0241] There is no temporal sequence between S803 and S804, and S502 and S503 can be executed simultaneously or sequentially.
[0242] S805. Determine the calling status of the model table to be tested according to the query rate and the construction rate.
[0243] The data warehouse evaluation system 100 can determine the call status of the model table to be tested according to the query rate and the construction rate. When the query rate and the construction rate are both small, it means that the call status of the model table to be tested is less, and the perfection of the data warehouse 200 is higher.
[0244] In addition, the evaluation system 100 of the data warehouse can also obtain the model table to be tested from the data detail module 202, the data summary module 203 or the data market module 204. The evaluation system 100 of the data warehouse can determine the number of times the model table to be tested is used according to the metadata of the model table to be tested. Based on this, the evaluation system 100 of the data warehouse can determine the number of times the model table to be tested in the data detail module 202 is used, the number of times the model table to be tested in the data summary module 203 is used, and the number of times the model table to be tested in the data market module 204 is used. Thus, the evaluation system 100 of the data warehouse can quantitatively evaluate the perfection of the data warehouse 200 according to the number of times the model table to be tested in the three modules of the data detail module 202, the data summary module 203 and the data market module 204 is used.
[0245] The data warehouse evaluation system 100 in the embodiment of the present application can also evaluate the quality of the data warehouse 200 based on the reuse of the model table, that is, the probability of the model table being reused and the quality monitoring index.
[0246] See also Fig.11 , Fig.11 FIG. 1 is a schematic block diagram of a data warehouse evaluation device provided in an embodiment of the present application. Fig.11 As shown, the data warehouse evaluation device 900 of the present application may include:
[0247] Determination module 901 is used to determine the unused status of the model table to be tested, determine whether the metadata of the model table to be tested is standardized, and determine the security level of the model table to be tested based on the metadata of the model table to be tested in the data warehouse. The unused status of the model table to be tested is used to indicate the resource degree of the data warehouse, whether the metadata of the model table to be tested is standardized is used to indicate the standardization degree of the data warehouse, and the security level of the model table to be tested is used to indicate the security degree of the data warehouse.
[0248] The determination module 901 is further used to determine the fault tolerance of the model table to be tested according to the metadata of the model table to be tested and the task information corresponding to the model table to be tested. The fault tolerance of the model table to be tested is used to indicate the stability of the data warehouse.
[0249] The determination module 901 is also used to determine the user application status of the model table to be tested according to the metadata and embedded events of the model table to be tested. The user application status of the model table to be tested is used to represent the application degree of the data warehouse.
[0250] The determination module 901 is further used to determine whether the model table to be tested is consistent with the standard dimension table according to the content of the model table to be tested. Whether the model table to be tested is consistent with the standard dimension table is used to indicate the credibility of the data warehouse.
[0251] The determination module 901 is further used to determine the calling status of the model table to be tested according to the metadata and upstream and downstream relationships of the model table to be tested. The calling status of the model table to be tested is used to indicate the completeness of the data warehouse.
[0252] Processing module 902 is used to evaluate the quality of the data warehouse based on the unused status of the model table to be tested, whether the metadata is standardized, the security level, the fault tolerance, the user application status and the call status, and whether the model table to be tested is consistent with the standard dimension table.
[0253] In some embodiments, the determination module 901 is specifically used to obtain metadata of the model table to be tested from the data detail module, the data summary module and the data market module in the data warehouse; according to the metadata of the model table to be tested, determine the usage quantity and storage size of the model table to be tested, the usage quantity of the model table to be tested being the number of used model tables in the model table to be tested; according to the usage quantity and storage size of the model table to be tested, determine the unused status of the model table to be tested including the invalid task rate and the invalid storage rate, the invalid task rate being the ratio of the number of unused model tables in the model table to be tested to the number of model tables to be tested, and the invalid storage rate being the ratio of the storage size of the unused model tables to the storage size of the model table to be tested.
[0254] In some embodiments, the determination module 901 is specifically used to obtain the metadata of the model table to be tested from at least one of the data detail module, the data summary module and the data market module in the data warehouse; for a model table in the model table to be tested, when the metadata of the model table meets the preset rules, determine the metadata standard of the model table; when the metadata of the model table does not meet the preset rules, determine that the metadata of the model table is non-standard.
[0255] In some embodiments, the determination module 901 is specifically used to obtain metadata of the model table to be tested from at least one of the data market module, the data detail module or the data summary module in the data warehouse; for a model table in the model table to be tested, when there is a first preset field in the metadata of the model table, the security level of the model table is determined to be a high security level; when the first preset field does not exist in the metadata of the model table, the security level of the model table is determined to be a low security level.
[0256] In some embodiments, the determination module 901 is specifically used to obtain the metadata of the model table to be tested and the task information corresponding to the model table to be tested from the data detail module, the data summary module and the data market module in the data warehouse; determine the coverage rate and the output time satisfaction rate of the model table to be tested according to the metadata of the model table to be tested, the coverage rate is the ratio of the number of model tables with configured monitoring functions in the model table to be tested to the number of model tables to be tested, and the output time satisfaction rate is the ratio of the number of model tables that meet the preset output time in the model table to be tested to the number of model tables to be tested; determine the number of alarms and the task failure rate according to the task information corresponding to the model table to be tested, the number of alarms is the number of times the preset alarm conditions are triggered during the task operation, and the task failure rate is the ratio of the number of task operation failures to the total number of task operations; determine the fault tolerance of the model table to be tested according to the coverage rate and the output time satisfaction rate of the model table to be tested, as well as the number of alarms and the number of task failures.
[0257] In some embodiments, the determination module 901 is specifically used to obtain the metadata and tracking events of the model table to be tested from the data market module in the data warehouse; for a model table among the model tables to be tested, determine the number of times the user has applied to use the model table based on the metadata of the model table; determine the number of users who clicked on the model table and the number of times the model table was put on the shelf based on the tracking events of the model table; determine the user application status of the model table based on the number of times the user applied to use the model table, the number of users who clicked on the model table and the number of times the model table was put on the shelf.
[0258] In some embodiments, the determination module 901 is specifically used to obtain the content of the model table to be tested from the data detail module or the data summary module in the data warehouse; for a model table in the model table to be tested, when there is a second preset field in the content of the model table, and when the second preset field does not exist in the content of other model tables in the model table to be tested that have upstream and downstream relationships with the model table, it is determined that the model table is consistent with the standard dimension table; when there is no second preset field in the content of the model table, or there is a second preset field in the content of other model tables in the model table to be tested that have upstream and downstream relationships with the model table, and there is a second preset field in the content of the model table in the model table to be tested that has upstream and downstream relationships with other model tables, it is determined that the model table is consistent with the standard dimension table.
[0259] In some embodiments, the determination module 901 is specifically used to obtain metadata of the model table to be tested from the original data module in the data warehouse; according to the metadata of the model table to be tested, determine the number of uses, the first number of calls and the second number of calls of the model table to be tested, the first number of calls being the number of times the model table in other modules in the data warehouse calls the model table to be tested, and the other modules include the data detail module, the data summary module, the data market module and the common dimension module in the data warehouse, and the second number of calls being the number of times the model table in the data detail module or the data summary module calls the model table to be tested; according to the number of uses of the model table to be tested and the first number of calls, determine the query rate of the model table to be tested, the query rate being the ratio of the first number of calls to the number of uses of the model table to be tested; according to the number of uses of the model table to be tested and the second number of calls, determine the construction rate of the model table to be tested, the construction rate being the ratio of the second number of calls to the number of uses of the model table to be tested; according to the query rate and the construction rate, determine the calling situation of the model table to be tested.
[0260] An embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps in the above-mentioned method embodiments can be implemented.
[0261] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0262] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0263] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean 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 application.
[0264] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0265] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the above-mentioned method embodiment, which will not be repeated here.
[0266] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A data warehouse evaluation method, It is characterized in that The method comprises: According to the metadata of the model table to be tested in the data warehouse, determine whether the model table to be tested is unused, whether the metadata of the model table to be tested is standardized, and determine the security level of the model table to be tested, the unused status of the model table to be tested is used to indicate the resource degree of the data warehouse, whether the metadata of the model table to be tested is standardized is used to indicate the standardization degree of the data warehouse, and the security level of the model table to be tested is used to indicate the security degree of the data warehouse; Determine the fault tolerance of the model table to be tested according to the metadata of the model table to be tested and the task information corresponding to the model table to be tested, wherein the fault tolerance of the model table to be tested is used to indicate the stability of the data warehouse; Determine the user application status of the model table to be tested according to the metadata and the buried event of the model table to be tested, wherein the user application status of the model table to be tested is used to indicate the application degree of the data warehouse; Determining whether the model table to be tested is a standard dimension table according to the content of the model table to be tested, and whether the model table to be tested is the standard dimension table is used to represent the credibility of the data warehouse; Determine the calling status of the model table to be tested according to the metadata and upstream and downstream relationships of the model table to be tested, and the calling status of the model table to be tested is used to indicate the perfection of the data warehouse; The quality of the data warehouse is evaluated based on the unused status of the model table to be tested, whether the metadata is standardized, the security level, the fault tolerance, the user application status and the calling status, and whether the model table to be tested is the standard dimension table.
2. The method according to claim 1, It is characterized in that The step of determining the unused condition of the model table to be tested according to the metadata of the model table to be tested in the data warehouse includes: Obtaining metadata of the model table to be tested from a data detail module, a data summary module, and a data market module in the data warehouse; Determine the usage quantity and storage size of the model table to be tested according to the metadata of the model table to be tested, wherein the usage quantity of the model table to be tested is the number of used model tables in the model table to be tested; According to the number of used model tables and storage size of the model table to be tested, the unused status of the model table to be tested is determined, including the invalid task rate and the invalid storage rate. The invalid task rate is the ratio of the number of unused model tables in the model table to be tested to the number of model tables to be tested, and the invalid storage rate is the ratio of the storage size of the unused model table to the storage size of the model table to be tested.
3. The method according to claim 1, It is characterized in that Determining whether the metadata of the model table to be tested is standardized includes: Acquire metadata of the model table to be tested from at least one of a data detail module, a data summary module, and a data market module in the data warehouse; For a model table in the model tables to be tested, when the metadata of the model table meets the preset rules, the metadata standard of the model table is determined; when the metadata of the model table does not meet the preset rules, the metadata of the model table is determined to be non-standard.
4. The method according to claim 1, It is characterized in that Determining the security level of the model table to be tested according to the metadata of the model table to be tested includes: Acquire metadata of the model table to be tested from at least one of a data market module, a data detail module or a data summary module in the data warehouse; For a model table in the model table to be tested, when there is a first preset field in the metadata of the model table, the security level of the model table is determined to be a high security level; when there is no first preset field in the metadata of the model table, the security level of the model table is determined to be a low security level.
5. The method according to claim 1, It is characterized in that Determining the fault tolerance of the model table to be tested according to the metadata of the model table to be tested and the task information corresponding to the model table to be tested includes: Acquire metadata of the model table to be tested and task information corresponding to the model table to be tested from a data detail module, a data summary module and a data market module in the data warehouse; According to the metadata of the model table to be tested, determine the coverage rate and output time satisfaction rate of the model table to be tested, the coverage rate is the ratio of the number of model tables with configured monitoring functions in the model table to be tested to the number of model tables to be tested, and the output time satisfaction rate is the ratio of the number of model tables in the model table to be tested that meet the preset output time length to the number of model tables to be tested; Determine the number of alarms and the task failure rate according to the task information corresponding to the table of models to be tested, wherein the number of alarms is the number of times a preset alarm condition is triggered during task operation, and the task failure rate is the ratio of the number of task operation failures to the total number of task operations; The fault tolerance of the model table to be tested is determined according to the coverage rate and output time satisfaction rate of the model table to be tested, as well as the number of alarms and the number of task failures.
6. The method according to claim 1, It is characterized in that Determining the user application status of the model table to be tested according to the metadata of the model table to be tested includes: Obtaining metadata and tracking events of the model table to be tested from the data market module in the data warehouse; For a model table in the model tables to be tested, determining the number of times a user applies to use the model table according to metadata of the model table; According to the buried events of the model table, determine the number of users who clicked on the model table and the number of times the model table was put on the shelves; The user application status of the model table is determined according to the number of times the user applies to use the model table, the number of users who click on the model table, and the number of times the model table is put on the shelf.
7. The method according to claim 1, It is characterized in that The step of determining whether the model table to be tested is a standard dimension table according to the content of the model table to be tested includes: Obtaining the content of the model table to be tested from a data detail module or a data summary module in the data warehouse; For a model table in the model table to be tested, when a second preset field exists in the content of the model table, and other model tables in the model table to be tested that have an upstream and downstream relationship with the model table are preset dimension tables, determining that the model table is the standard dimension table; When there is a second preset field in the content of the model table, other model tables in the model table to be tested that have upstream and downstream relationships with the model table are not preset dimension tables, and the number of layers of other model tables in the model table to be tested that have upstream and downstream relationships with the model table is greater than or equal to the preset number of layers, it is determined that the model table is not the standard dimension table; When there is no second preset field in the content of the model table, or the number of layers of other model tables in the model table to be tested that have upstream and downstream relationships with the model table is less than the preset number of layers, and there is a second preset field in the content of other model tables in the model table to be tested that have upstream and downstream relationships with the model table, determine whether there is a second preset field in the content of the model tables in the model table to be tested that have upstream and downstream relationships with the other model tables, until the number of layers of other model tables in the model table to be tested that have upstream and downstream relationships with the model table is greater than or equal to the preset number of layers.
8. The method according to claim 1, It is characterized in that The step of determining the calling status of the model table to be tested according to the metadata of the model table to be tested includes: Acquire metadata of the model table to be tested from the original data module in the data warehouse; Determine the number of times the model table to be tested is used, the first number of calls, and the second number of calls according to the metadata of the model table to be tested, wherein the first number of calls is the number of times the model table to be tested is called by the model table in other modules in the data warehouse, and the other modules include the data detail module, the data summary module, the data market module, and the public dimension module in the data warehouse, and the second number of calls is the number of times the model table in the data detail module or the data summary module calls the model table to be tested; Determine a query rate of the model table to be tested according to the number of times the model table to be tested is used and the first number of calls, wherein the query rate is used to represent a reference relationship between the model table to be tested in the original data module and the model table to be tested in the other modules; Determine, according to the number of times the model table to be tested is used and the second number of times it is called, a construction rate of the model table to be tested, wherein the construction rate is used to represent a reference relationship between the model table to be tested in the original data module and the model table to be tested in the data detail module or the data summary module; The calling status of the model table to be tested is determined according to the query rate and the construction rate.
9. A data warehouse evaluation device, It is characterized in that The apparatus comprises a module for implementing the method according to any one of claims 1-8.
10. A readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
