Data processing method, electronic equipment and storage medium

By extracting and combining the target dimension fields of the data to be summarized, a combined dimension field is formed, which solves the problem of interruption of data summary tasks and downstream services caused by adding or reducing summary dimension fields in the existing technology, and realizes the interruption of data summary tasks and downstream services. Intermittent operation.

CN118643079APending Publication Date: 2024-09-13ZHEJIANG CAINIAO SUPPLY CHAIN MANAGEMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310268998.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-13
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

When adding or reducing summary dimension fields, existing data summary methods cause interruption of data summary tasks and downstream services, and are incompatible with summary result data with different numbers of fields.

Method used

By extracting the target dimension fields in the data to be summarized, combining them into combined dimension fields, and providing the summary data structure corresponding to the combined dimension fields, data summary processing is realized, ensuring the uninterrupted operation of the data summary task when the summary dimension fields are added or reduced.

Benefits of technology

It realizes the uninterrupted operation of data summary tasks and downstream services, ensures compatibility when adding or reducing summary dimension fields, and avoids interruption of data summary tasks and downstream services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118643079A
    Figure CN118643079A
Patent Text Reader

Abstract

The embodiment of the invention provides a data processing method, electronic equipment and a storage medium. The method specifically comprises the steps of extracting at least one target dimension field from to-be-summarized data; combining the field content of the at least one target dimension field in the to-be-summarized data to obtain combined field content corresponding to a combined dimension field; the number of the combined dimension field is one; providing a summarized data structure corresponding to the combined dimension field; the summarized data structure comprises a combined dimension field and a summarized target field; according to the summarized data structure and the combined field content, summarizing the to-be-summarized data to obtain a target summarized data record related to the to-be-summarized data and / or the combined field content; the target summarized data record is a data record contained in the summarized data structure. According to the embodiment of the invention, the uninterrupted operation of the data summarization task and the downstream service can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular, to a data processing method, an electronic device, and a storage medium. Background Art

[0002] With the rapid development of computer technology, enterprises generate a large amount of data during operation. Data aggregation technology can obtain the stream data generated during the operation of the enterprise from the data source and aggregate the acquired stream data. The aggregated result data can be used to provide data query services to downstream applications.

[0003] Taking the shipping data whose stream data is the logistics object as an example, the stream data may include fields such as shipping warehouse and shipping logistics order number. Assuming that the summary dimension field is the shipping warehouse field and the summary target is the shipping quantity, the current data aggregation method can aggregate the stream data according to the shipping warehouse field and the shipping quantity, and the aggregated result data may include the shipping warehouse field and the shipping quantity field.

[0004] In actual applications, it is possible to add or reduce summary dimension fields, such as adding a shipping date field based on the shipping warehouse field. When adding or reducing summary dimension fields, all previous summary-related data will be unavailable, the corresponding data summary task needs to be restarted, and the data written to the downstream application also needs to be cleared. Therefore, the current data summary method will cause the interruption of data summary tasks and downstream services when adding or reducing summary dimension fields. Summary of the invention

[0005] The embodiment of the present application provides a data processing method that can achieve uninterrupted operation of data aggregation tasks and downstream services.

[0006] Correspondingly, an embodiment of the present application also provides a data processing device, an electronic device and a storage medium to realize the implementation and application of the above method.

[0007] In order to solve the above problems, the present application discloses a data processing method, which includes:

[0008] Extract at least one target dimension field from the data to be summarized;

[0009] Combining the field contents of at least one target dimension field in the data to be summarized to obtain a combined field content corresponding to a combined dimension field; the combined dimension field is one;

[0010] Providing a summary data structure corresponding to the combined dimension field; the summary data structure includes: the combined dimension field and the summary target field;

[0011] The data to be summarized are summarized according to the summary data structure and the combination field content to obtain a target summary data record related to the data to be summarized and / or the combination field content; the target summary data record is a data record included in the summary data structure.

[0012] In order to solve the above problems, the present application discloses a data processing method, which includes:

[0013] receiving query requests;

[0014] According to the query request, query is performed in the summary data record or the summary result data record to obtain the query result; the summary data structure includes: a combination dimension field and a summary target field; the summary result data record includes: the combination dimension field in the target summary data record, and its corresponding summary target field and at least one target dimension field; the combination field content corresponding to the combination dimension field is obtained by combining the field content of the at least one target dimension field in the data to be summarized;

[0015] The query result is outputted.

[0016] In order to solve the above problems, an embodiment of the present application discloses a data processing device, the device comprising:

[0017] A field extraction module, used for extracting at least one target dimension field from the data to be summarized;

[0018] A field combination module, used for combining the field content of the at least one target dimension field in the data to be summarized to obtain a combined field content corresponding to the combined dimension field; the combined dimension field is one;

[0019] A structure providing module, used to provide a summary data structure corresponding to the combined dimension field; the summary data structure includes: a combined dimension field and a summary target field;

[0020] A summary processing module is used to summarize the data to be summarized according to the summary data structure and the combined field content to obtain a target summary data record related to the data to be summarized and / or the combined field content; the target summary data record is a data record contained in the summary data structure.

[0021] Optionally, the summary processing module includes:

[0022] a record updating module, configured to obtain, from the summary data structure, a first target summary data record related to the data to be summarized and / or the content of the combination field, and update the first target summary data record according to the data to be summarized and / or the content of the combination field; and / or

[0023] The record establishment module is used to establish a second target summary data record corresponding to the content of the combination field according to the content of the combination field and the data to be summarized.

[0024] Optionally, the record updating module is specifically configured to update the field content of the summary target field in the first target summary data record according to the process summary target data corresponding to the data to be summarized and / or the combined field content.

[0025] Optionally, the process summarizes the process of determining the target data, including:

[0026] According to the primary key field contained in the data to be summarized, a search is performed in the historical data records to obtain a search result; the search is used to search the historical data records for a target historical data record that matches the primary key field; the historical data record includes: the fields contained in the summarized data and the combined dimension fields corresponding to the summarized data; the data to be summarized and the summarized data contain the same fields;

[0027] According to the search result, the process summary target data corresponding to the data to be summarized is determined.

[0028] Optionally, determining the process summary target data corresponding to the data to be summarized according to the search result includes:

[0029] In the case where the search result is a search hit, the first process summary target data is determined according to the target historical data record obtained by the search, and the second process summary target data is determined according to the data to be summarized and the combined field content; the first process summary target data includes: a negative mark, a combined dimension field contained in the target historical data record, and a process summary target field; the field content of the process summary target field contained in the first process summary target data is determined according to a preset logic; the second process summary target data includes: a positive mark, a combined dimension field corresponding to the data to be summarized, and a process summary target field; the field content of the process summary target field contained in the second process summary target data is determined according to a preset logic; or

[0030] In the case where the search result is a search failure, the second process summary target data is determined based on the data to be summarized and the combined field content; the second process summary target data includes: a positive mark, a combined dimension field corresponding to the data to be summarized, and a process summary target field; the field content of the process summary target field included in the second process summary target data is determined according to a preset logic.

[0031] Optionally, the record updating module includes:

[0032] A first record updating module, configured to add the field content of the summary target field in the first target summary data record to the field content of the process summary target field when the process summary target data includes a positive mark, a combined dimension field corresponding to the data to be summarized, and a process summary target field; and / or

[0033] The second record updating module is used to subtract the field content of the summary target field in the first target summary data record from the field content of the process summary target field when the process summary target data includes a negative mark, a combined dimension field contained in the target history data record, and a process summary target field.

[0034] Optionally, the device further comprises:

[0035] A parsing device module, used to parse the combined dimension fields in the target summary data record to obtain at least one corresponding target dimension field;

[0036] The output module is used to output the summary result data record; the summary result data record includes: the combined dimension field in the target summary data record, and its corresponding summary target field and at least one target dimension field.

[0037] In order to solve the above problems, an embodiment of the present application discloses a data processing device, the device comprising:

[0038] A receiving module, used for receiving a query request;

[0039] A query module, configured to query in the summary data record or the summary result data record according to the query request to obtain a query result; the summary data structure includes: a combination dimension field and a summary target field; the summary result data record includes: the combination dimension field in the target summary data record, and its corresponding summary target field and at least one target dimension field; the combination field content corresponding to the combination dimension field is obtained by combining the field content of the at least one target dimension field in the data to be summarized;

[0040] The result output module is used to output the query result.

[0041] In order to solve the above problems, an embodiment of the present application discloses an electronic device, including: a processor; and a memory, on which executable codes are stored. When the executable codes are executed, the processor executes a method as described in any one of the above embodiments.

[0042] In order to solve the above problems, the embodiments of the present application disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the method as described in any one of the above embodiments.

[0043] Compared with the prior art, the embodiments of the present application have the following advantages:

[0044] In the technical solution of the embodiment of the present application, at least one target dimension field included in the data to be summarized can represent the dimension field used for summarization. The embodiment of the present application combines the dimension fields used for summarization together and processes them as a combined dimension field, and also provides a summary data structure corresponding to the combined dimension field. For the data summarization task, the number of combined dimension fields is one before and after adding or reducing the summary dimension field; in this way, the summary data structure before adding or reducing the summary dimension field is available to the data summarization task, so the data summarization task can be compatible with the summary data structure before and after adding or reducing the summary dimension field. Therefore, the embodiment of the present application can achieve uninterrupted operation of the data summarization task when adding or reducing the summary dimension field, and thus can achieve uninterrupted operation of downstream services. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 is a flowchart of the steps of a data processing method according to an embodiment of the present application;

[0046] Figure 2 is a flowchart of the steps of a method for determining the content of a combination field according to an embodiment of the present application;

[0047] Figure 3 is a flowchart of the steps of a method for processing historical data records according to an embodiment of the present application;

[0048] Figure 4 is a flowchart of the steps of a method for determining process summary target data in one embodiment of the present application;

[0049] Figure 5 is a flowchart of the steps of a method for processing aggregated data records according to an embodiment of the present application;

[0050] Figure 6 is a flowchart of the steps of a data processing method according to an embodiment of the present application;

[0051] Figure 7 is a flowchart of the steps of a data processing method according to an embodiment of the present application;

[0052] Figure 8 is a flowchart of the steps of a data processing method according to an embodiment of the present application;

[0053] Fig. 9 is a structural schematic diagram of a data processing device according to an embodiment of the present application;

[0054] Fig.10 is a structural schematic diagram of a data processing device according to an embodiment of the present application;

[0055] Fig.11 It is a schematic diagram of the structure of an exemplary device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0056] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0057] The embodiments of the present application can be applied to data processing scenarios. The data here can be data in one or more fields. Examples of fields may include: e-commerce field, logistics field, financial field, social field, power field, transportation field, etc. It can be understood that the embodiments of the present application do not limit the specific fields involved in the data.

[0058] Data processing modes can include: offline mode and online mode. Among them, offline mode can refer to batch processing of offline data, that is, offline data is ready before starting calculation, which is mainly used for data mining and verification service models. Offline mode adopts time-based scheduling. When data needs to be processed, computing resources are applied for data calculation; and according to the actual amount of data to be processed, massive computing resources can be requested in a short time for instantaneous parallel data calculation; the actual resources consumed are relatively small, but the disadvantage is that the calculation is performed by accumulating a batch of data, which takes a long time.

[0059] Online mode refers to the processing of online data with timeliness. Online mode usually requires computing resources to remain online continuously to cope with the continuous input of streaming data. Since it is a mode that continuously occupies resources, the online mode consumes a lot of computing resources; when computing resources are limited, it is usually impossible to achieve the massive scale and instantaneous high throughput of the online mode, but the advantage is that data is calculated as soon as it comes, which can achieve low-latency data calculation and timely display of decisions.

[0060] Online data can be stream data. Stream data can be a set of sequential, large, fast, and continuous data sequences. In general, stream data can be regarded as a dynamic data set that grows infinitely over time. It can be applied to network monitoring, sensor networks, aerospace, meteorological measurement and control, and financial services. The corresponding calculation of stream data can be used to process stream data in a timely and fast manner, analyze large-scale stream data in real time during the ever-changing movement process, capture potentially useful information, and output online results, for example, send online results to the next computing node.

[0061] The embodiments of the present application may involve the use of user data. In actual applications, user-specific personal data may be used in the scheme described herein within the scope permitted by applicable laws and regulations, subject to the requirements of applicable laws and regulations of the country where the user is located (for example, with the user's explicit consent, effective notification to the user, etc.).

[0062] The data aggregation task is an online processing task. The data aggregation task can obtain the stream data generated during the operation of the enterprise from the data source, and aggregate the acquired stream data. The aggregated result data can be used to provide data query services to downstream applications.

[0063] Taking the shipping data whose stream data is the logistics object as an example, the stream data may include fields such as shipping warehouse and shipping logistics order number. Assuming that the summary dimension field is the shipping warehouse field and the summary target is the shipping quantity, the current data aggregation method can aggregate the stream data according to the shipping warehouse field and the shipping quantity, and the aggregated result data may include the shipping warehouse field and the shipping quantity field.

[0064] Referring to Table 1, an example of flow data of an embodiment of the present application is shown, where the flow data is specifically a logistics object shipping data table, and the logistics object shipping data table specifically includes fields such as shipping warehouse, shipping date, and shipping logistics order number.

[0065] Table 1

[0066] Shipping warehouse Shipping Date Shipping logistics tracking number Warehouse A 20220101 LP001 Warehouse B 20220101 LP002 Warehouse A 20220102 LP003 Warehouse B 20220102 LP004 …… …… ……

[0067] Data aggregation can aggregate data into groups. For example, data can be classified according to the data columns specified by the user, and summed, averaged, counted, etc. Taking the logistics object shipment data table shown in Table 1 as an example, the logistics object shipment data table can be aggregated according to the shipment warehouse field and the shipment date field to obtain the number of packages shipped by a shipment warehouse in a natural day.

[0068] In actual applications, it is possible to add or reduce summary dimension fields, such as adding a shipping date field based on a shipping warehouse field, etc. Referring to Table 2, an example of summary result data before adding summary dimension fields in the prior art is shown, and the summary result data may specifically include: a shipping warehouse field and a shipping package quantity field.

[0069] Table 2

[0070] Aggregate dimension field (shipping warehouse) Summarize target field (shipping quantity) Warehouse A 2 Warehouse B 2

[0071] Referring to Table 3, an example of summary result data after adding summary dimension fields in the prior art is shown, and the summary result data may specifically include: a shipping warehouse field and a shipping package quantity field.

[0072] Table 3

[0073]

[0074] When the current data aggregation method is used, when the aggregation dimension field is added, all the previous aggregation-related data will be unavailable. The aggregation result data before adding the aggregation dimension field in Table 2 includes 2 fields, while the aggregation result data after adding the aggregation dimension field in Table 3 includes 3 fields. The difference in the number of fields in the aggregation result data leads to the incompatibility of the aggregation result data before and after adding the aggregation dimension field, which in turn leads to the unavailability of all the aggregation-related data before adding the aggregation dimension field. In this case, the corresponding data aggregation task needs to be restarted, and the data written to the downstream application also needs to be cleared. Therefore, the current data aggregation method will cause the interruption of data aggregation tasks and downstream services when adding or reducing the aggregation dimension field.

[0075] In response to the technical problems of data aggregation task interruption and downstream service interruption when adding or reducing aggregation dimension fields, an embodiment of the present application provides a data processing solution, which specifically includes: extracting at least one target dimension field from the data to be aggregated; combining the field content of the at least one target dimension field in the data to be aggregated to obtain the combined field content corresponding to the combined dimension field; the combined dimension field is one; providing a summary data structure corresponding to the combined dimension field; the summary data structure may specifically include: the combined dimension field and the summary target field; according to the summary data structure and the combined field content, the data to be aggregated is aggregated to obtain a target summary data record related to the data to be aggregated and / or the combined field content; the target summary data record may be a data record contained in the summary data structure.

[0076] In an embodiment of the present application, at least one target dimension field included in the data to be summarized can represent the dimension field used for summarization. In an embodiment of the present application, the dimension fields used for summarization are combined together and processed as a combined dimension field, and a summary data structure corresponding to the combined dimension field is also provided. For data summarization tasks, the number of combined dimension fields is one before and after adding or reducing the summary dimension field; in this way, the summary data structure before adding or reducing the summary dimension field is available to the data summarization task, so the data summarization task can be compatible with the summary data structure before and after adding or reducing the summary dimension field. Therefore, the embodiment of the present application can achieve uninterrupted operation of the data summarization task when adding or reducing the summary dimension field, and thus can achieve uninterrupted operation of downstream services.

[0077] Method Example 1

[0078] Reference Figure 1 , shows a flowchart of the steps of a data processing method according to an embodiment of the present application, which may specifically include the following steps:

[0079] Step 101: extract at least one target dimension field from the data to be summarized;

[0080] Step 102: combine the field contents of the at least one target dimension field in the data to be summarized to obtain a combined field content corresponding to the combined dimension field; the combined dimension field is one;

[0081] Step 103: Provide a summary data structure corresponding to the combined dimension field; the summary data structure specifically includes: the combined dimension field and the summary target field;

[0082] Step 104: perform aggregation processing on the data to be aggregated according to the aggregated data structure and the combined field content to obtain a target aggregated data record related to the data to be aggregated and / or the combined field content; the target aggregated data record may be a data record included in the aggregated data structure.

[0083] The data processing method of the embodiment of the present application can be run on a computing platform. The computing platform can be applied to a data warehouse environment and can adopt a real-time computing framework. It can be understood that the embodiment of the present application does not limit the specific operating environment of the data processing method.

[0084] In step 101, the data to be summarized may be a data record of detailed data. Detailed data may refer to specific detailed data that retains more fine-grained data content. In data analysis or modern data warehouse systems, detailed data generally refers to the state attributes or state feature details of a service process document or an entity object at a certain moment. The logistics object shipment data table shown in Table 1 is an example of detailed data. It can be understood that the embodiments of the present application do not limit the specific data to be summarized.

[0085] In the embodiment of the present application, the dimension corresponding to the target dimension field generally refers to a certain characteristic of a phenomenon. The measurement statistics from a certain perspective are called dimensions. In data analysis, such as provinces, cities, districts, product names, company names, dates, etc. can all be used as dimensions for data analysis. The target dimension field is usually used to compare things in many aspects.

[0086] In a specific implementation, the target dimension field defined by the user through parameter configuration, dimension selection in the interface, or manual mapping can be received, and the configuration content can be saved; further, at least one target dimension field can be selected from the fields included in the data to be summarized according to the configuration content. The number of target dimension fields in the configuration content can be one or more.

[0087] In step 102, at least one target dimension field is sequentially concatenated according to the order of the target dimension fields in the data to be summarized.

[0088] In the process of splicing the field contents of different target dimension fields, the embodiment of the present application may insert preset separator characters between the field contents of different target dimension fields to reduce the probability of collision between the combinations of different fields. The embodiment of the present application adds preset separators between the field contents of different target dimension fields. In other words, the combined field contents include: preset separator characters between the field contents of different target dimension fields. For example, the combined field contents include, in sequence: a first target dimension field, a preset separator, and a second target dimension field; or, the combined field contents include, in sequence: a first target dimension field, a preset separator, a second target dimension field, a preset separator, and a third target dimension field.

[0089] In an application example, assume that the data to be summarized includes two data records, the field content of field A in data record 1 is aa, the field content of field B is b, the field content of field A in data record 2 is a, and the field content of field B is ab, then the result of assembling field A and field B is aab, which is a collision. The embodiment of the present application adds preset separation characters such as @, #, / u001 between field A and field B to prevent collisions between different field combinations.

[0090] The preset segmentation character may include one or more characters. The usage frequency of the preset segmentation character may be lower than the preset frequency threshold, so as to further reduce the probability of collision between combinations of different fields.

[0091] In a specific implementation, the data to be summarized may correspond to a data record to be summarized. In the embodiment of the present application, the combined field content corresponding to the combined dimension field may be inserted into a specific position in the data record to be summarized as a separate field (combined dimension field). After a module completes the insertion of the combined dimension field, an updated data record to be summarized may be obtained, and the updated data record to be summarized may be transmitted to the next module.

[0092] In an optional implementation of the present application, the field content of the combined dimension field in the data record to be aggregated may be updated with a coded string corresponding to the combined field content. The length of the coded string may generally be less than the length of the combined field content, thereby saving the storage cost of the field content of the combined dimension field during data processing.

[0093] In practical applications, the combined field content may be subjected to encoding operations such as information digest operations to obtain an encoding string corresponding to the combined field content. It is understood that the embodiments of the present application do not limit the specific encoding method for the combined field content.

[0094] Referring to Table 4, an example of updating the data records to be summarized in the prior art is shown. The updated data records to be summarized are updated by inserting a combined dimension field on the basis of the shipping warehouse field, shipping date field and shipping package quantity field shown in Table 1. The combined dimension field may specifically include: the field content of the shipping warehouse field, the preset separation character @ and the field content of the shipping date field.

[0095] Table 4

[0096]

[0097] Reference Figure 2 , shows a flowchart of the steps of a method for determining the content of a combination field according to an embodiment of the present application, which may specifically include the following steps:

[0098] Step 201: Obtain data to be summarized.

[0099] The embodiment of the present application may adopt monitoring and pulling, or periodic pulling, or receiving and other acquisition methods to obtain the data to be summarized.

[0100] In one example, the data to be summarized can be obtained from a data source such as a data pipeline. A data pipeline is a message middleware, which is a software that allows data to flow efficiently from one location to another. The steps in a data pipeline usually include data analysis processes such as extraction, transformation, combination, and verification. The data pipeline can efficiently and accurately transfer data to any step in the process. For example, a data pipeline can help data flow efficiently from an external application to a data warehouse. A data warehouse (DW, DataWarehouse) is a structured data environment. A data warehouse can provide data support for applications such as data analysis, data reporting, and data mining.

[0101] Step 202: parse the fields of the data to be summarized.

[0102] In practical applications, the data to be summarized can be subjected to field parsing according to the format of the data to be summarized, so as to obtain the field content of a single field from the data to be summarized. For example, examples of the format of the data to be summarized may include: JSON (JavaScript Object Notation), etc. It can be understood that the embodiments of the present application do not limit the specific format of the data to be summarized.

[0103] Step 203: Select at least one target dimension field from the fields included in the data to be summarized according to the configuration content.

[0104] The configuration content may include: information of at least one target dimension field.

[0105] Step 204: Combine the field contents of the at least one target dimension field in the data to be summarized to obtain combined field contents corresponding to the combined dimension field.

[0106] Step 205: Insert the combined dimension fields that have been combined into the data records to be summarized.

[0107] In practical applications, the combined field content determination module may execute steps 201 to 205 to obtain updated data records to be aggregated, and output the updated data records to be aggregated to the next module.

[0108] In step 103, the embodiment of the present application may provide a summary data structure corresponding to the combined dimension field; the summary data structure specifically includes: a combined dimension field and a summary target field.

[0109] In a specific implementation, the embodiment of the present application can use the combined dimension field as the data primary key to store the summary data structure. In addition to the combined dimension field as the data primary key, the summary data structure can include: at least one summary target field.

[0110] The summary target field can reflect the summary target and the summary result, which is generally quantitative data. For example, product sales, number of orders, number of APP (Application) visitors, etc. can be used as summary targets. Combining the target dimension field with the summary target field can better analyze the target trends of different objects and different products, and achieve the purpose of mining potential information through data analysis.

[0111] Referring to Table 5, an example of a summary data structure of an embodiment of the present application is shown, which may specifically include: a combined dimension field and a summary target field, wherein the summary target field is specifically a shipped package quantity field. The combined dimension field may include: the field content of a target dimension field, or the combined field content corresponding to multiple target dimension fields.

[0112] Table 5

[0113] Combined dimension fields Shipment volume Warehouse A@20220101 1 Warehouse A 1 Warehouse B 2

[0114] In step 104, the data to be summarized is summarized according to the summary data structure and the content of the combination field. For the data summary task, before and after adding or reducing the summary dimension field, the number of the combination dimension field is one; thus, the summary data structure before adding or reducing the summary dimension field is available for the data summary task.

[0115] The aggregation processing of the embodiment of the present application can obtain a target aggregated data record related to the data to be aggregated and / or the content of the combined field. The target aggregated data record can be: an aggregated data record obtained by updating an existing aggregated data record in the aggregated data structure, and / or the target aggregated data record can be: a newly created aggregated data record.

[0116] In a specific implementation, the aggregation processing method adopted by step 104 for aggregating the data to be aggregated may specifically include:

[0117] Aggregation processing mode 1: obtaining a first target aggregated data record related to the data to be aggregated and / or the content of the combined field from the aggregated data structure, and updating the first target aggregated data record according to the data to be aggregated and / or the content of the combined field; and / or

[0118] Summarization processing method 2: according to the content of the combination field and the data to be summarized, a second target summary data record corresponding to the content of the combination field is established.

[0119] The summary processing mode 1 may be applicable to the case where the existing summary data records in the summary data structure are updated.

[0120] The first target summary data record related to the data to be summarized and / or the combined field content may specifically include: a first target summary data record A whose field content of the combined dimension is the combined field content, and / or a first target summary data record B whose field content of the combined dimension is not the combined field content and is related to the data to be summarized. The first target summary data record A may correspond to the combined dimension field after addition or reduction, and the first target summary data record B may correspond to the combined dimension field before addition or reduction.

[0121] In practical applications, the process of determining the first target summary data record A may include: performing a first search in the summary data structure according to the combined field content to obtain a first search result; the first search is used to obtain the first target summary data record A that matches the combined field content in the summary data structure; if the first search result is a search failure, summary processing method 2 may be executed. If the first search result is a search hit, summary processing method 1 may be executed.

[0122] In practical applications, the process of determining the first target summary data record B may include: performing a second search in the summary data structure according to the associated combination field content corresponding to the combination field content to obtain a second search result; the second search is used to obtain the first target summary data record A that matches the combination field content in the summary data structure; if the second search result is a search failure, summary processing method 2 may be executed. If the second search result is a search hit, summary processing method 1 may be executed.

[0123] The process of determining the associated combination field content may include: searching in historical data records according to the primary key field contained in the data to be summarized to obtain the target historical data record; and using the field content of the combined dimension field in the target historical data record as the associated combination field content.

[0124] In a specific implementation, the above process of updating the first target summary data record may specifically include: updating the field content of the summary target field in the first target summary data record according to the process summary target data corresponding to the data to be summarized and / or the combined field content.

[0125] The process summary target data may include: the change content corresponding to the summary target field caused by the data to be summarized. For example, the process summary target data may include: the increment or decrement corresponding to the summary target field; or, the process summary target data may include: the change amount corresponding to the summary target field, and the change mark, and the change mark may include: a positive mark or a negative mark, etc., wherein a positive mark represents an increase in the corresponding change amount, and a negative mark represents a decrease in the corresponding change amount.

[0126] In actual applications, the process of determining the target data for process aggregation may specifically include: searching in historical data records according to the primary key field contained in the data to be aggregated to obtain a search result; the search is used to find a target historical data record that matches the primary key field in the historical data record; the historical data record may specifically include: the fields contained in the aggregated data and the combined dimension fields corresponding to the aggregated data; the data to be aggregated and the aggregated data may contain the same fields; and based on the search result, determining the process aggregation target data corresponding to the data to be aggregated.

[0127] The data to be summarized and the summarized data may contain the same fields, indicating that the data to be summarized and the summarized data correspond to the same data source. For example, the data to be summarized and the summarized data are both derived from the logistics object shipping data table shown in Table 1, and both contain fields such as shipping warehouse, shipping date, and shipping logistics order number.

[0128] After aggregating a piece of data to be aggregated, the embodiment of the present application may treat the data to be aggregated as aggregated data, and add a combined dimension field based on the fields included in the aggregated data to obtain a historical data record, and store the historical data record.

[0129] The primary key field can be a field contained in the data to be summarized or the summarized data. The field content of the primary key field can be used to uniquely identify a piece of data to be summarized or a summarized record. For example, the delivery logistics order number field in Table 1 can be used as the primary key field because the delivery logistics order number is non-repetitive within a certain range.

[0130] The above search results may include: search hit or search failure. Search hit means that the corresponding target historical data record can be found. Search failure means that the corresponding target historical data record is not found.

[0131] In a specific implementation, the process of determining the process aggregation target data corresponding to the data to be aggregated according to the search result may specifically include:

[0132] In the case where the search result is a search hit, the first process summary target data is determined according to the target historical data record obtained by the search, and the second process summary target data is determined according to the data to be summarized and the content of the combination field; the first process summary target data may specifically include: a negative mark, a combination dimension field contained in the target historical data record, and a process summary target field; the field content of the process summary target field contained in the first process summary target data is determined according to a preset logic; the second process summary target data may specifically include: a positive mark, a combination dimension field corresponding to the data to be summarized, and a process summary target field; the field content of the process summary target field contained in the second process summary target data is determined according to a preset logic; or

[0133] When the search result is a search failure, the second process summary target data is determined according to the data to be summarized and the content of the combined field; the second process summary target data may specifically include: a positive mark, a combined dimension field corresponding to the data to be summarized, and a process summary target field; the field content of the process summary target field included in the second process summary target data is determined according to a preset logic.

[0134] Among them, when the search result is a search hit, the first process summary target data can represent: the impact of revoking the target historical data record on the summary processing result, and the second process summary target data can represent: the impact of adding the data to be summarized on the summary processing result.

[0135] In the case where the search result is a search failure, the second process of summarizing the target data may be characterized by: the influence of increasing the data to be summarized on the summary processing result.

[0136] In a specific implementation, the process of updating the field content of the summary target field in the first target summary data record may specifically include:

[0137] In the case where the process summary target data includes a positive mark, a combined dimension field corresponding to the data to be summarized, and a process summary target field, adding the field content of the summary target field in the first target summary data record to the field content of the process summary target field; and / or

[0138] When the process summary target data includes a negative mark, a combined dimension field contained in the target history data record, and a process summary target field, a subtraction operation is performed between the field content of the summary target field in the first target summary data record and the field content of the process summary target field.

[0139] The data processing method of the embodiment of the present application can be executed by a data processing device, which can include multiple modules. For example, the multiple modules can include: a combination field content determination module, a historical data record processing module, a process summary target data determination module, and a summary data record processing module. Among them, the combination field content determination module is used to determine the content of the combination field, Figure 2 The processing process of the combined field content determination module is shown.

[0140] The historical data record processing module is used to process historical data records. Figure 3 , shows a flowchart of a method for processing historical data records according to an embodiment of the present application, which may specifically include the following steps:

[0141] Step 301: Receive and update data records to be aggregated.

[0142] Receive the updated data records to be aggregated issued by the combined field content determination module.

[0143] Step 302: extract the field content of the updated data record to be summarized.

[0144] Extract the field contents corresponding to the primary key field, the composite dimension field, and the remaining fields from the updated data records to be summarized.

[0145] Step 303: Search the historical data records according to the primary key field contained in the data to be summarized to obtain the search result. If the search is successful, jump to step 304; otherwise, jump to step 305.

[0146] Step 304: insert a negative mark into the target historical data record and send it down.

[0147] A negative mark is inserted into the head of the target historical data record found and sent down, and after completion, the process jumps to step 305 to continue processing. The sending here can be sent down to the process summary target data determination module.

[0148] Taking the data to be summarized shown in Table 1 as an example, assuming that the combined dimension field in the target historical data record is the shipping warehouse field, and the new summary requirement is: adding the shipping date field to the combined dimension field, therefore, the target historical data record with a negative mark as shown in Table 6 can be issued to cancel the impact of the target historical data record on the summary processing result.

[0149] Table 6

[0150] mark Primary key field Combined dimension fields Shipping warehouse Shipping Date - LP001 Warehouse A Warehouse A 20220101

[0151] Step 305: insert a positive mark in the updated data record to be summarized and issue it.

[0152] Insert a positive mark in the record header of the updated data record to be summarized and send it down. After completion, jump to step 306 to continue processing.

[0153] Taking the data to be summarized shown in Table 1 as an example, assuming that the combined dimension field in the target historical data record is the shipping warehouse field, and the new summary requirement is: adding a shipping date field to the combined dimension field, therefore, the updated data record to be summarized with a positive mark as shown in Table 7 can be issued to increase the impact of the updated data record to be summarized on the summary processing result.

[0154] Table 7

[0155] mark Primary Key Combined dimension fields Shipping warehouse Shipping Date + LP001 Warehouse A@20220101 Warehouse A 20220101

[0156] Step 306: Store the updated data record to be summarized as a historical data record to implement the update of the historical data record.

[0157] The process summary target data determination module is used to determine the process summary target data. Figure 4 , shows a flowchart of a method for determining process summary target data according to an embodiment of the present application, which may specifically include the following steps:

[0158] Step 401: Receive marked target data.

[0159] The marked data may include: updated data records to be summarized with positive marks, or target historical data records with negative marks.

[0160] Step 402: Process the marked target data according to preset logic to obtain process summary target data.

[0161] The preset logic can be determined by those skilled in the art according to actual application requirements. The preset logic can be based on processing the marked target data to obtain the field content of the process summary target field. The field content of the process summary target field can reflect the change amount corresponding to the summary target field. The process summary target field can be one or more, and the number of the process summary target fields can be determined according to the preset logic.

[0162] The process summary target data may include: a positive mark, a combination dimension field corresponding to the data to be summarized, and a process summary target field; or a negative mark, a combination dimension field included in the target historical data record, and a process summary target field. The process summary target field and the summary target field in the summary data structure may have the same meaning or the same name.

[0163] For example, the first process summary target data corresponding to the target data shown in Table 6 is shown in Table 8, wherein the quantity of shipped packages represents the process summary target field.

[0164] Table 8

[0165] mark Combined dimension fields Shipment volume - Warehouse A 1

[0166] For example, the second process summary target data corresponding to the target data shown in Table 7 is shown in Table 9, wherein the quantity of shipped packages represents the process summary target field.

[0167] Table 9

[0168] mark Combined dimension fields Shipment volume + Warehouse A@20220101 1

[0169] Step 403: Send the process summary target data.

[0170] The summary data record processing module can be used to process the summary data record, which may specifically include: updating the target summary data record, or creating a new summary data record, etc. The summary data record processing module can summarize the target data according to the process and process the summary data record.

[0171] Reference Figure 5 , shows a flowchart of a method for processing aggregated data records according to an embodiment of the present application, which may specifically include the following steps:

[0172] Step 501: The receiving process summarizes target data.

[0173] The process summary target data with tags, combined dimension fields and process summary target fields issued by the process summary target data determination module is received.

[0174] Step 502: According to the field content of the combined dimension field in the process summary target data, query the corresponding first target summary data record in the summary data structure.

[0175] If the query is successful, jump to step 503 , otherwise jump to step 504 .

[0176] Step 503: According to the mark in the process summary target data, a merge operation is performed on the field content of the summary target field in the first target summary data record and the field content of the process summary target field.

[0177] Specifically, when the sign is a positive sign, the merge operation is an addition operation, and when the sign is a negative sign, the merge operation is a subtraction operation.

[0178] Table 10 shows an example of performing a subtraction operation according to Table 8, wherein the field content of the summary target field in the first target summary data record B is 2, and the field content of the process summary target field is 1, so the result of the subtraction operation can be obtained: 1.

[0179] Table 10

[0180]

[0181] Step 504: Create a second target summary data record corresponding to the combined field content.

[0182] Assuming that there is no summary data record corresponding to the combination field content in the summary data structure, a second target summary data record corresponding to the combination field content may be newly created.

[0183] Taking Table 9 as an example, assuming that there is no summary data record corresponding to the combined field content "warehouse A@20220101" in the summary data structure, a second target summary data record corresponding to the combined field content can be newly created, as shown in Table 11.

[0184] Among them, the field content of the summary target field in the second target summary data record is 1, and the combined field content of the combined dimension field is "Warehouse A@20220101".

[0185] Table 11

[0186] Combined dimension fields Shipment volume Warehouse A@20220101 1

[0187] Step 505: Store and output the updated first target summary data record or the newly created second target summary data record.

[0188] Table 12 shows the summary data records obtained based on Table 10 and Table 11. It should be noted that Tables 8 to 12 of the embodiment of the present application illustrate the case where there is one summary target field. In fact, the number of summary target fields in the embodiment of the present application can be multiple. It can be seen that the summary data structure of the embodiment of the present application can be compatible with the summary data records before and after the target dimension field is added.

[0189] Table 12

[0190]

[0191]

[0192] The embodiment of the present application outputs the updated first target summary data record or the newly created second target summary data record, specifically including: writing the updated first target summary data record or the newly created second target summary data record to the database of the downstream service, etc. It can be understood that the embodiment of the present application does not limit the specific output method.

[0193] In summary, the data processing method of the embodiment of the present application can characterize the dimension field used for aggregation by including at least one target dimension field in the data to be aggregated. The embodiment of the present application combines the dimension fields used for aggregation together and processes them as a combined dimension field, and also provides a summary data structure corresponding to the combined dimension field. For the data aggregation task, the number of combined dimension fields is one before and after the addition or reduction of the summary dimension field; in this way, the summary data structure before the addition or reduction of the summary dimension field is available to the data aggregation task, so the data aggregation task can be compatible with the summary data structure before and after the addition or reduction of the summary dimension field. Therefore, the embodiment of the present application can achieve uninterrupted operation of the data aggregation task while increasing or decreasing the summary dimension field, and thus can achieve uninterrupted operation of downstream services.

[0194] Method Example 2

[0195] Reference Figure 6 , shows a flowchart of the steps of a data processing method according to an embodiment of the present application, which may specifically include the following steps:

[0196] Step 601: extract at least one target dimension field from the data to be summarized;

[0197] Step 602: combine the field contents of the at least one target dimension field in the data to be summarized to obtain a combined field content corresponding to the combined dimension field; the combined dimension field is one;

[0198] Step 603: Provide a summary data structure corresponding to the combined dimension field; the summary data structure specifically includes: the combined dimension field and the summary target field;

[0199] Step 604: search in the historical data records according to the primary key field included in the data to be summarized to obtain a search result; the search is used to search in the historical data records for a target historical data record that matches the primary key field; the historical data record includes: the fields included in the summarized data and the combined dimension fields corresponding to the summarized data; the data to be summarized and the summarized data include the same fields;

[0200] Step 605: Determine the process summary target data corresponding to the data to be summarized according to the search result;

[0201] Step 606: Summarize the field content of the combined dimension field contained in the target data according to the process, and perform a third search in the summary data structure to obtain the first target summary data record;

[0202] Step 607: when the result of the third search is a search hit, the first target summary data record is updated according to the process summary target data;

[0203] Step 608: If the result of the third search is that the search fails, a second target summary data record corresponding to the content of the combined field is established. The field content of the process summary target field in the second target summary data record can be determined according to the process summary target data. Specifically, the field content of the process summary target field in the second target summary data record can be determined according to the field content of the process summary target field.

[0204] In summary, the data processing method of the embodiment of the present application can support the dynamic increase and decrease of the target dimension field. In the case of dynamic increase and decrease of the target dimension field, the data aggregation task can be uninterrupted. In other words, the embodiment of the present application realizes the dynamic increase and decrease of the target dimension field during the continuous operation of the task, thereby realizing the uninterrupted operation of the downstream service.

[0205] Method Example 3

[0206] Reference Figure 7 , shows a flowchart of the steps of a data processing method according to an embodiment of the present application, which may specifically include the following steps:

[0207] Step 701: extract at least one target dimension field from the data to be summarized;

[0208] Step 702: combine the field contents of the at least one target dimension field in the data to be summarized to obtain a combined field content corresponding to the combined dimension field; the combined dimension field may be one;

[0209] Step 703: Provide a summary data structure corresponding to the combined dimension field; the summary data structure specifically includes: the combined dimension field and the summary target field;

[0210] Step 704: perform aggregation processing on the data to be aggregated according to the aggregated data structure and the content of the combined field to obtain a target aggregated data record related to the data to be aggregated and / or the content of the combined field; the aggregated data record may be a data record included in the aggregated data structure;

[0211] Step 705: parse the combined dimension fields in the target summary data record to obtain at least one corresponding target dimension field;

[0212] Step 706: output the summary result data record; the summary result data record specifically includes: the combined dimension field in the target summary data record, and its corresponding summary target field and at least one target dimension field.

[0213] The embodiment of the present application parses the combined dimension fields in the target summary data record to restore the combined dimension fields to at least one target dimension field. The target dimension fields obtained by the parsing can be fields with strong comprehension, such as "shipping date", "shipping warehouse", "shipping place", etc., which are easy to read and can support queries.

[0214] In a specific implementation, the combined field content corresponding to the combined dimension field can be segmented according to the preset segmentation character, and the segmented field content can be used as the field content of an independent target dimension field in turn. Among them, the target dimension field corresponding to the segmented field content can be determined according to the combination order. For example, if the combination order is field A, field B, field C..., then the target dimension fields corresponding to the segmented field content are: field A, field B, field C...

[0215] Taking the combined field content "Warehouse A@20220101" as an example, the "Warehouse A" before the preset separation character "@" can be used as the field content of the "Shipping Warehouse Field", and the "20220101" after the preset separation character "@" can be used as the field content of the "Shipping Date Field".

[0216] Table 13 shows an example of summary result data record according to one embodiment of the present application.

[0217] Table 13

[0218]

[0219] In summary, the data processing method of the embodiment of the present application supports reverse parsing of combined dimension fields, and can output summary result data records to an external or internal data transfer system or data storage system to support access and update of summary result data records.

[0220] Moreover, the summary result data records or summary data records in the embodiment of the present application have the same data structure before and after the dynamic increase or decrease of the target dimension field, so the embodiment of the present application can support the merging of new summary result data records or summary data records with old summary result data records or summary data records.

[0221] Method Example 4

[0222] Reference Figure 8 , shows a flowchart of the steps of a data processing method according to an embodiment of the present application, which may specifically include the following steps:

[0223] Step 801: receiving a query request;

[0224] Step 802: According to the query request, query is performed in the summary data record or the summary result data record to obtain the query result; the summary data structure may specifically include: a combination dimension field and a summary target field; the summary result data record may specifically include: the combination dimension field in the target summary data record, and its corresponding summary target field and at least one target dimension field; the combination field content corresponding to the combination dimension field may be obtained by combining the field content of the at least one target dimension field in the data to be summarized;

[0225] Step 803: output the query result.

[0226] The embodiments of the present application can be applicable to application scenarios where the downstream service is a data query service. The data query service can query in the summary data record or the summary result data record according to the query request to obtain the query result. Since the combined field content corresponding to the combined dimension field can be obtained by combining the field content of the at least one target dimension field in the data to be summarized. For the data aggregation task, the number of combined dimension fields is one before and after the addition or reduction of the summary dimension field; in this way, the summary data record or the summary result data record before the addition or reduction of the summary dimension field is available to the data aggregation task, so the data aggregation task can be compatible with the summary data structure before and after the addition or reduction of the summary dimension field. Therefore, the embodiments of the present application can realize the uninterrupted operation of the data aggregation task when the summary dimension field is added or reduced, and thus can realize the uninterrupted operation of the data query service.

[0227] The embodiment of the present application may provide any one or a combination of the following options in the query interface: a first option of a combined dimension field, a second option of at least one summary target field, and a third option of at least one target dimension field. The user may generate a selection operation for the above options, and the embodiment of the present application may generate a query request based on the above selection operation. For example, the user may select "shipping warehouse field" from the second option, and select "shipping package quantity field" from the third option.

[0228] In one implementation, the query request may include information such as target dimension fields and summary target fields, and the embodiment of the present application may generate a corresponding query statement according to the query request and execute the query statement to obtain a corresponding query result. Of course, the query request may be a query statement.

[0229] Examples of queries might include:

[0230] SELECT Shipping warehouse field, Shipping package quantity field

[0231] FROM tbl

[0232] Among them, tbl can represent the data table where the summary result data records are located. This query statement can query the two columns corresponding to the shipping warehouse field and the shipping package quantity field from tb1.

[0233] Examples of queries might include:

[0234] SELECT the shipped package quantity field

[0235] FROM tbl

[0236] Where Shipping Warehouse field = Warehouse A

[0237] Among them, this query statement can query the number of shipped packages corresponding to shipping warehouse A from tb1.

[0238] The embodiment of the present application can display the query result on the query result interface. For example, when the query request corresponds to the quantity of shipped packages corresponding to the shipping warehouse A, the quantity of shipped packages corresponding to the shipping warehouse A can be displayed on the query result interface.

[0239] In an embodiment of the present application, the summary data record can be obtained by processing the data to be summarized, and the determination process of the summary data record specifically includes: extracting at least one target dimension field from the data to be summarized; combining the field content of the at least one target dimension field in the data to be summarized to obtain the combined field content corresponding to the combined dimension field; the combined dimension field is one; providing a summary data structure corresponding to the combined dimension field; the summary data structure includes: a combined dimension field and a summary target field; according to the summary data structure and the combined field content, summarizing the data to be summarized to obtain a target summary data record related to the data to be summarized and / or the combined field content; the target summary data record can be a data record contained in the summary data structure.

[0240] In the embodiment of the present application, the above process of aggregating the data to be aggregated specifically includes:

[0241] Acquire a first target summary data record related to the data to be summarized and / or the content of the combination field from the summary data structure, and update the first target summary data record according to the data to be summarized and / or the content of the combination field; and / or

[0242] According to the combined field content and the data to be summarized, a second target summary data record corresponding to the combined field content is established.

[0243] In the embodiment of the present application, the process of updating the first target summary data record specifically includes:

[0244] According to the process summary target data corresponding to the data to be summarized and / or the combined field content, the field content of the summary target field in the first target summary data record is updated.

[0245] In an embodiment of the present application, the process of determining the target data for process aggregation may specifically include: searching in historical data records according to the primary key field contained in the data to be aggregated to obtain a search result; the search is used to search the historical data records for a target historical data record that matches the primary key field; the historical data record includes: the fields contained in the aggregated data and the combined dimension fields corresponding to the aggregated data; the data to be aggregated contains the same fields as the aggregated data; and determining the process aggregation target data corresponding to the data to be aggregated according to the search result.

[0246] In the embodiment of the present application, the process of determining the process aggregation target data corresponding to the data to be aggregated according to the search result may specifically include:

[0247] In the case where the search result is a search hit, the first process summary target data is determined according to the target historical data record obtained by the search, and the second process summary target data is determined according to the data to be summarized and the combined field content; the first process summary target data includes: a negative mark, a combined dimension field contained in the target historical data record, and a process summary target field; the field content of the process summary target field contained in the first process summary target data is determined according to a preset logic; the second process summary target data includes: a positive mark, a combined dimension field corresponding to the data to be summarized, and a process summary target field; the field content of the process summary target field contained in the second process summary target data is determined according to a preset logic; or

[0248] In the case where the search result is a search failure, the second process summary target data is determined based on the data to be summarized and the combined field content; the second process summary target data includes: a positive mark, a combined dimension field corresponding to the data to be summarized, and a process summary target field; the field content of the process summary target field included in the second process summary target data is determined according to a preset logic.

[0249] In the embodiment of the present application, the process of updating the field content of the summary target field in the first target summary data record may specifically include:

[0250] In the case where the process summary target data includes a positive mark, a combined dimension field corresponding to the data to be summarized, and a process summary target field, adding the field content of the summary target field in the first target summary data record to the field content of the process summary target field; and / or

[0251] When the process summary target data includes a negative mark, a combined dimension field contained in the target history data record, and a process summary target field, a subtraction operation is performed between the field content of the summary target field in the first target summary data record and the field content of the process summary target field.

[0252] The process of determining the summary result data record may specifically include: parsing the combined dimension fields in the target summary data record to obtain at least one corresponding target dimension field; outputting the summary result data record; the summary result data record includes: the combined dimension fields in the target summary data record, and its corresponding summary target field and at least one target dimension field.

[0253] In a specific implementation, the data processing device may output the summary result data record to the downstream service. Alternatively, the data processing device may output the target summary data record to the downstream service, and the downstream service parses the combined dimension field in the target summary data record to obtain at least one corresponding target dimension field, thereby obtaining the summary result data record.

[0254] In summary, the data processing method of the embodiment of the present application performs a query in the summary data record or the summary result data record according to the query request to obtain the query result. Since the combined field content corresponding to the combined dimension field can be obtained by combining the field content of the at least one target dimension field in the data to be summarized. For the data aggregation task, the number of combined dimension fields is one before and after the addition or reduction of the summary dimension field; in this way, the summary data record or the summary result data record before the addition or reduction of the summary dimension field is available to the data aggregation task, so the data aggregation task can be compatible with the summary data structure before and after the addition or reduction of the summary dimension field. Therefore, the embodiment of the present application can realize the uninterrupted operation of the data aggregation task when the summary dimension field is added or reduced, and thus can realize the uninterrupted operation of the data query service.

[0255] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.

[0256] Based on the above embodiments, the present application also provides a data processing device, referring to Fig. 9 The device may include: a field extraction module 901, a field combination module 902, a structure providing module 903 and a summary processing module 904.

[0257] Wherein, the field extraction module 901 is used to extract at least one target dimension field from the data to be summarized;

[0258] A field combination module 902 is used to combine the field content of the at least one target dimension field in the data to be summarized to obtain a combined field content corresponding to the combined dimension field; the combined dimension field is one;

[0259] The structure providing module 903 is used to provide a summary data structure corresponding to the combined dimension field; the summary data structure includes: the combined dimension field and the summary target field;

[0260] The summary processing module 904 is used to summarize the data to be summarized according to the summary data structure and the combined field content to obtain a target summary data record related to the data to be summarized and / or the combined field content; the target summary data record can be a data record contained in the summary data structure.

[0261] Optionally, the summary processing module 904 may specifically include:

[0262] a record updating module, configured to obtain, from the summary data structure, a first target summary data record related to the data to be summarized and / or the content of the combination field, and update the first target summary data record according to the data to be summarized and / or the content of the combination field; and / or

[0263] The record establishment module is used to establish a second target summary data record corresponding to the content of the combination field according to the content of the combination field and the data to be summarized.

[0264] Optionally, the record updating module is specifically configured to update the field content of the summary target field in the first target summary data record according to the process summary target data corresponding to the data to be summarized and / or the combined field content.

[0265] Optionally, the process of summarizing the determination process of the target data may include:

[0266] According to the primary key field contained in the data to be summarized, a search is performed in the historical data records to obtain a search result; the search is used to search the historical data records for a target historical data record that matches the primary key field; the historical data record may include: a field contained in the summarized data and a combined dimension field corresponding to the summarized data; the data to be summarized and the summarized data contain the same fields;

[0267] According to the search result, the process summary target data corresponding to the data to be summarized is determined.

[0268] Optionally, determining the process summary target data corresponding to the data to be summarized according to the search result may include:

[0269] In the case where the search result is a search hit, the first process summary target data is determined according to the target historical data record obtained by the search, and the second process summary target data is determined according to the data to be summarized and the combined field content; the first process summary target data may include: a negative mark, a combined dimension field contained in the target historical data record, and a process summary target field; the field content of the process summary target field contained in the first process summary target data is determined according to a preset logic; the second process summary target data may include: a positive mark, a combined dimension field corresponding to the data to be summarized, and a process summary target field; the field content of the process summary target field contained in the second process summary target data is determined according to a preset logic; or

[0270] In the case where the search result is a search failure, the second process summary target data is determined based on the data to be summarized and the combined field content; the second process summary target data may include: a positive mark, a combined dimension field corresponding to the data to be summarized, and a process summary target field; the field content of the process summary target field included in the second process summary target data is determined according to a preset logic.

[0271] Optionally, the record updating module may include:

[0272] A first record updating module, configured to add the field content of the summary target field in the first target summary data record to the field content of the process summary target field, when the process summary target data may include a positive mark, a combined dimension field corresponding to the data to be summarized, and a process summary target field; and / or

[0273] A second record updating module is used to subtract the field content of the summary target field in the first target summary data record from the field content of the process summary target field when the process summary target data may include a negative mark, a combined dimension field contained in the target history data record, and a process summary target field.

[0274] Optionally, the device may further include:

[0275] A parsing device module, used to parse the combined dimension fields in the target summary data record to obtain at least one corresponding target dimension field;

[0276] The output module is used to output the summary result data record; the summary result data record may include: the combined dimension field in the target summary data record, and its corresponding summary target field and at least one target dimension field.

[0277] The present application also provides a data processing device, referring to Fig.10 , the device may include: a receiving module 1001, a query module 1002 and a result output module 1003.

[0278] Wherein, the receiving module 1001 is used to receive a query request;

[0279] The query module 1002 is used to query in the summary data record or the summary result data record according to the query request to obtain the query result; the summary data structure includes: a combination dimension field and a summary target field; the summary result data record includes: the combination dimension field in the target summary data record, and its corresponding summary target field and at least one target dimension field; the combination field content corresponding to the combination dimension field is obtained by combining the field content of the at least one target dimension field in the data to be summarized;

[0280] The result output module 1003 is used to output the query result.

[0281] In summary, the data processing device of the embodiment of the present application queries in the summary data record or the summary result data record according to the query request to obtain the query result. Since the combined field content corresponding to the combined dimension field can be obtained by combining the field content of the at least one target dimension field in the data to be summarized. For the data aggregation task, the number of combined dimension fields is one before and after the addition or reduction of the summary dimension field; in this way, the summary data record or summary result data record before the addition or reduction of the summary dimension field is available to the data aggregation task, so the data aggregation task can be compatible with the summary data structure before and after the addition or reduction of the summary dimension field. Therefore, the embodiment of the present application can realize the uninterrupted operation of the data aggregation task when the summary dimension field is added or reduced, and thus can realize the uninterrupted operation of the data query service.

[0282] The embodiment of the present application also provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute instructions (instructions) of each method step in the embodiment of the present application.

[0283] The present application embodiment provides one or more machine-readable media, on which instructions are stored, and when executed by one or more processors, an electronic device executes one or more methods as described in the above embodiments. In the present application embodiment, the electronic device includes a server, a terminal device, and the like.

[0284] The embodiments of the present disclosure may be implemented as a device configured as desired using any appropriate hardware, firmware, software, or any combination thereof, and the device may include electronic devices such as a server (cluster), a terminal, etc. Fig.11 An exemplary apparatus 1700 that can be used to implement various embodiments described in this application is schematically illustrated.

[0285] For one embodiment, Fig.11 An exemplary apparatus 1700 is shown having one or more processors 1702, a control module (chip set) 1704 coupled to at least one of the (one or more) processors 1702, a memory 1706 coupled to the control module 1704, a non-volatile memory (NVM) / storage device 1708 coupled to the control module 1704, one or more input / output devices 1710 coupled to the control module 1704, and a network interface 1712 coupled to the control module 1704.

[0286] Processor 1702 may include one or more single-core or multi-core processors, and processor 1702 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, device 1700 can be used as a server, terminal, or other device described in the embodiments of the present application.

[0287] In some embodiments, the device 1700 may include one or more computer-readable media (e.g., memory 1706 or NVM / storage device 1708) having instructions 1714 and one or more processors 1702 configured to execute the instructions 1714 in combination with the one or more computer-readable media to implement the module to perform the actions described in the present disclosure.

[0288] For one embodiment, the control module 1704 may include any suitable interface controller to provide any suitable interface to at least one of the processor(s) 1702 and / or any suitable device or component in communication with the control module 1704 .

[0289] The control module 1704 may include a memory controller module to provide an interface to the memory 1706. The memory controller module may be a hardware module, a software module, and / or a firmware module.

[0290] The memory 1706 may be used, for example, to load and store data and / or instructions 1714 for the device 1700. For one embodiment, the memory 1706 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the memory 1706 may include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).

[0291] For one embodiment, control module 1704 may include one or more input / output controllers to provide an interface to NVM / storage device 1708 and input / output device(s) 1710 .

[0292] For example, NVM / storage 1708 may be used to store data and / or instructions 1714. NVM / storage 1708 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).

[0293] NVM / storage device 1708 may include storage resources that are part of the device on which apparatus 1700 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 1708 may be accessed via (one or more) input / output devices 1710 over a network.

[0294] (One or more) input / output devices 1710 may provide an interface for the apparatus 1700 to communicate with any other appropriate device, and the input / output device 1710 may include a communication component, an audio component, a sensor component, etc. The network interface 1712 may provide an interface for the apparatus 1700 to communicate through one or more networks, and the apparatus 1700 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, for example, accessing a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof for wireless communication.

[0295] For one embodiment, at least one of the processor(s) 1702 may be packaged together with the logic of one or more controllers (e.g., a memory controller module) of the control module 1704. For one embodiment, at least one of the processor(s) 1702 may be packaged together with the logic of one or more controllers of the control module 1704 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 1702 may be integrated on the same die with the logic of one or more controllers of the control module 1704. For one embodiment, at least one of the processor(s) 1702 may be integrated on the same die with the logic of one or more controllers of the control module 1704 to form a system-on-chip (SoC).

[0296] In various embodiments, the device 1700 may be, but is not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the device 1700 may have more or fewer components and / or a different architecture. For example, in some embodiments, the device 1700 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.

[0297] Among them, the main control chip can be used as a processor or control module in device 1700, sensor data, location information, etc. are stored in a memory or NVM / storage device, the sensor group can be used as an input / output device, and the communication interface may include a network interface.

[0298] An embodiment of the present application further provides an electronic device, comprising: a processor; and a memory, on which executable code is stored, and when the executable code is executed, the processor executes one or more methods described in the embodiments of the present application.

[0299] The embodiments of the present application also provide one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes one or more methods described in the embodiments of the present application.

[0300] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0301] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0302] The present application embodiment is described with reference to the flowchart and / or block diagram of the method, terminal device (system) and computer program product according to the embodiment of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, and the combination of the process and / or box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device produce a device for implementing the function specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.

[0303] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0304] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce computer-implemented processing, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0305] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0306] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0307] The data processing method, the data processing device, the electronic device and the storage medium provided by the present application are introduced in detail above. The principles and implementation methods of the present application are explained in this article by using specific examples. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A data processing method, characterized in that: The method comprises: Extract at least one target dimension field from the data to be summarized; Combining the field contents of at least one target dimension field in the data to be summarized to obtain a combined field content corresponding to a combined dimension field; the combined dimension field is one; Providing a summary data structure corresponding to the combined dimension field; the summary data structure includes: the combined dimension field and the summary target field; The data to be summarized are summarized according to the summary data structure and the combination field content to obtain a target summary data record related to the data to be summarized and / or the combination field content; the target summary data record is a data record included in the summary data structure.

2. The method according to claim 1, characterized in that The aggregating the data to be aggregated includes: Acquire a first target summary data record related to the data to be summarized and / or the content of the combination field from the summary data structure, and update the first target summary data record according to the data to be summarized and / or the content of the combination field; and / or According to the combined field content and the data to be summarized, a second target summary data record corresponding to the combined field content is established.

3. The method according to claim 2, characterized in that The updating of the first target summary data record includes: According to the process summary target data corresponding to the data to be summarized and / or the combined field content, the field content of the summary target field in the first target summary data record is updated.

4. The method according to claim 3, characterized in that The process summarizes the process of determining target data, including: According to the primary key field contained in the data to be summarized, a search is performed in the historical data records to obtain a search result; the search is used to search the historical data records for a target historical data record that matches the primary key field; the historical data record includes: the fields contained in the summarized data and the combined dimension fields corresponding to the summarized data; the data to be summarized and the summarized data contain the same fields; According to the search result, the process summary target data corresponding to the data to be summarized is determined.

5. The method according to claim 4, characterized in that Determining the process summary target data corresponding to the data to be summarized according to the search result includes: In the case where the search result is a search hit, the first process summary target data is determined according to the target historical data record obtained by the search, and the second process summary target data is determined according to the data to be summarized and the combined field content; the first process summary target data includes: a negative mark, a combined dimension field contained in the target historical data record, and a process summary target field; the field content of the process summary target field contained in the first process summary target data is determined according to a preset logic; the second process summary target data includes: a positive mark, a combined dimension field corresponding to the data to be summarized, and a process summary target field; the field content of the process summary target field contained in the second process summary target data is determined according to a preset logic; or In the case where the search result is a search failure, the second process summary target data is determined based on the data to be summarized and the combined field content; the second process summary target data includes: a positive mark, a combined dimension field corresponding to the data to be summarized, and a process summary target field; the field content of the process summary target field included in the second process summary target data is determined according to a preset logic.

6. The method according to claim 5, characterized in that The updating of the field content of the summary target field in the first target summary data record includes: In the case where the process summary target data includes a positive mark, a combined dimension field corresponding to the data to be summarized, and a process summary target field, adding the field content of the summary target field in the first target summary data record to the field content of the process summary target field; and / or When the process summary target data includes a negative mark, a combined dimension field contained in the target history data record, and a process summary target field, a subtraction operation is performed between the field content of the summary target field in the first target summary data record and the field content of the process summary target field.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Parsing the combined dimension fields in the target summary data record to obtain at least one corresponding target dimension field; The summary result data record is output; the summary result data record includes: the combined dimension field in the target summary data record, and its corresponding summary target field and at least one target dimension field.

8. A data processing method, characterized in that: The method comprises: receiving a query request; According to the query request, query is performed in the summary data record or the summary result data record to obtain the query result; the summary data structure includes: a combination dimension field and a summary target field; the summary result data record includes: the combination dimension field in the target summary data record, and its corresponding summary target field and at least one target dimension field; the combination field content corresponding to the combination dimension field is obtained by combining the field content of the at least one target dimension field in the data to be summarized; The query result is outputted.

9. An electronic device, characterized in that: include: processor; and A memory having executable codes stored thereon, which, when executed, causes the processor to execute the method according to any one of claims 1 to 8.

10. One or more machine-readable media having executable codes stored thereon, which, when executed, cause a processor to perform the method according to any one of claims 1 to 8.