A data query method, device and medium
Impala is used to build partitioned data tables in the HDFS system, optimize the query process, solve the problem of low efficiency of traditional data query, and achieve faster data query speed and efficiency.
Patent Information
- Application Number
- CN202111145222.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-28
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-09-28
AI Technical Summary
The traditional HDFS system and data query methods based on Hbase and Hive are difficult to quickly find the target resources in massive data, resulting in low data query efficiency.
Impala is used to query in pre-built partition data tables. By generating statistical data tables, combining sample query conditions, encoding and sorting labels, the partition data table structure is optimized, reducing cross-partition queries, judging the validity of query results and updating partition data. surface.
It improves the data query speed and efficiency, gives full play to Impala's performance, optimizes query results, and meets users' needs for fast queries.
Smart Images

Figure CN113849523B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a data query method, device and medium. Background Art
[0002] With the development of big data technology, data information can be found on the Internet. However, with the accumulation of large amounts of data, it becomes increasingly troublesome to find the data you want among numerous data resources. At the same time, with the increase in the amount of data, traditional database queries can no longer meet users' requirements for query waiting.
[0003] At present, it is usually necessary to search and query the massive data resources stored in HDFS (Hadoop Distributed File System). However, with the continuous accumulation of data, the data in the HDFS system will increase exponentially. The data query method based on Hbase and Hive has also reached its limitations and cannot meet the requirements of quickly finding the target resources, resulting in low data query efficiency. Summary of the invention
[0004] The embodiments of the present application provide a data query method, device and medium for solving the problem of low data query efficiency.
[0005] The present application embodiment adopts the following technical solutions:
[0006] On the one hand, an embodiment of the present application provides a data query method, which includes: obtaining a user's data query request; querying a pre-built partitioned data table through Impala with a query function according to several query conditions in the data query request to obtain a query result; determining whether the query result is a valid query; if not, updating the partitioned data table according to the query result.
[0007] In one example, determining the partitioned data table specifically includes: obtaining several set sample query conditions; generating data sets corresponding to each sample query condition through Impala; generating a statistical data table according to the data set; combining the sample query conditions based on the statistical data table to determine a sample query condition combination; the data volume difference of the data sets between the sample query conditions in the sample query condition combination is not greater than a preset threshold; and partitioning the statistical data table according to the sample query condition combination to construct a partitioned data table.
[0008] In one example, based on the statistical data table, the sample query conditions are combined to determine a sample query condition combination, which specifically includes: encoding the sample query conditions and the data volume of the data sets corresponding to the sample query conditions to determine the labels corresponding to the sample query conditions; combining the sample query conditions according to the labels corresponding to the sample query conditions to determine several sample query condition combinations.
[0009] In one example, the sample query conditions are combined according to the labels corresponding to the sample query conditions to determine a number of sample query condition combinations, specifically including: obtaining the query probabilities corresponding to the sample query conditions; sorting the labels corresponding to the sample query conditions in order from high to low according to the query probabilities to determine a label sequence; in the label sequence, combining the labels in sequence according to the sorting order to determine a plurality of label combinations; and determining a number of sample query condition combinations based on the plurality of label combinations.
[0010] In one example, in the label sequence, the second label corresponding to the second sample query condition having the smallest difference in data volume between the first sample query condition and the data set is determined by combining the first label with other labels in sequence; the first label is combined with the second label to determine a label combination, and the label combination is input into a label combination sequence, and the first label and the second label are deleted from the label sequence; until the label is no longer included in the label sequence, so as to determine multiple label combinations in the label combination sequence.
[0011] In one example, after partitioning the statistical data table according to the sample query condition combinations, the method further includes: determining query conditions related to the business scenarios of the user applications; sorting the sample query condition combinations according to the query conditions, determining the priorities between the sample query condition combinations, and performing a combined query on the several query conditions according to the priorities.
[0012] In one example, after obtaining the query results by querying a pre-built partitioned data table through Impala according to the query conditions in the data query request, the method further includes: judging, according to the query results, whether a cross-partition query occurs when querying the partitioned data table through Impala using the query conditions; if so, determining a query condition combination corresponding to the cross-partition query; and querying the partitioned data table through Impala using the query condition combination by creating a partition key index for the query conditions.
[0013] In one example, determining whether the query result is a valid query specifically includes: determining whether the query result is a valid query by comparing the query result with a set query standard; if so, returning the query result to the user; if not, returning the query result to the user and updating the partition data table according to the query result.
[0014] On the other hand, an embodiment of the present application provides a data query device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: obtain a user's data query request; query a pre-built partitioned data table through Impala based on several query conditions in the data query request to obtain a query result; determine whether the query result is a valid query; if not, update the partitioned data table based on the query result.
[0015] On the other hand, an embodiment of the present application provides a data query non-volatile computer storage medium storing computer executable instructions, characterized in that the computer executable instructions are configured to: obtain a user's data query request; query a pre-built partitioned data table through Impala based on several query conditions in the data query request to obtain a query result; determine whether the query result is a valid query; if not, update the partitioned data table based on the query result.
[0016] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:
[0017] The embodiment of the present application can improve the speed of data query through the data processing tool Impala, and based on Impala, by building a partitioned data table, it can provide reasonable partitions, can give full play to the performance of Impala, and by judging whether the query result is a valid query, it can continuously optimize the partitioned data table, further improve the query efficiency of Impala, thereby improving the speed of data query for users and improving query efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solution of the present application, some embodiments of the present application will be described in detail below in conjunction with the accompanying drawings, in which:
[0019] Figure 1 A flowchart of a data query method provided in an embodiment of the present application;
[0020] Figure 2A schematic diagram of the structure of a data query device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0022] In the process of using and managing big data, we need to search and query the massive data resources stored in HDFS (Hadoop Distributed File System). However, with the continuous accumulation of data, the data in the HDFS system will increase exponentially, and the usual data query methods based on Hbase and Hive have reached their limitations and cannot meet the requirements of quickly finding the target resources.
[0023] In order to find the data with the specified query conditions in billions of data faster, a new big data processing tool Impala has emerged. With the help of Impala, it is more optimized than the data warehouse tool hive when querying large amounts of data.
[0024] However, using Impala without any strategy cannot achieve the purpose of improving data query speed. Therefore, in order to solve the above problem, the embodiments of the present application propose a data query method, device and medium.
[0025] Some embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0026] Figure 1 A flow chart of a data query method provided in an embodiment of the present application. The method can be applied to different business fields, such as Internet financial business field, e-commerce business field, instant messaging business field, game business field, official business field, etc. Certain input parameters or intermediate results in the process allow manual intervention and adjustment to help improve accuracy.
[0027] The analysis method involved in the embodiments of the present application can be implemented by a terminal device or a server, and the present application does not impose any special restrictions on this. For the convenience of understanding and description, the following embodiments are described in detail by taking a server as an example.
[0028] It should be noted that the server may be a single device or a system consisting of multiple devices, that is, a distributed server, and this application does not make any specific limitation on this.
[0029] Figure 1 The process in may include the following steps:
[0030] S101: Obtaining a user's data query request.
[0031] It should be noted that how to obtain the user's data query request in the embodiment of the present application can be set according to actual needs, and the present application does not make specific limitations here. For example, the user can submit data through an HTML form or by providing parameters after the webpage address on the client, and then obtain the data through the relevant methods of the request object. The request object encapsulates the client's data query request information and sends it to the server, so that the server obtains the user's data query request.
[0032] S102: According to several query conditions in the data query request, query is performed in a pre-built partitioned data table by using Impala with query function to obtain query results.
[0033] Among them, Impala is a new query system developed by Cloudera. It provides SQL semantics and can query PB-level big data stored in Hadoop's HDFS and HBase.
[0034] Although the existing Hive system also provides SQL semantics, since Hive's underlying execution uses the MapReduce engine, it is still a batch processing process and cannot meet the interactivity of queries.
[0035] In the actual running process of Impala, it is found that sometimes a large number of partitions will lead to many small files, which will seriously affect the query efficiency. Therefore, reasonable partitioning can further improve the query efficiency of Impala.
[0036] Therefore, when building a partitioned data table, we need to count the data volume distribution in each classification interval. According to reasonable partitioning, the data is evenly distributed in each partition. The partitions are as consistent as possible with the query conditions. The query data is partitioned according to the partition of the data as much as possible to reduce cross-partition queries.
[0037] In some embodiments of the present application, when determining the pre-built partition data table, the embodiments of the present application specifically include:
[0038] The server obtains several sample query conditions uploaded by the user, where the sample query conditions are all related to the current business scenario. Then, based on the unpartitioned source data table, Impala is used to obtain the corresponding data sets under each sample query condition, and then multiple data sets are used to generate a statistical data table.
[0039] That is, in the embodiment of the present application, it is first necessary to obtain the statistical information of the source data table in advance.
[0040] The server tries to combine the sample query conditions according to the statistical data table, that is, it combines the sample query conditions at different granularities, selects sample query condition combinations with uniform data distribution and reasonable data volume based on the data volume distribution, and then partitions the source data table according to the sample query condition combinations.
[0041] Specifically, the server combines each sample query condition based on the statistical data table to determine the sample query condition combination. The data volume difference between the sample query conditions in the sample query condition combination is not greater than a preset threshold. Then, the server partitions the statistical data table according to the sample query condition combination to construct a partitioned data table. That is, it is possible to have a general understanding and comparison of the partitions of various data sets of the statistical data table, and to perform a partition operation on the table in combination with the current distribution of the data and the distribution of the table to be formed to improve the speed of data query.
[0042] In some embodiments of the present application, in order to reduce the computing pressure of the server, each sample query condition and the data volume of the data set corresponding to each sample query condition are encoded, and the label corresponding to each sample query condition is determined, that is, the label can not only represent the sample query condition, but also represent the data volume of the data set corresponding to the sample query condition, so that the server can obtain which sample query condition it is and the data volume of the data set corresponding to the sample query condition only through the label.
[0043] Furthermore, the server combines the sample query conditions according to the labels corresponding to the sample query conditions, and determines a plurality of sample query condition combinations.
[0044] Among them, the server will obtain the query probability corresponding to each sample query condition, and then sort the labels corresponding to each sample query condition in order from high to low query probability to determine the label sequence. In the label sequence, the labels are combined in sequence according to the sorting order to determine multiple label combinations. Finally, based on multiple label combinations, several sample query condition combinations are determined.
[0045] That is, the embodiment of the present application can combine the tags in order from high to low query probability, which can better meet the actual needs of users.
[0046] Furthermore, the server combines the tags in sequence in the tag sequence according to the sorting order, and determines the combination of multiple tags, specifically including:
[0047] The server determines the second label corresponding to the second sample query condition that has the smallest difference in data volume with the data set of the first sample query condition in the label sequence by combining the first label with other labels in sequence. Then, the first label is combined with the second label to determine the label combination, and the label combination is input into the label combination sequence. In the label sequence, the first label and the second label are deleted, and finally, the label sequence does not include any labels, so as to determine multiple label combinations in the label combination sequence.
[0048] In some embodiments of the present application, after obtaining several query conditions, in order to give priority to meeting the user's more urgent demand information, the server will determine the sample query conditions related to the business scenarios of the user's application after partitioning the statistical data table according to the sample query condition combinations, and then sort the sample query condition combinations based on the relevant sample query conditions, determine the priority between the sample query condition combinations, and perform a combined query on the several query conditions according to the priority between the sample query condition combinations.
[0049] In some embodiments of the present application, after obtaining the query results, the server may have the result of a cross-partition query. Therefore, the server determines, based on the query results, whether a cross-partition query occurs when querying a plurality of query conditions in a partitioned data table through Impala. If so, the query condition combination corresponding to the cross-partition query is determined, and then a partition key index of the query condition in the query condition combination is created so that the query condition combination can be queried without crossing partitions in the partitioned data table through Impala next time.
[0050] That is, the embodiment of the present application can effectively avoid the cross-partition query in the query condition combination again by combining the query conditions corresponding to the cross-partition query and then using the partition key index of the query conditions in the query condition combination.
[0051] S103: Determine whether the query result is a valid query.
[0052] In some embodiments of the present application, the server compares the query result with the set query criteria to determine whether the query result is a valid query. If so, the server returns the query result to the user.
[0053] The set standard is that the difference in the data volume of the data sets between the query conditions in each query condition combination is not greater than a preset threshold, and is evenly distributed in the partitioned table.
[0054] That is, when the difference in the data volume of the data sets between the query conditions in each query condition combination in the query result is not greater than the preset threshold, and is evenly distributed in the partitioned table, it is a valid query.
[0055] If not, execute step S104.
[0056] S104: If not, update the partition data table according to the query result.
[0057] If not, the query result is returned to the user and the partition data table is updated according to the query result, thereby correcting the inappropriate partition.
[0058] It should be noted that although the embodiments of the present application are based on Figure 1 Steps S101 to S104 are described in sequence, but this does not mean that steps S101 to S104 must be performed in a strict order. Figure 1 The order shown in the figure is to introduce and explain step S101 to step S104 in sequence, in order to facilitate those skilled in the art to understand the technical solution of the embodiment of the present application. In other words, in the embodiment of the present application, the order between step S101 to step S104 can be appropriately adjusted according to actual needs.
[0059] pass Figure 1 The method of the present application embodiment can improve the speed of data query through the data processing tool Impala, and based on Impala, by building a partitioned data table, it can provide reasonable partitions, can give full play to the performance of Impala, and by judging whether the query result is a valid query, it can continuously optimize the partitioned data table, further improve the query efficiency of Impala, thereby improving the speed of data query for users and improving query efficiency.
[0060] Based on the same idea, some embodiments of the present application also provide devices and non-volatile computer storage media corresponding to the above methods.
[0061] Figure 2 A schematic diagram of a data query device provided in an embodiment of the present application includes:
[0062] at least one processor; and,
[0063] a memory communicatively connected to the at least one processor; wherein,
[0064] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0065] Get the user's data query request;
[0066] According to the query conditions in the data query request, query is performed in the pre-built partitioned data table through Impala to obtain the query result;
[0067] Determine whether the query result is a valid query;
[0068] If not, the partition data table is updated according to the query result.
[0069] Some embodiments of the present application provide a data query non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to:
[0070] Get the user's data query request;
[0071] According to the query conditions in the data query request, query is performed in the pre-built partitioned data table through Impala to obtain the query result;
[0072] Determine whether the query result is a valid query;
[0073] If not, the partition data table is updated according to the query result.
[0074] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0075] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0076] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0077] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0078] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0079] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0080] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0081] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0082] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0083] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0084] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the technical principle of the present application should all fall within the protection scope of the present application.
Claims
1. A data query method, characterized in that: The method comprises: Get the user's data query request; According to the query conditions in the data query request, query is performed in a pre-built partitioned data table by using Impala with query function to obtain query results; Determining whether the query result is a valid query; If not, updating the partition data table according to the query result; Determining the partition data table specifically includes: Get several set sample query conditions; Generate data sets corresponding to each sample query condition through Impala; Generate a statistical data table based on the data set; Based on the statistical data table, the sample query conditions are combined to determine a sample query condition combination; the data volume difference of the data sets between the sample query conditions in the sample query condition combination is not greater than a preset threshold; Partitioning the statistical data table according to the sample query condition combination to construct a partitioned data table; The combining of the sample query conditions based on the statistical data table to determine a sample query condition combination specifically includes: Encode each sample query condition and the data volume of the data set respectively corresponding to each sample query condition, and determine the label respectively corresponding to each sample query condition; Combining the sample query conditions according to the labels corresponding to the sample query conditions to determine a plurality of sample query condition combinations; The combining the sample query conditions according to the labels respectively corresponding to the sample query conditions to determine a plurality of sample query condition combinations specifically includes: Obtaining query probabilities corresponding to each of the sample query conditions; Sort the labels corresponding to the sample query conditions in descending order of the query probability to determine a label sequence; In the tag sequence, the tags are combined in sequence according to the sorting order to determine a plurality of tag combinations; Based on the multiple tag combinations, determining a number of sample query condition combinations; In the tag sequence, the tags are sequentially combined according to the sorting order to determine a plurality of tag combinations, specifically including: In the tag sequence, by sequentially combining the first tag with other tags, a second tag corresponding to the second sample query condition having the smallest difference between the data amount of the data set of the first sample query condition and the second tag corresponding to the second sample query condition is determined; Combine the first label and the second label to determine a label combination, input the label combination into a label combination sequence, and delete the first label and the second label in the label sequence; Until the tag is not included in the tag sequence, a plurality of tag combinations are determined in the tag combination sequence.
2. The method according to claim 1, characterized in that After partitioning the statistical data table according to the sample query condition combination, the method further includes: Determine sample query conditions related to the business scenario of the user application; According to the relevant sample query conditions, the sample query condition combinations are sorted, and the priorities among the sample query condition combinations are determined, so as to perform a combined query on the plurality of query conditions according to the priorities among the sample query condition combinations.
3. The method according to claim 1, characterized in that According to the query conditions in the data query request, after querying the pre-built partitioned data table through Impala and obtaining the query result, the method further includes: According to the query result, determine whether a cross-partition query occurs when the query conditions are queried in the partition data table through Impala; If yes, determine the query condition combination corresponding to the cross-partition query; A partition key index of the query condition in the query condition combination is created, so that the query condition combination can be queried in the partition data table without crossing partitions through Impala next time.
4. The method according to claim 1, characterized in that: The determining whether the query result is a valid query specifically includes: By comparing the query result with the set query standard, determining whether the query result is a valid query; If yes, returning the query result to the user; If not, the query result is returned to the user, and the partition data table is updated according to the query result.
5. A data query device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Get the user's data query request; According to the query conditions in the data query request, query is performed in the pre-built partitioned data table through Impala to obtain the query result; Determining whether the query result is a valid query; If not, updating the partition data table according to the query result; Determining the partition data table specifically includes: Get several set sample query conditions; Generate data sets corresponding to each sample query condition through Impala; Generate a statistical data table based on the data set; Based on the statistical data table, the sample query conditions are combined to determine a sample query condition combination; the data volume difference of the data sets between the sample query conditions in the sample query condition combination is not greater than a preset threshold; Partitioning the statistical data table according to the sample query condition combination to construct a partitioned data table; The combining of the sample query conditions based on the statistical data table to determine a sample query condition combination specifically includes: Encode each sample query condition and the data volume of the data set respectively corresponding to each sample query condition, and determine the label respectively corresponding to each sample query condition; Combining the sample query conditions according to the labels corresponding to the sample query conditions to determine a plurality of sample query condition combinations; The combining the sample query conditions according to the labels respectively corresponding to the sample query conditions to determine a plurality of sample query condition combinations specifically includes: Obtaining query probabilities corresponding to each of the sample query conditions; Sort the labels corresponding to the sample query conditions in descending order of the query probability to determine a label sequence; In the tag sequence, the tags are combined in sequence according to the sorting order to determine a plurality of tag combinations; Based on the multiple tag combinations, determining a number of sample query condition combinations; In the tag sequence, the tags are sequentially combined according to the sorting order to determine a plurality of tag combinations, specifically including: In the tag sequence, by sequentially combining the first tag with other tags, a second tag corresponding to the second sample query condition having the smallest difference between the data amount of the data set of the first sample query condition and the second tag corresponding to the second sample query condition is determined; Combine the first label and the second label to determine a label combination, input the label combination into a label combination sequence, and delete the first label and the second label in the label sequence; Until the tag is not included in the tag sequence, a plurality of tag combinations are determined in the tag combination sequence.
6. A data query non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions are configured to: Get the user's data query request; According to the query conditions in the data query request, query is performed in the pre-built partitioned data table through Impala to obtain the query result; Determining whether the query result is a valid query; If not, updating the partition data table according to the query result; Determining the partition data table specifically includes: Get several set sample query conditions; Generate data sets corresponding to each sample query condition through Impala; Generate a statistical data table based on the data set; Based on the statistical data table, the sample query conditions are combined to determine a sample query condition combination; the data volume difference of the data sets between the sample query conditions in the sample query condition combination is not greater than a preset threshold; Partitioning the statistical data table according to the sample query condition combination to construct a partitioned data table; The combining of the sample query conditions based on the statistical data table to determine a sample query condition combination specifically includes: Encode each sample query condition and the data volume of the data set respectively corresponding to each sample query condition, and determine the label respectively corresponding to each sample query condition; Combining the sample query conditions according to the labels corresponding to the sample query conditions to determine a plurality of sample query condition combinations; The combining the sample query conditions according to the labels respectively corresponding to the sample query conditions to determine a plurality of sample query condition combinations specifically includes: Obtaining query probabilities corresponding to each of the sample query conditions; Sort the labels corresponding to the sample query conditions in descending order of the query probability to determine a label sequence; In the tag sequence, the tags are combined in sequence according to the sorting order to determine a plurality of tag combinations; Based on the multiple tag combinations, determining a number of sample query condition combinations; In the tag sequence, the tags are sequentially combined according to the sorting order to determine a plurality of tag combinations, specifically including: In the tag sequence, by sequentially combining the first tag with other tags, a second tag corresponding to the second sample query condition having the smallest difference between the data amount of the data set of the first sample query condition and the second tag corresponding to the second sample query condition is determined; Combine the first label and the second label to determine a label combination, input the label combination into a label combination sequence, and delete the first label and the second label in the label sequence; Until the tag is not included in the tag sequence, a plurality of tag combinations are determined in the tag combination sequence.
