A data processing method and device
By splitting the original data table and judging the similarity, a universal data table is established, which solves the problem of repeated construction of data tables, reduces resource waste and management complexity, and improves data reusability.
Patent Information
- Application Number
- CN201911211509.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-02
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2039-12-02
AI Technical Summary
In the existing technology, due to the increase in the number of data demanders and the expansion of data demand, a large number of data tables are repeatedly constructed, resulting in a waste of data storage resources and computing resources, and high complexity of data management.
By splitting the original data table, the indicator sequence is obtained, and the similarity between the indicator sequences is judged according to the similarity threshold, and a target general data table is established to reduce repeated construction.
It realizes the rapid search for highly similar indicator sequences in multiple personalized data tables, reduces the waste of data storage and computing resources, reduces the complexity of data management, and improves data reusability.
Smart Images

Figure CN112988698B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and more particularly to a data processing method, a data processing device and an electronic device. Background Art
[0002] In the business operation process of e-commerce, finance, logistics, manufacturing, medical care, entertainment and other industries, a large amount of business data will be generated, and an enterprise-level data warehouse needs to be established to provide decision-making support for the enterprise. At the same time, in order to meet the decision-making needs of various business departments of the enterprise (such as risk control department, financial department, marketing department, etc.), a corresponding data mart also needs to be established.
[0003] In order to meet the rapidly growing personalized business needs, each data demander also needs to derive various data tables at the data mart layer or data application layer. However, due to the increase in the number of data demanders, the continuous expansion of data needs, and the poor data sharing of each data demander, a large number of data tables will be repeatedly built, causing each data demander to consume too much data storage resources and data computing resources due to repeated construction of data tables, and making the data management process of each data demander more complex. Summary of the invention
[0004] The embodiments of the present application provide a data processing method, device and electronic device to solve the existing problems of excessive consumption of data storage resources and data computing resources due to repeated construction of data tables and high complexity of the data management process.
[0005] The present application provides a data processing method, including:
[0006] Obtain a first original data table and a second original data table;
[0007] Splitting the first original data table to obtain a first indicator sequence, and splitting the second original data table to obtain a second indicator sequence;
[0008] If the similarity between the first indicator sequence and the second indicator sequence reaches a predetermined similarity threshold, a target general data table is obtained according to the first indicator sequence or the second indicator sequence.
[0009] Optionally, the method further includes: performing a similarity comparison between the indicator data in the first indicator sequence and the indicator data in the second indicator sequence to obtain a similarity value of the indicator data;
[0010] If the indicator data similarity value reaches a predetermined indicator data similarity threshold, it is determined that the similarity between the first indicator sequence and the second indicator sequence reaches the predetermined similarity threshold.
[0011] Optionally, the method further includes: performing a similarity comparison between the metadata of the first indicator sequence and the metadata of the second indicator sequence to obtain a metadata similarity value;
[0012] If the metadata similarity value reaches a predetermined metadata similarity threshold, then the indicator data in the first indicator sequence is compared with the indicator data in the second indicator sequence for similarity to obtain an indicator data similarity value;
[0013] If the indicator data similarity value reaches a predetermined indicator data similarity threshold, it is determined that the similarity between the first indicator sequence and the second indicator sequence reaches the predetermined similarity threshold.
[0014] Optionally, it further includes: performing a similarity comparison between the distribution statistics of the indicator data in the first indicator sequence and the distribution statistics of the indicator data in the second indicator sequence to obtain a distribution statistics similarity value;
[0015] If the distribution statistical similarity value reaches a predetermined distribution statistical similarity threshold, then the indicator data in the first indicator sequence is compared with the indicator data in the second indicator sequence for similarity to obtain an indicator data similarity value;
[0016] If the indicator data similarity value reaches a predetermined indicator data similarity threshold, it is determined that the similarity between the first indicator sequence and the second indicator sequence reaches the predetermined similarity threshold.
[0017] Optionally, the method further includes: performing a similarity comparison between the metadata of the first indicator sequence and the metadata of the second indicator sequence to obtain a metadata similarity value;
[0018] If the metadata similarity value reaches a predetermined metadata similarity threshold, then performing a similarity comparison on the distribution statistics of the indicator data in the first indicator sequence and the distribution statistics of the indicator data in the second indicator sequence to obtain a distribution statistics similarity value;
[0019] If the distribution statistical similarity value reaches a predetermined distribution statistical similarity threshold, then the indicator data in the first indicator sequence is compared with the indicator data in the second indicator sequence for similarity to obtain an indicator data similarity value;
[0020] If the indicator data similarity value reaches a predetermined indicator data similarity threshold, it is determined that the similarity between the first indicator sequence and the second indicator sequence reaches the predetermined similarity threshold.
[0021] Optionally, performing a similarity comparison on the indicator data in the first indicator sequence and the indicator data in the second indicator sequence to obtain an indicator data similarity value includes:
[0022] Obtaining first index data and second index data matching the primary key data, and obtaining first quantity information of the first index data or the second index data, wherein the first index data comes from the first index sequence, and the second index data comes from the second index sequence;
[0023] Performing similarity calculation on the first indicator data and the second indicator data to obtain second quantity information of indicator data pairs whose similarity reaches a target similarity threshold;
[0024] The ratio of the second quantity information to the first quantity information is determined as the indicator data similarity value.
[0025] Optionally, the first indicator data and the second indicator data are numerical indicator data, and the similarity calculation is performed on the first indicator data and the second indicator data to obtain second quantity information of indicator data pairs whose similarity reaches a target similarity threshold, including:
[0026] Converting the first indicator data and the second indicator data into digital indicator data;
[0027] Performing precision conversion on the digital indicator data;
[0028] Perform similarity calculation on the first indicator data and the second indicator data after precision conversion to obtain first target indicator data and second target indicator data whose similarity reaches a first target similarity threshold, the first target indicator data belongs to the first indicator data, the second target indicator data belongs to the second indicator data, and the first target indicator data and the second target indicator data constitute the indicator data pair;
[0029] The quantities of the indicator data pairs are summarized to obtain the second quantity information.
[0030] Optionally, the first indicator data and the second indicator data are character indicator data, and the similarity calculation is performed on the first indicator data and the second indicator data to obtain second quantity information of indicator data pairs whose similarity reaches a target similarity threshold, including:
[0031] Performing vectorization processing on the first indicator data to obtain a first indicator vector, and performing vectorization processing on the second indicator data to obtain a second indicator vector;
[0032] Performing cosine similarity calculation on the first indicator vector and the second indicator vector to obtain a first target indicator vector and a second target indicator vector whose similarity reaches a second target similarity threshold, the first target indicator vector belongs to the first indicator vector, the second target indicator vector belongs to the second indicator vector, and the first target indicator data corresponding to the first target indicator vector and the second target indicator data corresponding to the second target indicator vector constitute the indicator data pair;
[0033] The quantities of the indicator data pairs are summarized to obtain the second quantity information.
[0034] Optionally, obtaining the first index data and the second index data that match the primary key data includes:
[0035] Performing random sampling processing on the indicator data in the first indicator sequence to obtain a first indicator data matrix, and performing random sampling processing on the indicator data in the first indicator sequence to obtain a second indicator data matrix;
[0036] The first indicator data matrix and the second indicator data matrix are associated to obtain the first indicator data and the second indicator data that match the primary key data.
[0037] Optionally, performing a similarity comparison on the metadata of the first indicator sequence and the metadata of the second indicator sequence to obtain a metadata similarity value includes:
[0038] Obtaining first metadata of the first indicator sequence, and obtaining second metadata of the second indicator sequence, wherein the first metadata and the second metadata are metadata of the same category;
[0039] converting the first metadata into a first feature vector, and converting the second metadata into a second feature vector;
[0040] The similarity between the first feature vector and the second feature vector is calculated to obtain a metadata similarity value.
[0041] Optionally, the obtaining the first metadata of the first indicator sequence and the obtaining the second metadata of the second indicator sequence includes: obtaining a plurality of first metadata of the first indicator sequence and obtaining a plurality of second metadata of the second indicator sequence;
[0042] Correspondingly, converting the first metadata into a first feature vector and converting the second metadata into a second feature vector according to the level information of the homology table includes:
[0043] According to the level information of the homology table, converting the plurality of first metadata into a plurality of first feature vectors, and converting the plurality of second metadata into a plurality of second feature vectors;
[0044] Correspondingly, calculating the similarity between the first feature vector and the second feature vector to obtain a metadata similarity value includes:
[0045] Merging the plurality of first feature vectors into a first target vector, and merging the plurality of second feature vectors into a second target vector;
[0046] The similarity between the first target vector and the second target vector is calculated to obtain the metadata similarity value.
[0047] Optionally, the metadata of the first indicator sequence includes indicator lineage data of the first indicator sequence, the metadata of the second indicator sequence includes indicator lineage data of the second indicator sequence, and the converting the first metadata into a first feature vector and the converting the second metadata into a second feature vector include:
[0048] Constructing a relationship graph based on the indicator lineage data of the first indicator sequence and the indicator lineage data of the second indicator sequence, in which the points represent the first indicator sequence and the second indicator sequence, and the edges represent the weight information assigned according to the level information of the homology table corresponding to the first indicator sequence and the second indicator sequence;
[0049] A first eigenvector and a second eigenvector are obtained according to the relationship graph.
[0050] Optionally, performing a similarity comparison on the distribution statistics of the indicator data in the first indicator sequence and the distribution statistics of the indicator data in the second indicator sequence to obtain a distribution statistics similarity value includes:
[0051] Sampling the indicator data in the first indicator sequence to obtain first candidate indicator data, and sampling the indicator data in the second indicator sequence to obtain second candidate indicator data;
[0052] Obtaining first distribution statistical data of the first candidate indicator data, and obtaining second distribution statistical data of the second candidate indicator data, wherein the first distribution statistical data and the second distribution statistical data are distribution statistical data of the same type;
[0053] The similarity between the first distribution statistical data and the second distribution statistical data is calculated to obtain the distribution statistical similarity value.
[0054] Optionally, the obtaining first distribution statistical data of the first candidate indicator data and obtaining second distribution statistical data of the second candidate indicator data include:
[0055] Obtaining a plurality of first distribution statistical data of the first candidate indicator data, and obtaining a plurality of second distribution statistical data of the second candidate indicator data;
[0056] Correspondingly, the calculating the similarity between the first distribution statistical data and the second distribution statistical data to obtain the distribution statistical similarity value includes:
[0057] A clustering algorithm is used to calculate the similarity between the plurality of first distribution statistical data and the plurality of second distribution statistical data to obtain the distribution statistical similarity value.
[0058] Optionally, obtaining the first original data table and the second original data table includes:
[0059] Get the alternative raw data table with matching names;
[0060] The metadata of the candidate original data table is analyzed to obtain a first original data table and a second original data table whose metadata similarity values reach a target metadata similarity threshold.
[0061] Optionally, splitting the first original data table to obtain a first indicator sequence, and splitting the second original data table to obtain a second indicator sequence includes:
[0062] The first original data table is split according to a method in which one primary key sequence corresponds to one index sequence to obtain a first group of primary key-index sequence pairs, and the second original data table is split according to a method in which one primary key sequence corresponds to one index sequence to obtain a second group of primary key-index sequence pairs;
[0063] The first index sequence is obtained from the first set of primary key-index sequence pairs, and the second index sequence is obtained from the second set of primary key-index sequence pairs.
[0064] Optionally, obtaining a target general data table according to the first indicator sequence or the second indicator sequence includes:
[0065] According to a predetermined data warehouse subject domain construction standard, a target general data table is established based on the first indicator sequence and the first primary key sequence corresponding to the first indicator sequence, or a target general data table is established based on the second indicator sequence and the second primary key sequence corresponding to the second indicator sequence.
[0066] Optionally, the method further includes: rectifying the first original data table according to the target data general table.
[0067] Optionally, the method further includes: rectifying the second original data table according to the target data general table.
[0068] Optionally, it further includes: verifying whether the caliber information of the first indicator sequence matches the caliber information of the second indicator sequence;
[0069] The step of obtaining a target general data table according to the first indicator sequence or the second indicator sequence includes:
[0070] After determining that the caliber information of the first indicator sequence matches the caliber information of the second indicator sequence, a target general data table is obtained according to the first indicator sequence or the second indicator sequence.
[0071] Another embodiment of the present application further provides a data processing device, the device comprising:
[0072] An original data table obtaining unit, used to obtain a first original data table and a second original data table;
[0073] An indicator sequence obtaining unit, configured to split the first original data table to obtain a first indicator sequence, and split the second original data table to obtain a second indicator sequence;
[0074] The target general data table obtaining unit is used to obtain the target general data table according to the first indicator sequence or the second indicator sequence when it is determined that the similarity between the first indicator sequence and the second indicator sequence reaches a predetermined similarity threshold.
[0075] Another embodiment of the present application further provides an electronic device, including a processor and a memory; wherein:
[0076] The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the following operations:
[0077] Obtain a first original data table and a second original data table;
[0078] Splitting the first original data table to obtain a first indicator sequence, and splitting the second original data table to obtain a second indicator sequence;
[0079] If the similarity between the first indicator sequence and the second indicator sequence reaches a predetermined similarity threshold, a target general data table is obtained according to the first indicator sequence or the second indicator sequence.
[0080] Another embodiment of the present application further provides a data processing method, including:
[0081] Receive multiple raw data tables as input;
[0082] A target general data table is obtained according to the multiple original data tables, and the target general data table is output; wherein any one indicator sequence of the target general data table is an indicator sequence among similar indicator sequences between at least two original data tables among the multiple original data tables, and the similarity between the similar indicator sequences reaches a predetermined similarity threshold.
[0083] Another embodiment of the present application further provides a data processing method, including:
[0084] Get the target general data table;
[0085] Obtaining generation source data of the target general data table;
[0086] According to the generation source data of the target general data table, obtaining at least two source data tables required for generating the target general data table;
[0087] The indicator sequence of the target common data table is a similar indicator sequence between the at least two source data tables, and the similarity between the similar indicator sequences reaches a predetermined similarity threshold.
[0088] Another embodiment of the present application further provides a data processing method, including:
[0089] Obtain the sequence of indicators to be constructed of the data table that the target subject wants to construct;
[0090] If the similarity between the indicator sequence to be constructed and the target indicator sequence of the target general data table reaches a predetermined similarity threshold, the target general data table is pushed to the target subject.
[0091] Compared with the prior art, the embodiments of the present application have the following advantages:
[0092] The data processing method provided by the embodiment of the present application includes: obtaining a first original data table and a second original data table; splitting the first original data table to obtain a first indicator sequence, and splitting the second original data table to obtain a second indicator sequence; if the similarity between the first indicator sequence and the second indicator sequence reaches a predetermined similarity threshold, then obtaining a target general data table according to the first indicator sequence or the second indicator sequence. The method obtains multiple indicator sequences by splitting the first original data table and the second original data table, and after determining that the similarity values between the indicator sequences split from the above different original data tables reach a predetermined similarity threshold, the target general data table is constructed according to the indicator sequences split from the above different original data tables. By using this method, an indicator sequence with a high similarity can be quickly found in many existing personalized data tables, and a general data table is established based on this, so that the general data table constructed once can be used multiple times by each data demander, without the need for each data demander to repeatedly construct a data table for the same or similar data content, which can reduce the consumption of data storage resources and data computing resources caused by the existing repeated construction of data tables, and reduce the complexity of the data management process. BRIEF DESCRIPTION OF THE DRAWINGS
[0093] Figure 1 is a flow chart of a data processing method provided in the first embodiment of the present application;
[0094] Figure 1-A is a schematic diagram of a data processing method provided in the first embodiment of the present application;
[0095] Figure 1-B It is a schematic diagram of an application scenario of the data processing method provided in the first embodiment of the present application;
[0096] Figure 2 is a unit block diagram of a data processing device provided in a second embodiment of the present application;
[0097] Figure 3 is a schematic diagram of the logical structure of an electronic device provided in the third embodiment of the present application;
[0098] Figure 4 is a flow chart of a data processing method provided in the fourth embodiment of the present application;
[0099] Figure 5 is a flow chart of a data processing method provided in the fifth embodiment of the present application;
[0100] Figure 6 It is a flowchart of the data processing method provided in the sixth embodiment of the present application. DETAILED DESCRIPTION
[0101] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0102] In the process of business operation, in order to solve problems such as data consistency and reusability, the enterprise-level data warehouse can provide decision support for the enterprise, and the data mart can provide decision support for the business departments of the enterprise (such as risk control department, finance department, marketing department, etc.). For example, e-commerce companies will establish enterprise-level data warehouses and department-level data marts to meet the needs of daily decision-making. Starting from the business focus, this process establishes different subject domains such as members, products, channels, transactions, logs, risks, interactions, environments, equipment, finance, and relationships, and builds data warehouses in layers according to the original layer, detailed layer, light-grained summary layer, each data mart layer, and each data application layer.
[0103] As the business scale expands and time goes by, each data demander will have a variety of data needs. Since each data demander cannot perceive all the general tables in the data warehouse, and due to the rapid changes in industries such as e-commerce, finance, and logistics, even if the required general data tables are obtained through online analytical processing (OLAP) or other product processing methods, all data needs cannot be met. Therefore, the general data tables of data warehouses and data marts cannot meet the rapidly growing personalized business needs. Based on this, data demanders will derive various data tables at the data mart layer or data application layer to meet their business development needs.
[0104] However, as the number of users and data demands for building data tables increase, there will be a phenomenon of duplicate construction of data tables. For example, business party A develops a member transaction volume table based on different periods and different product categories, and business party B also develops the same or similar table without knowing it. This process will increase data management costs, low data security, poor data sharing, duplicate data calculation, duplicate data storage and other problems.
[0105] The existing solutions to the above-mentioned problem of duplicate data table construction include the following:
[0106] Instruct each data demander to build a data table according to the pre-established standard construction specifications. However, this process requires high data table design capabilities, requires pre-training of each data demander, and monitoring and rectification of the built data table. The data management cost of this process is high;
[0107] Instruct data demanders to query the data warehouse through the pre-developed data map to see whether the data table they need is included before building the data table, so as to reduce the duplication of building data tables. However, the number and types of common data tables in the data warehouse are limited and cannot meet the business needs of all data demanders;
[0108] Through online analytical processing (OLAP), users can customize statistical dimensions and indicators. This process is based on multidimensional analysis of a fixed basic model (such as a star model). The model requires pre-definition of fact tables (for example, a data table for recording transaction time, transaction channel, transaction goods, and transaction amount) and dimension tables (for example, a data table for recording time dimensions, transaction channel dimensions, and transaction goods dimensions). In actual application, due to the rapid changes and updates of Internet business, the e-commerce industry has high requirements for business responsiveness. Therefore, the above multidimensional analysis based on a fixed basic model cannot meet the needs of rapid business expansion.
[0109] In view of the above scenario, in order to avoid the duplication of data tables by various data demanders, reduce the consumption of existing data storage resources and data computing resources caused by the duplication of data tables, and reduce the complexity of the data management process, the present application provides a data processing method, a data processing device and an electronic device corresponding to the method. The following provides embodiments to describe the method, device and electronic device in detail.
[0110] The first embodiment of the present application provides a data processing method, the application subject of the method can be an application program for building a data warehouse. Figure 1 This is a flowchart of the data processing method provided in the first embodiment of the present application. Figure 1 The method provided in this embodiment is described in detail. The embodiments described below are used to explain the principle of the method and are not intended to be limiting for actual use.
[0111] like Figure 1 As shown, the data processing method provided in this embodiment includes the following steps:
[0112] S101, obtaining a first original data table and a second original data table.
[0113] The original data table may refer to a data table derived from the data mart layer or the data application layer by the business demand party in order to meet its rapidly growing business personalized needs. This step is used to obtain the first original data table and the second original data table, which may be data tables constructed by different business demand parties. For example, the first original data table may be a member transaction volume table based on different periods and different commodity categories developed by business party A, and the second original data table may be another member transaction volume table based on different periods and different commodity categories developed by business party B.
[0114] In this embodiment, the process of obtaining the first original data table and the second original data table may include the following contents: first, obtaining candidate original data tables with matching names, for example, searching for data tables with the same or similar names from a large number of original data tables constructed by the data demander, and using them as candidate original data tables; second, analyzing metadata of the candidate original data tables to obtain the first original data table and the second original data table whose metadata similarity values reach a target metadata similarity threshold, for example, analyzing primary key data (for example, a unique data number used to identify a data table or to identify each indicator sequence in a data table) and data type (for example, character type, numeric type, enumeration type) of the candidate original data tables, if the similarity of the primary key data and data types of the two candidate original data tables reaches a predetermined target metadata similarity threshold, they are determined to be the first original data table and the second original data table. It should be noted that there may be multiple data tables corresponding to which the similarity of primary key data and its data type reaches a predetermined target metadata similarity threshold. In this embodiment, two of the data tables are optionally selected as the first original data table and the second original data table to be processed. After the processing of these two data tables is completed, the remaining alternative original data tables can be iteratively processed in the same manner.
[0115] S102, split the first original data table to obtain a first indicator sequence, and split the second original data table to obtain a second indicator sequence.
[0116] After the first original data table and the second original data table are obtained in the above step, this step is used to split the first original data table to obtain the first index sequence, and split the second original data table to obtain the second index sequence. In this embodiment, the splitting process is as follows: Figure 1-A As shown, specifically, it can be: splitting the first original data table in a manner that one primary key sequence corresponds to one index sequence to obtain a first group of primary key-index sequence pairs, and splitting the second original data table in a manner that one primary key sequence corresponds to one index sequence to obtain a second group of primary key-index sequence pairs; obtaining the first index sequence from the first group of primary key-index sequence pairs, and obtaining the second index sequence from the second group of primary key-index sequence pairs.
[0117] S103: If the similarity between the first indicator sequence and the second indicator sequence reaches a predetermined similarity threshold, a target general data table is obtained according to the first indicator sequence or the second indicator sequence.
[0118] After the first original data table and the second original data table are split in the above steps to obtain the first indicator sequence and the second indicator sequence, this step is used to determine whether the target general data table can be constructed according to the first indicator sequence or the second indicator sequence based on the similarity between the first indicator sequence and the second indicator sequence. The process first needs to determine whether the similarity between the first indicator sequence and the second indicator sequence reaches a predetermined similarity threshold.
[0119] In this embodiment, whether the similarity between the first indicator sequence and the second indicator sequence reaches a predetermined similarity threshold can be determined in the following four ways:
[0120] Method 1: Perform similarity comparison on the indicator data in the first indicator sequence and the indicator data in the second indicator sequence to obtain an indicator data similarity value; if the indicator data similarity value reaches a predetermined indicator data similarity threshold, it is determined that the similarity between the first indicator sequence and the second indicator sequence reaches the predetermined similarity threshold.
[0121] The indicator data is the specific data content in the indicator sequence. The process of performing similarity comparison between the indicator data in the first indicator sequence and the indicator data in the second indicator sequence to obtain the indicator data similarity value specifically includes the following contents:
[0122] First, obtain the first indicator data and the second indicator data that match the primary key data, and obtain the first quantity information of the first indicator data or the second indicator data, the first indicator data is the indicator data in the above-mentioned first indicator sequence, and the second indicator data is the indicator data in the above-mentioned second indicator sequence. The first indicator data can be a numerical indicator data or a character indicator data. In this embodiment, the first indicator data and the second indicator data that match the primary key data are obtained, specifically: the indicator data in the first indicator sequence are randomly sampled to obtain the first indicator data matrix, and the indicator data in the first indicator sequence are randomly sampled to obtain the second indicator data matrix. The purpose of random sampling is to ensure that the distribution of the indicator data remains unchanged and to reduce the amount of calculation of the subsequent similarity comparison process. For example, for the Internet industry containing massive data, random sampling can reduce the amount of calculation of subsequent data processing while ensuring that the subsequent data processing results are not affected; associate the first indicator data matrix and the second indicator data matrix to obtain the first indicator data and the second indicator data that match the primary key data. It should be noted that the above-mentioned first quantity information can also be the quantity information of the primary key data that matches the primary key data corresponding to the first indicator data and the primary key data corresponding to the second indicator data. For the scenario where the amount of indicator data is limited, the above process of obtaining the first indicator data and the second indicator data that match the primary key data can also be: obtain a predetermined number of indicator data in the first indicator sequence and the primary key data corresponding to the indicator data, match the primary key data with the primary key data corresponding to the full amount of indicator data in the second indicator sequence to obtain matching primary key data, and use the indicator data in the first indicator sequence corresponding to the matching primary key data as the first indicator data, and use the indicator data in the second indicator sequence corresponding to the matching primary key data as the second indicator data.
[0123] Secondly, similarity calculation is performed on the first indicator data and the second indicator data to obtain second quantity information of indicator data pairs whose similarity reaches the target similarity threshold.
[0124] In this embodiment, if the first indicator data and the second indicator data are numerical indicator data, the process specifically includes the following contents: converting the first indicator data and the second indicator data into digital indicator data, for example, converting a text type numerical value into a number; performing precision conversion on the digital indicator data, for example, rounding all digital indicator data and retaining two decimal places; performing similarity calculation on the first indicator data and the second indicator data after precision conversion to obtain first target indicator data and second target indicator data whose similarity reaches a first target similarity threshold, the first target indicator data belongs to the first indicator data, the second target indicator data belongs to the second indicator data, and the first target indicator data and the second target indicator data constitute an indicator data pair; summarizing the number of indicator data pairs to obtain second quantity information.
[0125] If the first indicator data and the second indicator data are character-type indicator data, the above process specifically includes the following contents: vectorizing the first indicator data to obtain the first indicator vector, and vectorizing the second indicator data to obtain the second indicator vector; performing cosine similarity calculation on the first indicator vector and the second indicator vector to obtain the first target indicator vector and the second target indicator vector whose similarity reaches the second target similarity threshold, the first target indicator vector belongs to the first indicator vector, the second target indicator vector belongs to the second indicator vector, the first target indicator data corresponding to the first target indicator vector and the second target indicator data corresponding to the second target indicator vector constitute an indicator data pair; summarizing the number of indicator data pairs to obtain second quantity information. The above first target similarity threshold and the second target similarity threshold are only used to distinguish that the similarity thresholds referenced by numerical indicator data and character-type indicator data when performing similarity calculation are similarity thresholds of different categories.
[0126] Finally, the ratio of the second quantity information to the first quantity information is determined as the indicator data similarity value. For example, if the ratio of the second quantity information to the first quantity information is higher than the predetermined ratio, it indicates that the first indicator data and the second indicator data have a high proportion of similar indicator data, which further indicates that the similarity between the first indicator sequence and the second indicator sequence is high. For example, for a data table recording member information, both indicator sequence A and indicator sequence B take 10,000 members corresponding to the same primary key data, and check the indicator data (for example, transaction volume) corresponding to the 10,000 members in indicator sequence A and indicator sequence B. If 9,999 members have the same indicator data in indicator sequence A and indicator sequence B, then the similarity between indicator sequence A and indicator sequence B is 9999 / 10000*100%.
[0127] Method 2: perform a similarity comparison between the metadata of the first indicator sequence and the metadata of the second indicator sequence to obtain a metadata similarity value; if the metadata similarity value reaches a predetermined metadata similarity threshold, perform a similarity comparison between the indicator data in the first indicator sequence and the indicator data in the second indicator sequence to obtain an indicator data similarity value, for example, using the method in the above method 1 to obtain the indicator data similarity value; if the indicator data similarity value reaches a predetermined indicator data similarity threshold, it is determined that the similarity between the first indicator sequence and the second indicator sequence reaches the predetermined similarity threshold. The metadata of the indicator sequence may be attribute information such as the indicator name, indicator type, name of the first original data table or the second original data table, and field name corresponding to the indicator sequence, or may be indicator lineage data, which may refer to the name of the source data table obtained by tracing the indicator sequence upward.
[0128] The above-mentioned process of performing similarity comparison between the metadata of the first indicator sequence and the metadata of the second indicator sequence may be: obtaining the first metadata of the first indicator sequence and obtaining the second metadata of the second indicator sequence, the first metadata and the second metadata being metadata of the same category, and the first metadata or the second metadata may be one of the above-mentioned indicator name, indicator type, name of the first original data table or the second original data table, field name, and indicator lineage data; converting the first metadata into a first feature vector, and converting the second metadata into a second feature vector; calculating the similarity between the first feature vector and the second feature vector to obtain a metadata similarity value. For example, a clustering algorithm may be used to calculate the similarity between metadata of different indicator sequences, and the clustering algorithm may cluster indicator sequences whose similarity reaches a predetermined similarity threshold according to the feature vectors of the indicator metadata.
[0129] In this embodiment, the Word2Vec algorithm can be used to convert the indicator name into a feature vector, the One-Hot encoding algorithm can be used to convert the indicator type into a feature vector, the One-Hot encoding algorithm can be used to convert the name of the first original data table or the second original data table into a feature vector, the Word2Vec algorithm is used to convert the field name into a feature vector, and the Node2Vec algorithm is used to convert the indicator lineage data into a feature vector. The above-mentioned Word2Vec algorithm can generate word vectors, and the similarity between words can be measured through word vectors. The model used includes a continuous bag of words model (CBOW) and a Skip-Gram model, which can be trained efficiently for large amounts of data to obtain word vectors. The above Node2vec algorithm simulates the text generation process by constructing a random walk path of nodes on the network. It provides a random walk node sequence and uses the Skip-gram model and Hierarchical Softmax model to perform probability modeling on the node pairs in each local window in the random walk node sequence to maximize the likelihood probability of the random walk node sequence. The algorithm introduces breadth-first search and depth-first search into the generation process of the random walk node sequence through the introduced parameters and outputs the feature vector of each node. The above One-Hot encoding algorithm is used to represent categorical variables as binary vectors, which maps categorical values to integer values and represents each integer value as a binary vector.
[0130] Among them, the process of converting the indicator lineage data into a feature vector is as follows: a relationship graph is constructed according to the indicator lineage data of the first indicator sequence and the indicator lineage data of the second indicator sequence. In the relationship graph, a "node" represents an indicator sequence, and an "edge" represents the weight information assigned according to the level information of the homologous tables corresponding to different indicator sequences. For example, the first-level traceability tables of indicator sequence A include data table A1-1 and data table A1-2, the first-level traceability tables of indicator sequence B include data table B1-1 and data table B1-2, the second-level traceability tables of indicator sequence B include data table B2-1 and data table B2-2, and the third-level traceability tables of indicator sequence B include data table B3-1, data table B3-2 and data table A1-1. Then, after the first-level traceability of indicator sequence A and the third-level traceability of indicator sequence B, the same data table A1-1 is corresponding. Therefore, it can be considered that indicator sequence A and indicator sequence B are homologous at the third level, and based on this, an edge between indicator sequence A and indicator sequence B is constructed, and the weight corresponding to the edge can be configured as 0.3. Multiple indicator sequences can form a relationship graph between the multiple indicator sequences. If indicator sequence A and indicator sequence B are homologous at the first level (table), the weight of the edge between node A and node B is 1; if indicator sequence A and indicator sequence C are homologous at the second level (table), the weight of the edge between node A and node C is 0.5; if indicator sequence A and indicator sequence D are homologous at the third level (table), the weight of the edge between node A and node D is 0.3; if indicator sequence A and indicator sequence E are homologous at the fourth level (table), the weight of the edge between node A and node E is 0.2; if indicator sequence A and indicator sequence F are homologous at the fifth level (table), the weight of the edge between node A and node F is 0.1. Based on the above relationship graph, the Node2Vec algorithm can be used to transform each indicator sequence into a vector space to obtain the feature vector of each indicator sequence.
[0131] In this embodiment, the above-mentioned obtaining the first metadata of the first indicator sequence and obtaining the second metadata of the second indicator sequence may refer to: obtaining multiple first metadata of the first indicator sequence and obtaining multiple second metadata of the second indicator sequence, for example, the multiple first metadata may be the indicator name, indicator type, name of the first original data table, field name, indicator lineage and other information corresponding to the first indicator sequence; correspondingly, converting the first metadata into a first feature vector, and converting the second metadata into a second feature vector, which may specifically refer to: converting the multiple first metadata into multiple first feature vectors, and converting the multiple second metadata into multiple second feature vectors; correspondingly, calculating the similarity between the first feature vector and the second feature vector to obtain a metadata similarity value, which may specifically refer to: merging the above-mentioned multiple first feature vectors into a first target vector, and merging the above-mentioned multiple second feature vectors into a second target vector; using a clustering algorithm to calculate the similarity between the first target vector and the second target vector to obtain a metadata similarity value.
[0132] Method three: perform a similarity comparison between the distribution statistics of the indicator data in the first indicator sequence and the distribution statistics of the indicator data in the second indicator sequence to obtain a distribution statistics similarity value; if the distribution statistics similarity value reaches a predetermined distribution statistics similarity threshold, perform a similarity comparison between the indicator data in the first indicator sequence and the indicator data in the second indicator sequence to obtain an indicator data similarity value, for example, obtain the indicator data similarity value using the method provided in the above method one; if the indicator data similarity value reaches a predetermined indicator data similarity threshold, determine that the similarity between the first indicator sequence and the second indicator sequence reaches the predetermined similarity threshold. The distribution statistics of the indicator data in the first indicator sequence may be the mean, median, mode, quantiles, variance, standard deviation, maximum value, minimum value and other data of the indicator data in the first indicator sequence. Before performing a similarity comparison between the distribution statistics of the indicator data in the first indicator sequence and the distribution statistics of the indicator data in the second indicator sequence, the above distribution statistics need to be normalized.
[0133] The process of performing similarity comparison between the distribution statistical data of the indicator data in the first indicator sequence and the distribution statistical data of the indicator data in the second indicator sequence specifically includes the following contents: sampling the indicator data in the first indicator sequence to obtain the first candidate indicator data, and sampling the indicator data in the second indicator sequence to obtain the second candidate indicator data; obtaining the first distribution statistical data of the first candidate indicator data, and obtaining the second distribution statistical data of the second candidate indicator data, the first distribution statistical data and the second distribution statistical data being the same type of distribution statistical data; calculating the similarity between the first distribution statistical data and the second distribution statistical data to obtain a distribution statistical similarity value.
[0134] In this embodiment, obtaining first distribution statistical data of the first candidate indicator data and obtaining second distribution statistical data of the second candidate indicator data may refer to: obtaining multiple first distribution statistical data of the first candidate indicator data and obtaining multiple second distribution statistical data of the second candidate indicator data; correspondingly, calculating the similarity between the first distribution statistical data and the second distribution statistical data may specifically refer to: using a clustering algorithm to calculate the similarity between multiple first distribution statistical data and multiple second distribution statistical data to obtain a distribution statistical similarity value.
[0135] Method 4: perform a similarity comparison between the metadata of the first indicator sequence and the metadata of the second indicator sequence to obtain a metadata similarity value, for example, using the method provided in the above method 2 to obtain the metadata similarity value; if the metadata similarity value reaches a predetermined metadata similarity threshold, perform a similarity comparison between the distribution statistical data of the indicator data in the first indicator sequence and the distribution statistical data of the indicator data in the second indicator sequence to obtain a distribution statistical similarity value, for example, using the method provided in the above method 3 to obtain a distribution statistical similarity value; if the distribution statistical similarity value reaches a predetermined distribution statistical similarity threshold, perform a similarity comparison between the indicator data in the first indicator sequence and the indicator data in the second indicator sequence to obtain an indicator data similarity value; if the indicator data similarity value reaches a predetermined indicator data similarity threshold, it is determined that the similarity between the first indicator sequence and the second indicator sequence reaches the predetermined similarity threshold.
[0136] The above-mentioned methods 2, 3 and 4 are all supplements to method 1. The similarities of indicator sequences are compared from multiple dimensions. The purpose is to narrow the comparison scope and make the similarity comparison process of indicator sequences more targeted and accurate.
[0137] In this embodiment, if Figure 1-A As shown, the above-mentioned obtaining the target general data table according to the first indicator sequence or the second indicator sequence may refer to: according to the predetermined data warehouse subject domain construction standard, establishing the target general data table according to the first indicator sequence and the first primary key sequence corresponding to the first indicator sequence, or establishing the target general data table according to the second indicator sequence and the second primary key sequence corresponding to the second indicator sequence, and the obtained target general data table is as shown in FIG. Figure 1-A shown.
[0138] In this embodiment, before constructing the target general data table, it is also possible to verify whether the caliber information of the first indicator sequence matches the caliber information of the second indicator sequence, for example, to query whether the code generation logic of the first indicator sequence and the second indicator sequence is consistent; after determining that the caliber information of the first indicator sequence matches the caliber information of the second indicator sequence, the target general data table is obtained according to the first indicator sequence or the second indicator sequence. Through the caliber matching process of the indicator sequence, the accuracy of the similarity comparison can be further improved on the basis of the similarity comparison methods such as the metadata similarity comparison, the distribution statistical data similarity comparison of the indicator sequence, and the indicator data similarity comparison.
[0139] After obtaining the target general data table, the first original data table and the second original data table may be rectified based on the target general data table. Figure 1-BAs shown, the transaction volume table A developed by business party A contains three indicator sequences, namely, transaction volume indicator A1, transaction volume indicator A2, and transaction volume indicator A3. The transaction volume table B developed by business party B contains transaction volume indicator B1. If the similarity between indicator sequence A1 and indicator sequence B1 reaches a predetermined similarity threshold, a general data table C is developed based on indicator sequence A1 or indicator sequence B1, and the data acquisition processing logic of field C1 of general data table C is the data acquisition processing logic of the corresponding field of indicator sequence A1 or the data acquisition processing logic of the corresponding field of indicator sequence B1. Transaction volume table A can be rectified in the following ways: remove the data acquisition processing logic of A1, and when business party A subsequently uses the data of indicator sequence A1, directly obtain C1 from general data table C; transaction volume table B can be rectified in the following ways: delete transaction volume table B, and when business party B subsequently uses the data of indicator sequence B1, directly obtain the C1 field from general data table C. In this way, the general data table C can be built once and used multiple times, saving the processing and calculation costs and data storage costs of the A1 indicator sequence in the transaction volume table A and the indicator sequence B1 in the transaction volume table B.
[0140] The above method provided in this embodiment selects an indicator sequence from each of the two original data tables for similarity comparison, and establishes a general data table based on the comparison results. It should be noted that the method provided in this embodiment is also applicable to similarity comparison of multiple indicator sequences for a large number of data tables, and establishes a general data table applicable to multiple original data tables based on the comparison results. For example, multiple original data tables are synchronously split to obtain multiple indicator sequences, and the multiple indicator sequences are compared two by two through similarity comparison methods such as the metadata similarity comparison, the distribution statistical data similarity comparison of the indicator sequence, and the indicator data similarity comparison, to obtain the same or similar indicator sequences in the multiple indicator sequences whose similarity reaches a predetermined similarity threshold, and establish a general data table based on the same or similar indicator sequences.
[0141] The data processing method provided in this embodiment obtains multiple indicator sequences by splitting the first original data table and the second original data table, and after determining that the similarity values between the indicator sequences split from the above different original data tables reach a predetermined similarity threshold, a target general data table is constructed according to the indicator sequences split from the above different original data tables. By using this method, an indicator sequence with a high similarity can be quickly found in many existing personalized data tables, and a general data table can be established based on this, so that the general data table constructed once can be used multiple times by each data demander, which can avoid the repeated construction of data tables by each data demander, reduce the consumption of data storage resources and data computing resources caused by the existing repeated construction of data tables, reduce the complexity of the data management process, avoid the uncontrollable state of high-speed and high-quantity growth of data tables caused by repeated construction of data tables, and improve the reusability of data. In addition, this method does not need to instruct each data demander to construct a data table according to a pre-established standard construction specification, and does not need to manage the data too much, which can avoid the existing problems of high data management cost in preventing repeated construction of data tables, inability to meet the business needs of all data demanders, and inability of multi-dimensional analysis based on fixed basic models to meet business expansion needs.
[0142] The above-mentioned first embodiment provides a data processing method. Correspondingly, the second embodiment of the present application also provides a data processing device. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple. For details of the relevant technical features, please refer to the corresponding description of the method embodiment provided above. The following description of the device embodiment is merely illustrative.
[0143] Please refer to Figure 2 To understand this embodiment, Figure 2 A unit block diagram of the device provided in this embodiment, such as Figure 2 As shown, the device provided in this embodiment includes:
[0144] The original data table obtaining unit 201 is used to obtain a first original data table and a second original data table;
[0145] The indicator sequence obtaining unit 202 is used to split the first original data table to obtain a first indicator sequence, and split the second original data table to obtain a second indicator sequence;
[0146] The target general data table obtaining unit 203 is configured to obtain a target general data table according to the first indicator sequence or the second indicator sequence when it is determined that the similarity between the first indicator sequence and the second indicator sequence reaches a predetermined similarity threshold.
[0147] Optionally, the method further includes: performing a similarity comparison between the indicator data in the first indicator sequence and the indicator data in the second indicator sequence to obtain a similarity value of the indicator data;
[0148] If the indicator data similarity value reaches a predetermined indicator data similarity threshold, it is determined that the similarity between the first indicator sequence and the second indicator sequence reaches the predetermined similarity threshold.
[0149] Optionally, the method further includes: performing a similarity comparison between the metadata of the first indicator sequence and the metadata of the second indicator sequence to obtain a metadata similarity value;
[0150] If the metadata similarity value reaches a predetermined metadata similarity threshold, then the indicator data in the first indicator sequence is compared with the indicator data in the second indicator sequence for similarity to obtain an indicator data similarity value;
[0151] If the indicator data similarity value reaches a predetermined indicator data similarity threshold, it is determined that the similarity between the first indicator sequence and the second indicator sequence reaches the predetermined similarity threshold.
[0152] Optionally, it further includes: performing a similarity comparison between the distribution statistics of the indicator data in the first indicator sequence and the distribution statistics of the indicator data in the second indicator sequence to obtain a distribution statistics similarity value;
[0153] If the distribution statistical similarity value reaches a predetermined distribution statistical similarity threshold, then the indicator data in the first indicator sequence is compared with the indicator data in the second indicator sequence for similarity to obtain an indicator data similarity value;
[0154] If the indicator data similarity value reaches a predetermined indicator data similarity threshold, it is determined that the similarity between the first indicator sequence and the second indicator sequence reaches the predetermined similarity threshold.
[0155] Optionally, the method further includes: performing a similarity comparison between the metadata of the first indicator sequence and the metadata of the second indicator sequence to obtain a metadata similarity value;
[0156] If the metadata similarity value reaches a predetermined metadata similarity threshold, then performing a similarity comparison on the distribution statistics of the indicator data in the first indicator sequence and the distribution statistics of the indicator data in the second indicator sequence to obtain a distribution statistics similarity value;
[0157] If the distribution statistical similarity value reaches a predetermined distribution statistical similarity threshold, then the indicator data in the first indicator sequence is compared with the indicator data in the second indicator sequence for similarity to obtain an indicator data similarity value;
[0158] If the indicator data similarity value reaches a predetermined indicator data similarity threshold, it is determined that the similarity between the first indicator sequence and the second indicator sequence reaches the predetermined similarity threshold.
[0159] Optionally, performing a similarity comparison on the indicator data in the first indicator sequence and the indicator data in the second indicator sequence to obtain an indicator data similarity value includes:
[0160] Obtaining first index data and second index data matching the primary key data, and obtaining first quantity information of the first index data or the second index data, wherein the first index data comes from the first index sequence, and the second index data comes from the second index sequence;
[0161] Performing similarity calculation on the first indicator data and the second indicator data to obtain second quantity information of indicator data pairs whose similarity reaches a target similarity threshold;
[0162] The ratio of the second quantity information to the first quantity information is determined as the indicator data similarity value.
[0163] Optionally, the first indicator data and the second indicator data are numerical indicator data, and the similarity calculation is performed on the first indicator data and the second indicator data to obtain second quantity information of indicator data pairs whose similarity reaches a target similarity threshold, including:
[0164] Converting the first indicator data and the second indicator data into digital indicator data;
[0165] Performing precision conversion on the digital indicator data;
[0166] Perform similarity calculation on the first indicator data and the second indicator data after precision conversion to obtain first target indicator data and second target indicator data whose similarity reaches a first target similarity threshold, the first target indicator data belongs to the first indicator data, the second target indicator data belongs to the second indicator data, and the first target indicator data and the second target indicator data constitute the indicator data pair;
[0167] The quantities of the indicator data pairs are summarized to obtain the second quantity information.
[0168] Optionally, the first indicator data and the second indicator data are character indicator data, and the similarity calculation is performed on the first indicator data and the second indicator data to obtain second quantity information of indicator data pairs whose similarity reaches a target similarity threshold, including:
[0169] Performing vectorization processing on the first indicator data to obtain a first indicator vector, and performing vectorization processing on the second indicator data to obtain a second indicator vector;
[0170] Performing cosine similarity calculation on the first indicator vector and the second indicator vector to obtain a first target indicator vector and a second target indicator vector whose similarity reaches a second target similarity threshold, the first target indicator vector belongs to the first indicator vector, the second target indicator vector belongs to the second indicator vector, and the first target indicator data corresponding to the first target indicator vector and the second target indicator data corresponding to the second target indicator vector constitute the indicator data pair;
[0171] The quantities of the indicator data pairs are summarized to obtain the second quantity information.
[0172] Optionally, obtaining the first index data and the second index data that match the primary key data includes:
[0173] Performing random sampling processing on the indicator data in the first indicator sequence to obtain a first indicator data matrix, and performing random sampling processing on the indicator data in the first indicator sequence to obtain a second indicator data matrix;
[0174] The first indicator data matrix and the second indicator data matrix are associated to obtain the first indicator data and the second indicator data that match the primary key data.
[0175] Optionally, performing a similarity comparison on the metadata of the first indicator sequence and the metadata of the second indicator sequence to obtain a metadata similarity value includes:
[0176] Obtaining first metadata of the first indicator sequence, and obtaining second metadata of the second indicator sequence, wherein the first metadata and the second metadata are metadata of the same category;
[0177] converting the first metadata into a first feature vector, and converting the second metadata into a second feature vector;
[0178] The similarity between the first feature vector and the second feature vector is calculated to obtain a metadata similarity value.
[0179] Optionally, the obtaining the first metadata of the first indicator sequence and the obtaining the second metadata of the second indicator sequence includes: obtaining a plurality of first metadata of the first indicator sequence and obtaining a plurality of second metadata of the second indicator sequence;
[0180] Correspondingly, converting the first metadata into a first feature vector and converting the second metadata into a second feature vector according to the level information of the homology table includes:
[0181] According to the level information of the homology table, converting the plurality of first metadata into a plurality of first feature vectors, and converting the plurality of second metadata into a plurality of second feature vectors;
[0182] Correspondingly, calculating the similarity between the first feature vector and the second feature vector to obtain the metadata similarity value includes: merging the multiple first feature vectors into a first target vector, and merging the multiple second feature vectors into a second target vector; calculating the similarity between the first target vector and the second target vector to obtain the metadata similarity value.
[0183] Optionally, the metadata of the first indicator sequence includes indicator lineage data of the first indicator sequence, and the metadata of the second indicator sequence includes indicator lineage data of the second indicator sequence, and the converting of the first metadata into a first feature vector and the converting of the second metadata into a second feature vector include:
[0184] Constructing a relationship graph based on the indicator lineage data of the first indicator sequence and the indicator lineage data of the second indicator sequence, in which the points represent the first indicator sequence and the second indicator sequence, and the edges represent the weight information assigned according to the level information of the homology table corresponding to the first indicator sequence and the second indicator sequence;
[0185] A first eigenvector and a second eigenvector are obtained according to the relationship graph.
[0186] Optionally, performing a similarity comparison on the distribution statistics of the indicator data in the first indicator sequence and the distribution statistics of the indicator data in the second indicator sequence to obtain a distribution statistics similarity value includes:
[0187] Sampling the indicator data in the first indicator sequence to obtain first candidate indicator data, and sampling the indicator data in the second indicator sequence to obtain second candidate indicator data;
[0188] Obtaining first distribution statistical data of the first candidate indicator data, and obtaining second distribution statistical data of the second candidate indicator data, wherein the first distribution statistical data and the second distribution statistical data are distribution statistical data of the same type;
[0189] The similarity between the first distribution statistical data and the second distribution statistical data is calculated to obtain the distribution statistical similarity value.
[0190] Optionally, the obtaining first distribution statistical data of the first candidate indicator data and obtaining second distribution statistical data of the second candidate indicator data include:
[0191] Obtaining a plurality of first distribution statistical data of the first candidate indicator data, and obtaining a plurality of second distribution statistical data of the second candidate indicator data;
[0192] Correspondingly, the calculating the similarity between the first distribution statistical data and the second distribution statistical data to obtain the distribution statistical similarity value includes:
[0193] A clustering algorithm is used to calculate the similarity between the plurality of first distribution statistical data and the plurality of second distribution statistical data to obtain the distribution statistical similarity value.
[0194] Optionally, obtaining the first original data table and the second original data table includes:
[0195] Get the alternative raw data table with matching names;
[0196] The metadata of the candidate original data table is analyzed to obtain a first original data table and a second original data table whose metadata similarity values reach a target metadata similarity threshold.
[0197] Optionally, splitting the first original data table to obtain a first indicator sequence, and splitting the second original data table to obtain a second indicator sequence includes:
[0198] The first original data table is split according to a method in which one primary key sequence corresponds to one index sequence to obtain a first group of primary key-index sequence pairs, and the second original data table is split according to a method in which one primary key sequence corresponds to one index sequence to obtain a second group of primary key-index sequence pairs;
[0199] The first index sequence is obtained from the first set of primary key-index sequence pairs, and the second index sequence is obtained from the second set of primary key-index sequence pairs.
[0200] Optionally, obtaining the target general data table according to the first indicator sequence or the second indicator sequence includes: establishing the target general data table according to the first indicator sequence and a first primary key sequence corresponding to the first indicator sequence in accordance with a predetermined data warehouse subject domain construction standard, or establishing the target general data table according to the second indicator sequence and a second primary key sequence corresponding to the second indicator sequence.
[0201] Optionally, the method further includes: rectifying the first original data table according to the target data general table.
[0202] Optionally, the method further includes: rectifying the second original data table according to the target data general table.
[0203] Optionally, it further includes: verifying whether the caliber information of the first indicator sequence matches the caliber information of the second indicator sequence;
[0204] The obtaining of the target general data table according to the first indicator sequence or the second indicator sequence includes: after determining that the caliber information of the first indicator sequence matches the caliber information of the second indicator sequence, obtaining the target general data table according to the first indicator sequence or the second indicator sequence.
[0205] The data processing device provided in this embodiment obtains multiple indicator sequences by splitting the first original data table and the second original data table. After determining that the similarity values between the indicator sequences split from the above different original data tables reach a predetermined similarity threshold, a target general data table is constructed according to the indicator sequences split from the above different original data tables. By using this device, it is possible to quickly find indicator sequences with high similarity in many existing personalized data tables, and to establish a general data table based on this, so that the general data table constructed once can be used multiple times by each data demander, which can reduce the consumption of data storage resources and data computing resources caused by the existing repeated construction of data tables, and reduce the complexity of the data management process. In addition, the device does not need to instruct each data demander to construct a data table according to a pre-established standard construction specification, which can avoid the high data management cost in the existing process of preventing repeated construction of data tables and the problem of not being able to meet the business needs of all data demanders.
[0206] In the above-mentioned embodiments, a data processing method and a data processing device are provided. In addition, the third embodiment of the present application also provides an electronic device. Since the electronic device embodiment is basically similar to the method embodiment, the description is relatively simple. For details of the relevant technical features, please refer to the corresponding description of the method embodiment provided above. The following description of the electronic device embodiment is only illustrative. The electronic device embodiment is as follows:
[0207] Please refer to Figure 3 To understand this embodiment, Figure 3 A schematic diagram of an electronic device provided in this embodiment.
[0208] like Figure 3 As shown, the electronic device includes: a processor 301; a memory 302;
[0209] The memory 302 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the following steps:
[0210] Obtain a first original data table and a second original data table;
[0211] Splitting the first original data table to obtain a first indicator sequence, and splitting the second original data table to obtain a second indicator sequence;
[0212] If the similarity between the first indicator sequence and the second indicator sequence reaches a predetermined similarity threshold, a target general data table is obtained according to the first indicator sequence or the second indicator sequence.
[0213] Optionally, the method further includes: performing a similarity comparison between the indicator data in the first indicator sequence and the indicator data in the second indicator sequence to obtain a similarity value of the indicator data;
[0214] If the indicator data similarity value reaches a predetermined indicator data similarity threshold, it is determined that the similarity between the first indicator sequence and the second indicator sequence reaches the predetermined similarity threshold.
[0215] Optionally, also include:
[0216] Performing a similarity comparison between the metadata of the first indicator sequence and the metadata of the second indicator sequence to obtain a metadata similarity value;
[0217] If the metadata similarity value reaches a predetermined metadata similarity threshold, then the indicator data in the first indicator sequence is compared with the indicator data in the second indicator sequence for similarity to obtain an indicator data similarity value;
[0218] If the indicator data similarity value reaches a predetermined indicator data similarity threshold, it is determined that the similarity between the first indicator sequence and the second indicator sequence reaches the predetermined similarity threshold.
[0219] Optionally, it also includes: performing a similarity comparison on the distribution statistics of the indicator data in the first indicator sequence with the distribution statistics of the indicator data in the second indicator sequence to obtain a distribution statistics similarity value; if the distribution statistics similarity value reaches a predetermined distribution statistics similarity threshold, performing a similarity comparison on the indicator data in the first indicator sequence with the indicator data in the second indicator sequence to obtain an indicator data similarity value; if the indicator data similarity value reaches a predetermined indicator data similarity threshold, determining that the similarity between the first indicator sequence and the second indicator sequence reaches a predetermined similarity threshold.
[0220] Optionally, the method further includes: performing a similarity comparison between the metadata of the first indicator sequence and the metadata of the second indicator sequence to obtain a metadata similarity value;
[0221] If the metadata similarity value reaches a predetermined metadata similarity threshold, then performing a similarity comparison on the distribution statistics of the indicator data in the first indicator sequence and the distribution statistics of the indicator data in the second indicator sequence to obtain a distribution statistics similarity value;
[0222] If the distribution statistical similarity value reaches a predetermined distribution statistical similarity threshold, then the indicator data in the first indicator sequence is compared with the indicator data in the second indicator sequence for similarity to obtain an indicator data similarity value;
[0223] If the indicator data similarity value reaches a predetermined indicator data similarity threshold, it is determined that the similarity between the first indicator sequence and the second indicator sequence reaches the predetermined similarity threshold.
[0224] Optionally, performing a similarity comparison on the indicator data in the first indicator sequence and the indicator data in the second indicator sequence to obtain an indicator data similarity value includes:
[0225] Obtaining first index data and second index data matching the primary key data, and obtaining first quantity information of the first index data or the second index data, wherein the first index data comes from the first index sequence, and the second index data comes from the second index sequence;
[0226] Performing similarity calculation on the first indicator data and the second indicator data to obtain second quantity information of indicator data pairs whose similarity reaches a target similarity threshold;
[0227] The ratio of the second quantity information to the first quantity information is determined as the indicator data similarity value.
[0228] Optionally, the first indicator data and the second indicator data are numerical indicator data, and the similarity calculation is performed on the first indicator data and the second indicator data to obtain second quantity information of indicator data pairs whose similarity reaches a target similarity threshold, including:
[0229] Converting the first indicator data and the second indicator data into digital indicator data;
[0230] Performing precision conversion on the digital indicator data;
[0231] Perform similarity calculation on the first indicator data and the second indicator data after precision conversion to obtain first target indicator data and second target indicator data whose similarity reaches a first target similarity threshold, the first target indicator data belongs to the first indicator data, the second target indicator data belongs to the second indicator data, and the first target indicator data and the second target indicator data constitute the indicator data pair;
[0232] The quantities of the indicator data pairs are summarized to obtain the second quantity information.
[0233] Optionally, the first indicator data and the second indicator data are character indicator data, and the similarity calculation is performed on the first indicator data and the second indicator data to obtain second quantity information of indicator data pairs whose similarity reaches a target similarity threshold, including:
[0234] Performing vectorization processing on the first indicator data to obtain a first indicator vector, and performing vectorization processing on the second indicator data to obtain a second indicator vector;
[0235] Performing cosine similarity calculation on the first indicator vector and the second indicator vector to obtain a first target indicator vector and a second target indicator vector whose similarity reaches a second target similarity threshold, the first target indicator vector belongs to the first indicator vector, the second target indicator vector belongs to the second indicator vector, and the first target indicator data corresponding to the first target indicator vector and the second target indicator data corresponding to the second target indicator vector constitute the indicator data pair;
[0236] The quantities of the indicator data pairs are summarized to obtain the second quantity information.
[0237] Optionally, obtaining the first index data and the second index data that match the primary key data includes:
[0238] Performing random sampling processing on the indicator data in the first indicator sequence to obtain a first indicator data matrix, and performing random sampling processing on the indicator data in the first indicator sequence to obtain a second indicator data matrix;
[0239] The first indicator data matrix and the second indicator data matrix are associated to obtain the first indicator data and the second indicator data that match the primary key data.
[0240] Optionally, performing a similarity comparison on the metadata of the first indicator sequence and the metadata of the second indicator sequence to obtain a metadata similarity value includes:
[0241] Obtaining first metadata of the first indicator sequence, and obtaining second metadata of the second indicator sequence, wherein the first metadata and the second metadata are metadata of the same category;
[0242] converting the first metadata into a first feature vector, and converting the second metadata into a second feature vector;
[0243] The similarity between the first feature vector and the second feature vector is calculated to obtain a metadata similarity value.
[0244] Optionally, the obtaining the first metadata of the first indicator sequence and the obtaining the second metadata of the second indicator sequence includes: obtaining a plurality of first metadata of the first indicator sequence and obtaining a plurality of second metadata of the second indicator sequence;
[0245] Correspondingly, converting the first metadata into a first feature vector and converting the second metadata into a second feature vector according to the level information of the homology table includes:
[0246] According to the level information of the homology table, converting the plurality of first metadata into a plurality of first feature vectors, and converting the plurality of second metadata into a plurality of second feature vectors;
[0247] Correspondingly, calculating the similarity between the first feature vector and the second feature vector to obtain the metadata similarity value includes: merging the multiple first feature vectors into a first target vector, and merging the multiple second feature vectors into a second target vector; calculating the similarity between the first target vector and the second target vector to obtain the metadata similarity value.
[0248] Optionally, the metadata of the first indicator sequence includes indicator lineage data of the first indicator sequence, the metadata of the second indicator sequence includes indicator lineage data of the second indicator sequence, and the converting the first metadata into a first feature vector and the converting the second metadata into a second feature vector include:
[0249] Construct a relationship graph based on the indicator lineage data of the first indicator sequence and the indicator lineage data of the second indicator sequence, in which the points represent the first indicator sequence and the second indicator sequence, and the edges represent the weight information assigned according to the level information of the homology table corresponding to the first indicator sequence and the second indicator sequence;
[0250] A first eigenvector and a second eigenvector are obtained according to the relationship graph.
[0251] Optionally, performing a similarity comparison on the distribution statistics of the indicator data in the first indicator sequence and the distribution statistics of the indicator data in the second indicator sequence to obtain a distribution statistics similarity value includes:
[0252] Sampling the indicator data in the first indicator sequence to obtain first candidate indicator data, and sampling the indicator data in the second indicator sequence to obtain second candidate indicator data;
[0253] Obtaining first distribution statistical data of the first candidate indicator data, and obtaining second distribution statistical data of the second candidate indicator data, wherein the first distribution statistical data and the second distribution statistical data are distribution statistical data of the same type;
[0254] The similarity between the first distribution statistical data and the second distribution statistical data is calculated to obtain the distribution statistical similarity value.
[0255] Optionally, the obtaining first distribution statistical data of the first candidate indicator data and obtaining second distribution statistical data of the second candidate indicator data include:
[0256] Obtaining a plurality of first distribution statistical data of the first candidate indicator data, and obtaining a plurality of second distribution statistical data of the second candidate indicator data;
[0257] Correspondingly, calculating the similarity between the first distribution statistical data and the second distribution statistical data to obtain the distribution statistical similarity value includes: using a clustering algorithm to calculate the similarity between the multiple first distribution statistical data and the multiple second distribution statistical data to obtain the distribution statistical similarity value.
[0258] Optionally, obtaining the first original data table and the second original data table includes:
[0259] Get the alternative raw data table with matching names;
[0260] The metadata of the candidate original data table is analyzed to obtain a first original data table and a second original data table whose metadata similarity values reach a target metadata similarity threshold.
[0261] Optionally, splitting the first original data table to obtain a first indicator sequence, and splitting the second original data table to obtain a second indicator sequence includes:
[0262] The first original data table is split according to a method in which one primary key sequence corresponds to one index sequence to obtain a first group of primary key-index sequence pairs, and the second original data table is split according to a method in which one primary key sequence corresponds to one index sequence to obtain a second group of primary key-index sequence pairs;
[0263] The first index sequence is obtained from the first set of primary key-index sequence pairs, and the second index sequence is obtained from the second set of primary key-index sequence pairs.
[0264] Optionally, obtaining the target general data table according to the first indicator sequence or the second indicator sequence includes: establishing the target general data table according to the first indicator sequence and a first primary key sequence corresponding to the first indicator sequence in accordance with a predetermined data warehouse subject domain construction standard, or establishing the target general data table according to the second indicator sequence and a second primary key sequence corresponding to the second indicator sequence.
[0265] Optionally, the method further includes: rectifying the first original data table according to the target data general table.
[0266] Optionally, the method further includes: rectifying the second original data table according to the target data general table.
[0267] Optionally, it further includes: verifying whether the caliber information of the first indicator sequence matches the caliber information of the second indicator sequence;
[0268] The obtaining of the target general data table according to the first indicator sequence or the second indicator sequence includes: after determining that the caliber information of the first indicator sequence matches the caliber information of the second indicator sequence, obtaining the target general data table according to the first indicator sequence or the second indicator sequence.
[0269] The electronic device provided by the present embodiment, when the computer instructions stored in its memory are executed by its processor, can obtain multiple indicator sequences by splitting the first original data table and the second original data table, and after determining that the similarity values between the indicator sequences split from the above different original data tables reach a predetermined similarity threshold, the target general data table is constructed according to the indicator sequences split from the above different original data tables. By using this electronic device, it is possible to quickly find indicator sequences with high similarity in many existing personalized data tables, and to establish a general data table based on this, so that the general data table constructed once can be used multiple times by each data demander, which can reduce the consumption of data storage resources and data computing resources caused by the existing repeated construction of data tables, and reduce the complexity of the data management process. And the electronic device does not need to instruct each data demander to construct a data table according to a pre-established standard construction specification, which can avoid the existing high data management cost in the process of preventing repeated construction of data tables, and the problem of not being able to meet the business needs of all data demanders.
[0270] The fourth embodiment of the present application further provides a data processing method, which can be used as a product deployment solution for the data processing method provided in the first embodiment. The implementation subject of the method can be a computing device application that provides a data table compression service, for example, a data table compression service software in a SaaS (Software-as-a-Service) mode, such as Figure 4 As shown, the method comprises the following steps:
[0271] S401, receiving multiple original data tables input, for example, receiving multiple original data tables input by user A, or receiving multiple original data tables from different users.
[0272] S402, obtaining a target general data table according to the multiple original data tables, and outputting the target general data table; wherein any one indicator sequence of the target general data table is an indicator sequence of similar indicator sequences between at least two original data tables in the multiple original data tables, and the similarity between the similar indicator sequences reaches a predetermined similarity threshold. For example, after the multiple original data tables are processed by the data processing method provided in the first embodiment of the present application, a target general data table is obtained, and the target general data table is provided to the user A, or the target general data table is provided to different users respectively.
[0273] The fifth embodiment of the present application also provides a data processing method, such as Figure 5 As shown, the method comprises the following steps:
[0274] S501, obtaining a target general data table.
[0275] S502, obtaining the generation source data of the target general data table, for example, obtaining the generation algorithm used to generate the target general data table and the lineage data used to trace the source data table of the target general data table.
[0276] S503, obtaining at least two source data tables required to generate the target general data table according to the generation source data of the target general data table, wherein the index sequence of the target general data table is a similar index sequence between the at least two source data tables, and the similarity between the similar index sequences reaches a predetermined similarity threshold.
[0277] By using this method, it is possible to trace the generation source of the target general data table and obtain the source data table that historically generated the target general data table. The user of the target general data table (for example, user A who wants to build a data table, for whom the target general data table is recommended before he builds the data table) can compare the content of the source data table obtained above with his own business needs to determine the degree of match between the target general data table and his business needs.
[0278] The sixth embodiment of the present application also provides a data processing method, such as Figure 6 As shown, the method comprises the following steps:
[0279] S601, obtain the indicator sequence to be constructed of the data table that the target subject wants to construct. For example, obtain the information of the indicator sequence selected by business party A when constructing the data table (such as "transaction volume indicator", "conclusion rate indicator", "commodity category indicator"), and the information of the indicator sequence can reflect the business demand information of business party A and the industry information to which it belongs.
[0280] S602: If the similarity between the indicator sequence to be constructed and the target indicator sequence of the target general data table reaches a predetermined similarity threshold, the target general data table is pushed to the target subject. For example, the method provided in step S103 in the first embodiment of the present application (preferably the metadata similarity value between the indicator sequence to be constructed and the target indicator sequence) is used to determine whether the similarity between the indicator sequence to be constructed and the target indicator sequence of the target general data table reaches a predetermined similarity threshold. If so, the target general data table is pushed to business party A, and business party A can obtain corresponding business information and industry information from the target general data table.
[0281] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0282] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0283] 1. Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.
[0284] 2. Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0285] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
Claims
1. A data processing method, characterized in that: include: Obtain a first original data table and a second original data table; Splitting the first original data table to obtain a first indicator sequence, and splitting the second original data table to obtain a second indicator sequence; Comparing the indicator data in the first indicator sequence with the indicator data in the second indicator sequence for similarity to obtain an indicator data similarity value, including: Obtaining first index data and second index data matching the primary key data, and obtaining first quantity information of the first index data or the second index data, wherein the first index data comes from the first index sequence, and the second index data comes from the second index sequence; Performing similarity calculation on the first indicator data and the second indicator data to obtain second quantity information of indicator data pairs whose similarity reaches a target similarity threshold; Determine the ratio of the second quantity information to the first quantity information as the indicator data similarity value; If the indicator data similarity value reaches a predetermined indicator data similarity threshold, determining that the similarity between the first indicator sequence and the second indicator sequence reaches a predetermined similarity threshold; If the similarity between the first indicator sequence and the second indicator sequence reaches a predetermined similarity threshold, a target general data table is obtained according to the first indicator sequence or the second indicator sequence.
2. The method according to claim 1, characterized in that Before performing similarity comparison between the indicator data in the first indicator sequence and the indicator data in the second indicator sequence to obtain the indicator data similarity value, the method further includes: Performing a similarity comparison between the metadata of the first indicator sequence and the metadata of the second indicator sequence to obtain a metadata similarity value; If the metadata similarity value reaches a predetermined metadata similarity threshold, the process proceeds to the step of performing a similarity comparison between the indicator data in the first indicator sequence and the indicator data in the second indicator sequence to obtain an indicator data similarity value.
3. The method according to claim 1, characterized in that Before performing similarity comparison between the indicator data in the first indicator sequence and the indicator data in the second indicator sequence to obtain the indicator data similarity value, the method further includes: Performing a similarity comparison on the distribution statistical data of the indicator data in the first indicator sequence and the distribution statistical data of the indicator data in the second indicator sequence to obtain a distribution statistical similarity value; If the distribution statistical similarity value reaches a predetermined distribution statistical similarity threshold, the step of performing a similarity comparison between the indicator data in the first indicator sequence and the indicator data in the second indicator sequence to obtain an indicator data similarity value is entered.
4. The method according to claim 3, characterized in that Before comparing the distribution statistics of the indicator data in the first indicator sequence with the distribution statistics of the indicator data in the second indicator sequence to obtain the distribution statistics similarity value, the method further includes: Performing a similarity comparison between the metadata of the first indicator sequence and the metadata of the second indicator sequence to obtain a metadata similarity value; If the metadata similarity value reaches a predetermined metadata similarity threshold, the step of performing a similarity comparison between the distribution statistical data of the indicator data in the first indicator sequence and the distribution statistical data of the indicator data in the second indicator sequence to obtain a distribution statistical similarity value is entered.
5. The method according to claim 1, characterized in that The first indicator data and the second indicator data are numerical indicator data, and the similarity calculation is performed on the first indicator data and the second indicator data to obtain second quantity information of indicator data pairs whose similarity reaches a target similarity threshold, including: Converting the first indicator data and the second indicator data into digital indicator data; Performing precision conversion on the digital indicator data; Perform similarity calculation on the first indicator data and the second indicator data after precision conversion to obtain first target indicator data and second target indicator data whose similarity reaches a first target similarity threshold, the first target indicator data belongs to the first indicator data, the second target indicator data belongs to the second indicator data, and the first target indicator data and the second target indicator data constitute the indicator data pair; The quantities of the indicator data pairs are summarized to obtain the second quantity information.
6. The method according to claim 1, characterized in that The first indicator data and the second indicator data are character indicator data, and the similarity calculation is performed on the first indicator data and the second indicator data to obtain second quantity information of indicator data pairs whose similarity reaches a target similarity threshold, including: Performing vectorization processing on the first indicator data to obtain a first indicator vector, and performing vectorization processing on the second indicator data to obtain a second indicator vector; Performing cosine similarity calculation on the first indicator vector and the second indicator vector to obtain a first target indicator vector and a second target indicator vector whose similarity reaches a second target similarity threshold, the first target indicator vector belongs to the first indicator vector, the second target indicator vector belongs to the second indicator vector, and the first target indicator data corresponding to the first target indicator vector and the second target indicator data corresponding to the second target indicator vector constitute the indicator data pair; The quantities of the indicator data pairs are summarized to obtain the second quantity information.
7. The method according to claim 1, characterized in that The obtaining of the first index data and the second index data matching the primary key data includes: Performing random sampling processing on the indicator data in the first indicator sequence to obtain a first indicator data matrix, and performing random sampling processing on the indicator data in the first indicator sequence to obtain a second indicator data matrix; The first indicator data matrix and the second indicator data matrix are associated to obtain the first indicator data and the second indicator data that match the primary key data.
8. The method according to claim 2 or 4, characterized in that: The performing similarity comparison between the metadata of the first indicator sequence and the metadata of the second indicator sequence to obtain a metadata similarity value includes: Obtaining first metadata of the first indicator sequence, and obtaining second metadata of the second indicator sequence, wherein the first metadata and the second metadata are metadata of the same category; converting the first metadata into a first feature vector, and converting the second metadata into a second feature vector; The similarity between the first feature vector and the second feature vector is calculated to obtain a metadata similarity value.
9. The method according to claim 8, characterized in that The obtaining of the first metadata of the first indicator sequence and the obtaining of the second metadata of the second indicator sequence include: Obtain a plurality of first metadata of the first indicator sequence, and obtain a plurality of second metadata of the second indicator sequence; Correspondingly, the converting the first metadata into a first feature vector, and the converting the second metadata into a second feature vector, includes: According to the level information of the homology table, the plurality of first metadata are converted into a plurality of first feature vectors, and the plurality of second metadata are converted into a plurality of second feature vectors; Correspondingly, calculating the similarity between the first feature vector and the second feature vector to obtain a metadata similarity value includes: Merging the plurality of first feature vectors into a first target vector, and merging the plurality of second feature vectors into a second target vector; The similarity between the first target vector and the second target vector is calculated to obtain the metadata similarity value.
10. The method according to claim 8, characterized in that The metadata of the first indicator sequence includes indicator lineage data of the first indicator sequence, the metadata of the second indicator sequence includes indicator lineage data of the second indicator sequence, and the converting of the first metadata into a first feature vector and the converting of the second metadata into a second feature vector include: Constructing a relationship graph based on the indicator lineage data of the first indicator sequence and the indicator lineage data of the second indicator sequence, in which the points represent the first indicator sequence and the second indicator sequence, and the edges represent the weight information assigned according to the level information of the homology table corresponding to the first indicator sequence and the second indicator sequence; A first eigenvector and a second eigenvector are obtained according to the relationship graph.
11. The method according to claim 3 or 4, characterized in that: The comparing the distribution statistics of the indicator data in the first indicator sequence with the distribution statistics of the indicator data in the second indicator sequence to obtain a distribution statistics similarity value includes: Sampling the indicator data in the first indicator sequence to obtain first candidate indicator data, and sampling the indicator data in the second indicator sequence to obtain second candidate indicator data; Obtaining first distribution statistical data of the first candidate indicator data, and obtaining second distribution statistical data of the second candidate indicator data, wherein the first distribution statistical data and the second distribution statistical data are distribution statistical data of the same type; The similarity between the first distribution statistical data and the second distribution statistical data is calculated to obtain the distribution statistical similarity value.
12. The method according to claim 11, characterized in that The obtaining of first distribution statistical data of the first candidate indicator data and obtaining of second distribution statistical data of the second candidate indicator data includes: Obtaining a plurality of first distribution statistical data of the first candidate indicator data, and obtaining a plurality of second distribution statistical data of the second candidate indicator data; Correspondingly, the calculating the similarity between the first distribution statistical data and the second distribution statistical data to obtain the distribution statistical similarity value includes: A clustering algorithm is used to calculate the similarity between the plurality of first distribution statistical data and the plurality of second distribution statistical data to obtain the distribution statistical similarity value.
13. The method according to claim 1, characterized in that The obtaining of the first original data table and the second original data table comprises: Get the alternative raw data table with matching names; The metadata of the candidate original data table is analyzed to obtain a first original data table and a second original data table whose metadata similarity values reach a target metadata similarity threshold.
14. The method according to claim 1, characterized in that The step of splitting the first original data table to obtain a first indicator sequence, and splitting the second original data table to obtain a second indicator sequence includes: The first original data table is split in a manner that one primary key sequence corresponds to one index sequence to obtain a first set of primary key-index sequence pairs, and the second original data table is split in a manner that one primary key sequence corresponds to one index sequence to obtain a second set of primary key-index sequence pairs; The first index sequence is obtained from the first set of primary key-index sequence pairs, and the second index sequence is obtained from the second set of primary key-index sequence pairs.
15. The method according to claim 1, characterized in that The step of obtaining a target general data table according to the first indicator sequence or the second indicator sequence includes: According to a predetermined data warehouse subject domain construction standard, a target general data table is established based on the first indicator sequence and the first primary key sequence corresponding to the first indicator sequence, or a target general data table is established based on the second indicator sequence and the second primary key sequence corresponding to the second indicator sequence.
16. The method according to claim 1, characterized in that Also includes: The first original data table is rectified according to the target general data table.
17. The method according to claim 1, characterized in that Also includes: The second original data table is rectified according to the target general data table.
18. The method according to claim 1, characterized in that Also includes: Verify whether the caliber information of the first indicator sequence matches the caliber information of the second indicator sequence; The step of obtaining a target general data table according to the first indicator sequence or the second indicator sequence includes: After determining that the caliber information of the first indicator sequence matches the caliber information of the second indicator sequence, a target general data table is obtained according to the first indicator sequence or the second indicator sequence.
19. A data processing device, characterized in that: include: An original data table obtaining unit, used to obtain a first original data table and a second original data table; An indicator sequence obtaining unit, configured to split the first original data table to obtain a first indicator sequence, and split the second original data table to obtain a second indicator sequence; a target general data table obtaining unit, configured to obtain a target general data table according to the first indicator sequence or the second indicator sequence when it is determined that the similarity between the first indicator sequence and the second indicator sequence reaches a predetermined similarity threshold; The method for determining whether the similarity between the first indicator sequence and the second indicator sequence reaches a predetermined similarity threshold is as follows: Comparing the indicator data in the first indicator sequence with the indicator data in the second indicator sequence for similarity to obtain an indicator data similarity value, including: Obtaining first index data and second index data matching the primary key data, and obtaining first quantity information of the first index data or the second index data, wherein the first index data comes from the first index sequence, and the second index data comes from the second index sequence; Performing similarity calculation on the first indicator data and the second indicator data to obtain second quantity information of indicator data pairs whose similarity reaches a target similarity threshold; Determine the ratio of the second quantity information to the first quantity information as the indicator data similarity value; If the indicator data similarity value reaches a predetermined indicator data similarity threshold, it is determined that the similarity between the first indicator sequence and the second indicator sequence reaches the predetermined similarity threshold.
20. An electronic device, characterized in that: comprising a processor and a memory; wherein, The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method according to claims 1-18.
21. A data processing method, characterized in that: include: Receive multiple raw data tables as input; Obtaining a target general data table according to the plurality of original data tables, and outputting the target general data table; Among them, any one indicator sequence of the target general data table is an indicator sequence in similar indicator sequences between at least two original data tables in the multiple original data tables, and the similarity between the similar indicator sequences reaches a predetermined similarity threshold, specifically including: Obtaining first indicator data and second indicator data matching the primary key data, and obtaining first quantity information of the first indicator data or the second indicator data, wherein the first indicator data comes from a first indicator sequence, and the second indicator data comes from a second indicator sequence; Performing similarity calculation on the first indicator data and the second indicator data to obtain second quantity information of indicator data pairs whose similarity reaches a target similarity threshold; Determine a ratio of the second quantity information to the first quantity information as an indicator data similarity value; If the indicator data similarity value reaches a predetermined indicator data similarity threshold, it is determined that the similarity between the similar indicator sequences reaches the predetermined similarity threshold.
22. A data processing method, characterized in that: include: Get the target general data table; Obtaining generation source data of the target general data table; According to the generation source data of the target general data table, obtaining at least two source data tables required for generating the target general data table; The indicator sequence of the target common data table is a similar indicator sequence between the at least two source data tables, and the similarity between the similar indicator sequences reaches a predetermined similarity threshold, specifically including: Obtaining first indicator data and second indicator data matching the primary key data, and obtaining first quantity information of the first indicator data or the second indicator data, wherein the first indicator data comes from a first indicator sequence, and the second indicator data comes from a second indicator sequence; Performing similarity calculation on the first indicator data and the second indicator data to obtain second quantity information of indicator data pairs whose similarity reaches a target similarity threshold; Determine a ratio of the second quantity information to the first quantity information as an indicator data similarity value; If the indicator data similarity value reaches a predetermined indicator data similarity threshold, it is determined that the similarity between the similar indicator sequences reaches the predetermined similarity threshold.
23. A data processing method, characterized in that: include: Obtain the sequence of indicators to be constructed of the data table that the target subject wants to construct; If the similarity between the indicator sequence to be constructed and the target indicator sequence of the target general data table reaches a predetermined similarity threshold, the target general data table is pushed to the target subject; The similarity between the indicator sequence to be constructed and the target indicator sequence of the target general data table reaches a predetermined similarity threshold, specifically including: Obtaining first indicator data and second indicator data matching the primary key data, and obtaining first quantity information of the first indicator data or the second indicator data, wherein the first indicator data comes from the indicator sequence to be constructed, and the second indicator data comes from the target indicator sequence; Performing similarity calculation on the first indicator data and the second indicator data to obtain second quantity information of indicator data pairs whose similarity reaches a target similarity threshold; Determine a ratio of the second quantity information to the first quantity information as an indicator data similarity value; If the indicator data similarity value reaches a predetermined indicator data similarity threshold, it is determined that the similarity between the indicator sequence to be constructed and the target indicator sequence of the target general data table reaches the predetermined similarity threshold.
