Method and system of processing plurality of database queries at database query engine
The batch query optimization method in MPP database systems addresses inefficiencies by parsing and reordering queries and using shared operators, resulting in improved efficiency and robustness in handling multiple queries and optimizing data placement.
Patent Information
- Application Number
- PCT/EP2023/055877
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-08
- Publication Date
- 2024-09-12
AI Technical Summary
Conventional massively parallel processing (MPP) database systems are inefficient in handling a large number of database queries, lack scalability, and are sensitive to the order of query arrival, with existing optimization techniques like multi-query optimization and shared workload optimization not effectively addressing these issues.
A method and system that utilize a batch query optimization approach, involving parsing and reordering database queries using an overlap graph, creating a global query plan, and executing them with shared operators to improve efficiency and robustness, while optimizing data placement and reducing redundant work.
The batch query optimization method enables efficient handling of multiple queries, reduces the impact of query order, and improves performance by optimizing sharing and placement decisions, enhancing the scalability and robustness of MPP database systems.
Smart Images

Figure EP2023055877_12092024_PF_FP_ABST
Abstract
Description
[0001]METHOD AND SYSTEM OF PROCESSING PLURALITY OF DATABASE QUERIES AT DATABASE QUERY ENGINE TECHNICAL FIELD The present disclosure relates generally to the field of database management systems and, more specifically, to a method and a system of processing a plurality of database queries at a database query engine. BACKGROUND Typically, massively parallel processing (MPP) database systems are designed to handle a large workload in the form of a number of database queries by distributing the workload among a large number of processors or nodes. The MPP database systems involve use of multi-tenancy infrastructure in which a single database system serves multiple tenants or customers in data warehouse applications. Moreover, due to multi-tenancy infrastructures in the MPP database systems, a large number of database queries are received from multiple customers at a time by the MPP database systems. Conventionally, database queries are evaluated one at a time in the MPP database systems. However, the conventional approach is inefficient to meet high output requirements of multi-tenant infrastructures and the conventional MPP database systems are not scalable enough with size of database queries, which is not desirable. Currently, certain attempts have been made to handle the large number of database queries in the conventional MPP database systems by introducing multi query optimization (MQO) technique. The MQO technique shares the database queries among different processors that are included in the MPP database system by finding common subexpressions across multiple database queries. In addition, the MQO technique does not scale well neither with the number of joined relations nor with the workload size, which is not desirable. In certain attempts, a shared workload optimization (SWO) technique was used, which enables maximum sharing of the workload amongst different processors in the MPP database system to minimize the time taken by corresponding processors to execute the database queries. The problem with the SWO technique is that the SWO technique is not efficient with large workload of database queries and is sensitive to the order of arrival of the database queries. Further, some other attempts include the use of machine learning approach to handle the workload but have limited applicability due to the large training period, which is not desirable. Thus, there exists a technical problem of how to efficiently handle the multiple database queries in a lesser time and have robustness with respect to order of arrival of queries associated with the conventional database query engines in the MPP database systems. Therefore, in light of the foregoing discussion, there exists a need to overcome the aforementioned drawbacks associated with conventional MPP database systems. SUMMARY The present disclosure provides a method and a system of processing a plurality of database queries at a database query engine. The present disclosure provides a solution to the existing problem of how to efficiently handle the multiple database queries in a lesser time and have robustness with respect to order of arrival of queries associated with the conventional database query engines in massively parallel processing (MPP) database systems. An aim of the present disclosure is to provide a solution that overcomes at least partially the problems encountered in the prior art and provides an improved method and an improved system of processing a plurality of database queries at a database query engine along with batch query optimization. One or more objectives of the present disclosure are achieved by the solutions provided in the enclosed independent claims. Advantageous implementations of the present disclosure are further defined in the dependent claims. In one aspect, the present disclosure provides a method of processing a plurality of database queries at a database query engine comprising receiving the plurality of database queries from one or more requesters into the database query engine, parsing each one of the plurality of the database queries using an structured programming language (SQL) parser module of the database query engine, creating an abstract syntax tree for each query of the plurality of the database queries, creating a modified version of the abstract syntax tree for each query of the plurality of the database queries using a logical planner module of the database query engine, where the logical planner module receives an input from a batch query optimizer module, resulting in the creation of a global query plan corresponding to the plurality of the database queries, where the batch query optimizer module reorders the queries in the plurality of the database queries using an overlap graph which is formed by creating a vertex for each query in the plurality of the database queries and adding a directed edge between each pair of vertices, where the directed edge is assigned a weighting in accordance with a degree of commonality or overlap between data sources associated with the two queries corresponding to the pair of vertices, inputting the global query plan to a distributed planner module, an execution planner module and a scheduler module, each being modules of the database query engine, to create an execution plan for execution of the plurality of the database queries in accordance with the global query plan and executing the plurality of the database queries according to the execution plan using a plurality of shared operators, where a shared operator operates on data from a data source by performing an operation on such data for a plurality of queries which are each associated with data from the data source. The method provides advantages of handling a large number of queries at a time through the batch query optimizer module and eliminate the effect of order of the plurality of database queries during execution. Moreover, the batch query optimizer module disclosed in the method is robust for a wide range of database queries and enables data placement optimization. Further, the batch query optimizer module optimizes sharing and placement decisions of the database queries which improves performance of the conventional MPP database systems. In addition, the batch query optimization disclosed in the method allows efficient recovery mechanism in context of shared operators by reusing common sub-expressions across all the database queries. In an implementation form, the method further includes the step of running a topological sort on the overlap graph to derive the reordering of the queries in the plurality of the database queries. The topological sort run on the overlap graph allows for the efficient determination of a linear ordering of the overlap graph's vertices. In an implementation form, a first shared operator is a shared scan operator. The shared scan operator reduces the amount of redundant work that has to be performed during database queries execution by allowing multiple operators to share the same scan of the database rather than performing individual scan by each operator. In a further implementation form, a second shared operator is a shared filter operator, where the shared filter operator receives data from a data source which has been scanned by the shared scan operator. The shared filter operator allows multiple operators to share same filtering conditions for multiple database queries to improve speed of database query execution. In a further implementation form, the shared filter operator examines each data tuple obtained from the data source via the shared scan operator and determines whether each data tuple satisfies respective conditions for each query and annotates each data tuple with an identifier of the respective query whose conditions are satisfied for that data tuple. The shared filter operator annotates the data tuples with respective queries to enhance relational operators with semantics of query-set operations. In a further implementation form, a third shared operator is a shared join operator which receives an output from each of the plurality of shared filter operators, each shared filter operator operating on a respective data source which has been scanned by a respective shared scan operator. The shared join operator enables combining of multiple tables from the data source to retrieve data from multiple tables in a single database query to improve data integrity and reduce the data redundancy. In a further implementation form, a fourth shared operator is a router operator which routes an output of the shared join operator to a requester which has sent the respective query to the database query engine. The router operator allows efficient query execution by directing results of a database query to the operator based on a certain criterion. In a further implementation form, the router operator sends a tuple to multiple downstream operators. The downstream operators allow flexible database queries execution by breaking a query into smaller, more manageable parts and allowing each part to be processed independently. In a further implementation form, the global query plan is created based on a cost-based optimisation algorithm. The cost-based optimization algorithm executes the database queries to reduce the cost of execution of the database queries. In an implementation form, a shared operator computation is pre-computed and stored in a cache. The cache is configured to rewrite database queries in an efficient manner and reduces time of execution for database queries by providing a secondary storage for storing immediate database query execution results. In another aspect, the present disclosure provides a system comprising means adapted for carrying out all the steps of the method according to any preceding method claim. The disclosed system achieves all the advantages and technical effects of the method of the present disclosure. It is to be appreciated that all the aforementioned implementation forms can be combined. It is be noted that all devices, elements, circuitry, units, and means described in the present application could be implemented in the software or hardware elements or any kind of combination thereof. All steps which are performed by the various entities described in the present application, as well as the functionalities described to be performed by the various entities, are intended to mean that the respective entity is adapted to or configured to perform the respective steps and functionalities. Even if, in the following description of specific embodiments, a specific functionality or step to be performed by external entities is not reflected in the description of a specific detailed element of that entity that performs that specific step or functionality, it should be clear for a skilled person that these methods and functionalities can be implemented in respective software or hardware elements, or any kind of combination thereof. It will be appreciated that features of the present disclosure are susceptible to being combined in various combinations without departing from the scope of the present disclosure as defined by the appended claims. Additional aspects, advantages, features, and objects of the present disclosure would be made apparent from the drawings and the detailed description of the illustrative implementations construed in conjunction with the appended claims that follow. BRIEF DESCRIPTION OF THE DRAWINGS The summary above, as well as the following detailed description of illustrative embodiments, is better understood when read in conjunction with the appended drawings. For the purpose of illustrating the present disclosure, exemplary constructions of the disclosure are shown in the drawings. However, the present disclosure is not limited to specific methods and instrumentalities disclosed herein. Moreover, those skilled in the art will understand that the drawings are not to scale. Wherever possible, like elements have been indicated by identical numbers. Embodiments of the present disclosure will now be described, by way of example only, with reference to the following diagrams wherein: FIG.1 is a flow chart of a method of processing a plurality of database queries at a database query engine, in accordance with an embodiment of the present disclosure; FIG.2 is a block diagram that depicts a system for processing a plurality of database queries at a database query engine, in accordance with an embodiment of the present disclosure; FIG.3 is a block diagram that depicts a database query engine, in accordance with an embodiment of the present disclosure; FIG. 4A and 4B are different diagrams that depict various exemplary implementations of common join templates with different filtering predicates, in accordance with an embodiment of the present disclosure; FIG.5 is a diagram that depicts an exemplary implementation of a shared execution in a select-project-join (SPJ) query, in accordance with an embodiment of the present disclosure; FIGs. 6A and 6B are different block diagrams that depict various exemplary implementations to demonstrate an importance of a query arrival order in exposing sharing opportunities, in accordance with an embodiment of the present disclosure; FIGs.7A and 7B are different block diagrams that depict various exemplary implementations of a DATAPATH system in an operational mode, in accordance with an embodiment of the present disclosure; FIG.8 is a block diagram that depicts an exemplary implementation of a shared execution, in accordance with an embodiment of the present disclosure; FIG.9 is a block diagram that depicts an exemplary implementation to demonstrate an advantage of replicated and partitioned relations, in accordance with an embodiment of the present disclosure; FIG.10 is a block diagram that depicts an embodiment of an architecture of a data placement- aware optimizer, in accordance with an embodiment of the present disclosure; and FIG.11 is a block diagram that depicts an algorithm for selecting materialized views, in accordance with an embodiment of the present disclosure. In the accompanying drawings, an underlined number is employed to represent an item over which the underlined number is positioned or an item to which the underlined number is adjacent. A non-underlined number relates to an item identified by a line linking the non- underlined number to the item. When a number is non-underlined and accompanied by an associated arrow, the non-underlined number is used to identify a general item at which the arrow is pointing. DETAILED DESCRIPTION OF EMBODIMENTS The following detailed description illustrates embodiments of the present disclosure and ways in which they can be implemented. Although some modes of carrying out the present disclosure have been disclosed, those skilled in the art would recognize that other embodiments for carrying out or practising the present disclosure are also possible. FIG. 1 is a flow chart of a method of processing a plurality of database queries at a database query engine, in accordance with an embodiment of the present disclosure. With reference to FIG.1, there is shown a flow chart of a method 100 of processing a plurality of database queries at a database query engine. The method 100 includes steps 102 to 112. There is provided the method 100 of processing a plurality of database queries at a database query engine. The database queries refer to a request for information from a database through a database management system (DBMS). The database corresponds to a collection of data stored in an organized manner, which can be accessed electronically. The examples of the database may include, but are not limited to, hierarchical databases, network databases, object- oriented databases, relational databases, NoSQL databases, and the like. The DBMS corresponds to a system, which is configured to create and manage the database including a large amount of data. In an implementation, the DBMS is a massively parallel processing (MPP) database system, which is configured to process the database using two or more processors or nodes. The MPP database system parallelizes processing of data related to one or more database queries.. In an implementation, the database query engine is a processing module configured in the MPP database system, which executes one or more database queries received from requestors by organizing and retrieving data from the database. In an example, the requestors request multiple database queries, that is, a batch of queries at a time from the database. Moreover, based on the request received from the requestors, the database query engine retrieves the relevant data from the database and provides the retrieved data to the requestors as per requirements mentioned in database queries. At step 102, the method 100 comprises receiving the plurality of database queries from one or more requesters into the database query engine. Moreover, the database query engine processes the data stored in the database as per conditions or predicates mentioned in the database queries. In an implementation, the requester corresponds to a user or a system, which needs the data stored in the database in a particular format. In another implementation, the database queries are in the form of a structured programming language (SQL),which is used to communicate between the requesters and the database query engine in order to retrieve information from the database At step 104, the method 100 comprises parsing each of the database queries using an SQL parser module of the database query engine. In an example, the SQL parser module parses each query from the plurality of database queries received from the requester. During parsing, the SQL parser module separates each database query, which is in the form of SQL statements into multiple components or parts. The parsing of the database queries is advantageous to reduce processing time for executing the database queries by the database query engine. At step 106, the method 100 comprises creating an abstract syntax tree for each query in the plurality of database queries. In other words, after parsing of each database query from the plurality of database queries, the abstract syntax tree is created based on the corresponding parts. The abstract syntax tree is a tree representation of an abstract syntactic structure of each database query from the plurality of database query in the form of root, nodes, and leaf. In an implementation, the abstract syntax tree is used by the SQL parser module to validate each database query (which is in the form of SQL statement) and supports to create an executable query plan for processing of the plurality of database queries. The abstract syntax tree includes clauses, expressions, and operators for each database query. In an implementation, the SQL parser module creates a separate abstract syntax tree for each database query from the plurality of database queries. At step 108, the method 100 further comprises creating a modified version of the abstract syntax tree for each query of the plurality of database queries using a logical planner module of the database query engine. In other words, the logical planner module takes the abstract syntax tree as an input from the SQL parser module and provides an output as the modified version of the abstract syntax tree. In an implementation, the modified version of abstract syntax tree includes rearranged nodes of the abstract syntax tree to reflect an order in which the execution of the corresponding database query should be performed or add new nodes to the abstract syntax tree to represent additional operations that are needed to execute the query. Moreover, the logical planner module receives an input from a batch query optimizer module, resulting in the creation of a global query plan corresponding to the plurality of database queries. The global query plan is a single execution plan, which is common for all the database queries received from the requesters. In an example, the global query plan is a process through which each database query from the plurality of the database queries gets executed efficiently. In an implementation, the global query plan is created incrementally as the database queries arrive, which is advantageous for sharing of the plurality of database queries among the processors in the MPP database systems as well as allows efficient query optimization. In an implementation, the batch query optimizer module is configured with a DATAPATH system, which generates a query plan based on a greedy algorithm to maximize sharing for each database query to make suboptimal choices for the global query plan. The advantage of the batch query optimizer module is the robustness with respect to order of arrival of database queries in the plurality of database queries and enabling data placement optimizations. In an implementation, the plurality of database queries are received by the logical planner module, and the plurality of database queries are integrated into the global query plan. In an example, if the quantity of the plurality of database queries (i.e., number of queries received) which are integrated in the global query plan is reached to a predefined size, then the corresponding database queries are considered for further execution. In such embodiment, the plurality of database queries received by the logical planner module are buffered until the predefined size is obtained, and the plurality of database queries are reordered by the logical planner module and integrated one by one in the global query plan. In accordance with an embodiment, the global query plan is created based on a cost-based optimisation algorithm. The cost-based optimisation algorithm is an algorithm, which evaluates a cost incurred to perform a specific join operation in each database query of the plurality of database queries. In an implementation, the join in each of the database query is an SQL statement, which is used to combine data from two or more tables in the database. In an example, the cost of the joining each database query refers to an amount of resources (such as time and memory) that are required to execute the corresponding join operation. In an implementation, the cost-based optimisation algorithm works on a shared cost model. In the shared cost model, a join operator is shared among N number of queries (e.g., Q1, Q2…, and Qn) for execution of the plurality of the database queries. The cost for execution of such batch of database queries is estimated by performing union of the N database queries as :– Where, σ represents a selection or filter operator, which is used to retrieve data from the database based on definite conditions. Here, the cost of processing the plurality of queries is reduced through shared execution of queries. Further, the batch query optimizer module reorders the queries in the plurality of database queries using an overlap graph, which is formed by creating a vertex for each query in the plurality of database queries and adding a directed edge between each pair of vertices. In an implementation, the vertex of each of the database query is a node in a graph presentation of the database, where each table of the database is represented by the node. In a further implementation, the directed edge represents the relation between the vertices (or nodes). In such implementation, one or more database queries are reordered to expose more sharing opportunities amongst the plurality of database queries. In an implementation, the plurality of database queries are reordered for obtaining an order, which maximizes a number of common subexpressions. The common subexpression is a part of a database query that is repeatedly used in multiple places within the plurality of database queries. Moreover, the directed edge is assigned a weighting in accordance with a degree of commonality or overlap between data sources associated with the two queries corresponding to the pair of vertices. In other words, if there is more common data between the data sources, which are associated with two database queries, then the weighing is assigned in proportion to the extent of the common data. In accordance with an embodiment, the method 100 includes running a topological sort on the overlap graph to derive the reordering of the queries in the plurality of database queries. In an implementation, the topological sort is an algorithm, which performs linear ordering of the vertices of the database queries. In such implementation, the overlap graph is a form of a directed acyclic graph (DAG) that is used to represent relationships between the data in the database. For example, there are two database queries, Qiand Qj, in which a vertex for the query Qi and another vertex for the query Qj is created. Further, the directed edge is added between the vertices of Qi and Qj as Qi -> Qj. The topological sort creates the linear ordering of vertices of Qiand Qj, such that Qicomes before the Qjduring reordering of the database queries. In an implementation, the overlap graph is created based on an algorithm in which first two lines of the algorithm creates the overlap graph, and the third line of the algorithm derives the order in which the database queries are fed to the DATAPATH system. At step 110, the method 100 comprises inputting the global query plan to a distributed planner module, an execution planner module, and a scheduler module, each being modules of the database query engine, to create an execution plan for execution of the plurality of the database queries in accordance with the global query plan. In an implementation, the global query plan created by the logical planner module is fed to the distributed planner module, which creates a distribution plan for the plurality of database queries, which is further fed to the execution planner module to make an execution plan. The execution plan includes a set of operations to be performed by the database query engine to execute the plurality of database queries. In an implementation, the distributed and execution planner are configured to as a single module to create the execution plan for the plurality of database queries. Further, the scheduler module creates a schedule regarding the time and order in which each of the plurality of database queries is sent for further processing to one or more processors in the database query engine. At step 112, the method 100 further comprises executing the plurality of the database queries according to the execution plan using a plurality of shared operators. The shared operators are operators, which are shared within the database query engine to process the plurality of database queries at one time. In an example, the shared operators include shared join operators or shared scan operators, which are used by multiple database queries concurrently. Moreover, the shared operator operates on data from a data source by performing an operation on such data for the plurality of database queries, which are each associated with data from the data source. The shared operators perform shared execution of all the database queries by retrieving data from the data source. In an implementation, the shared operators in the method 100 include a first shared operator, a second shared operator, a third shared operator, and a fourth shared operator. In accordance with an embodiment, the first shared operator is a shared scan operator. The shared scan operator performs scanning of a data from the data source to relevant data for each database query in the plurality of database queries. The shared scan operator reads the data in the data source sequentially In accordance with another embodiment, the second shared operator is a shared filter operator. The shared filter operator filters the data present in the data source based on predicates included in each database query. In an implementation, the shared filter operator is based on a data query model that filters the data inside the data source and identifies the data, which satisfies the predicates or conditions mentioned in the queries. In such an embodiment, the shared filter operator examines each data tuple obtained from the data source via the shared scan operator and determines whether each data tuple satisfies respective conditions for each query and annotates each data tuple with an identifier of the respective query for which the conditions are satisfied for that data tuple. The data is stored in the data source in a tabular form (i.e., in the form of rows and columns). The data source contains multiple tables for storing the data. The data tuple is a row contained in one of the tables stored in the data source. Furthermore, before application of the shared filter operator, the shared scan operator reads through all the data tuples in the data source to identify relevant data tuples. Further, the shared filter operator examines each data tuple obtained through the shared scan operator and determine the data tuples, which satisfies the conditions of each of the query from the plurality of database queries. During filtering operation, the shared filter operator annotates each data tuple with the identifier of the corresponding database query for which the conditions are satisfied by that data tuple. In an example, the identifier corresponds to an identity information, which is specific for each database query in the plurality of database queries. In accordance with an embodiment, the shared filter operator uses a grouped filter per attribute to store predicates. In an example, an attribute is a column in any table stored in the data source. In an implementation, the grouped filter is applied to store predicates by first grouping rows of a table in the data source and applying filtering conditions to each group of rows separately. In accordance with an embodiment, an intersection of a plurality of grouped filters is calculated to obtain an output of the shared filter operator, which is a query set that is satisfied by a specific input tuple. In an example, the grouped filter processes all data tuples in relevant tables in the data source and annotate each data tuple with corresponding query set, which includes set of queries that are satisfied by each data tuple. In accordance with an embodiment, the third shared operator is a shared join operator, which receives an output from each of a plurality of shared filter operators. Moreover, each shared filter operator operating on a respective data source, which has been scanned by a respective shared scan operator. The shared join operator is a join operator that allows for the efficient execution of database queries that involve multiple joins. The shared join operator joins tables from the data source for database queries that involve multiple tables. The shared join operator is applied to the output query sets, which are received from the shared filter operator. Thereafter, the share filter operator performs operation on the data source (i.e., relevant tables), which are scanned by the shared scan operator. In such embodiment, each query from the plurality of database queries is passed through the shared scan operator. The shared scan operator scans the database to identify relevant data for each database query. Further, the shared filter operator filters the data identified by the shared scan operator based on the predicates defined in each database query. Moreover, the shared filter operator identifies relevant query sets for each data tuple in the data source, and the shared join operator eliminates redundant tuples and executes the plurality of database queries. The shared join operator also performs query set intersection of corresponding joining tuples. The advantage of using the shared join operator is that the shared join operator can help to reduce the amount of redundant work that needs to be done for multiple similar database queries. In accordance with an embodiment, the shared join operator supports query set processing semantics where all pages both in a build and probe side of the join operator contain query set blocks. In an implementation, the build and probe side of the shared join operator corresponds to a build table and a probe table involved in the shared join operator. The shared join operator joins the build table and probe table to execute the database queries. In accordance with an embodiment, the fourth shared operator is a router operator, which routes an output of the shared join operator to a requester, which has sent the respective query to the database query engine. The results of database queries, which are executed through the shared join operator are fed to the router operator. The router operator directs the results for each database query of the plurality of database queries, which is obtained from the shared join operator to the corresponding requester. In an implementation, the router operator ensures that each joined record obtained after the join operation is forwarded to the appropriate database queries to execute corresponding database queries. The router operator is used to improve the performance of the database query by reducing the number of rows that need to be processed by the shared join operator. In accordance with an embodiment, the router operator sends a tuple to multiple downstream operators. A downstream operator corresponds to an operator that follows a source operator and processes a data produced by the source operator. In accordance with such embodiment, at least one of the multiple downstream operators is a shared operator. Moreover, the router operator acts as the source operator and sends the results of execution obtained by the shared join operator to the downstream operators. The downstream operators are beneficial to split the processing of database queries into multiple stages for improving performance of database query execution and the downstream operators can be reused from different database queries, which reduces cost of processing the database queries. In accordance with an embodiment, the router operator operates according to an operational model where, for each subtree, there is a single producer while a number of consumers is equal to a number of downstream operators. In an implementation, a consumer is an operator that consumes, or processes, rows of data produced by the downstream operators. In such implementations, the consumers receive data regarding results of the database queries from the downstream operators. In such implementation, a producer is an operator that produces a set of rows that are passed on to one or more downstream operators. In accordance with an embodiment, a shared operator computation is pre-computed and stored in a cache. The precomputation by the shared operator generates materialized intermediate result or view. In an implementation, the cache maintains materialized intermediate results along with information about partitioning and placement of the data in the database. The cache acts as a secondary source for storing the data. The cache allows the DBMS to quickly retrieve data from the database during database query execution, which can improve the performance of query execution. In addition, the batch query optimizer module uses information from the cache to rewrite database queries in more efficient ways. By storing the shared operator computation in cache, subexpressions across different database queries are reused and re-computation of the database queries is avoided. In an implementation, exchange operators are used to shuffle the data in the database during execution of the plurality of database queries. Furthermore, during execution of the database queries, the database queries are partitioned in several pieces, referred as partitions. The exchange operators shuffle the data in the database to parallelize execution across multiple partitions. The method 100 provides advantages of handling a large number of queries at a time by the MPP database systems through the batch query optimizer module and eliminate the effect of order of the plurality of database queries on query execution. In addition, the batch query optimizer module disclosed in the method 100 is robust for a wide range of database queries and enables data placement optimizations. Further, the batch query optimizer module disclosed in method 100 optimizes sharing and placement decisions of the database queries, which improves performance of the MPP database systems. Moreover, the batch query optimization disclosed in the method 100 allows efficient recovery mechanism in context of the shared operators by reusing common sub-expressions across all the database queries. There is provided a computer program comprising instructions for carrying out all the steps of the method 100. The computer program is executed on a computer system. The computer program is implemented as an algorithm, embedded in a software stored in the non-transitory computer-readable storage medium having program instructions stored thereon, the program instructions being executable by the one or more processors in the computer system to execute the method 100. The non-transitory computer-readable storage means may include, but are not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. Examples of implementation of computer-readable storage medium, but are not limited to, Electrically Erasable Programmable Read-Only Memory (EEPROM), Random Access Memory (RAM), Read Only Memory (ROM), Hard Disk Drive (HDD), Flash memory, a Secure Digital (SD) card, Solid-State Drive (SSD), a computer-readable storage medium, and / or CPU cache memory. FIG.2 is a block diagram that depicts a system for processing a plurality of database queries at a database query engine, in accordance with an embodiment of the present disclosure. With reference to FIG.2 there is shown a block diagram 200 of a system 202 for processing a plurality of database queries 208 at a database query engine 204. The system 202 is configured to process the plurality of database queries 208 through the database query engine 204. The system 202 receives the plurality of database queries 208 by one or more requesters 206, such as a first requestor 206A, a second requestor 206B up to an Nth requestor 206N. In an example, the requesters 206 are machine interfaces which convert the database queries 208 which are requested in human language into a structured query language (SQL) and send the plurality of database queries 208 to the system 202 for execution. The database query engine 204 is a processing unit which executes the plurality of database queries 208. The examples of database query engine 204 may include, but are not limited to an integrated circuit, a co-processor, a microprocessor, a complex instruction set computing (CISC) processor, an application-specific integrated circuit (ASIC) processor, a very long instruction word (VLIW) processor, a central processing unit (CPU), a state machine, a data processing unit, and other processors or circuits. Moreover, the database query engine 204 may refer to one or more individual processors, a processing unit that is part of a machine. Further, the system 202 is configured to parse each one of the plurality of database queries 208 using an SQL parser module 210 of the database query engine 204. The system 202 creates an abstract syntax tree for each query of the plurality of the database queries 208. Further, the system 202 creates a modified version of the abstract syntax tree for each query of the plurality of the database queries 208 using a logical planner module 214 of the database query engine 204. Further the logical planner module 214 receives an input from a batch query optimizer module 212 which results in creation of a global query plan corresponding to the plurality of the database queries 208. During the creation of the global query plan, the database query engine 204 reorders the queries in the plurality of the database queries 208 using an overlap graph which is formed by creating a vertex for each query in the plurality of the database queries 208 by using the batch query optimizer module 212 and adds a directed edge between each pair of vertices. Moreover, the system 202 assigns a weighting to the directed edge in accordance with a degree of commonality or overlap between data sources associated with the two database queries of the plurality of database queries 208 corresponding to the pair of vertices. Further, the system 202 inputs the global query plan to a distributed planner module 216, an execution planner module 218, and a scheduler module 220. Moreover, the distributed planner module 216, the execution planner module 218 and the scheduler module 220 are modules of the database query engine 204. Further, the system 202 creates an execution plan for execution of the plurality of the database queries 208 in accordance with the global query plan. Based on the execution plan, the system 202 executes the plurality of the database queries 208 according to the execution plan using a plurality of shared operators 222. Moreover, the shared operators 222 operate on data from a data source 224 by performing an operation on such data for the plurality of database queries 208, which are each associated with data from the data source 224. In an implementation, the data source 224 is a database from which the data is requested by the requestors though the plurality of database queries 208. FIG. 3 is a block diagram that depict a database query engine, in accordance with an embodiment of the present disclosure. FIG.3 is described in conjunction with elements of FIG. 2. With reference to FIG.3, there is shown a block diagram 300 of a database query engine 302, which includes a controller node 304 and agent nodes 306. In an implementation, the controller node 304 and the agent nodes 306 are processing units configured in the MPP database system. The examples of the controller node 304 and the agent nodes 306 may include, but not limited to, an integrated circuit, a co-processor, a microprocessor, a complex instruction set computing (CISC) processor, an application-specific integrated circuit (ASIC) processor, a very long instruction word (VLIW) processor, a central processing unit (CPU), a state machine, a data processing unit, and other processors or circuits. Moreover, the controller node 304 and the agent nodes 306 may refer to one or more individual processors, a processing unit that is part of a machine. The controller node 304 includes a structured programming language (SQL) parser module 308, a logical planner module 310, a batch query optimizer module 312, a distributed planner module 314, an execution planner module 316, and a scheduler module 318. Moreover, the agent nodes 306 includes multiple processors in which each processor includes a plurality of shared operators 322. In addition, the controller node 304 receives the plurality of database queries 208 (of FIG.2) from one or more requestors. In an implementation, the plurality of database queries 208 received by the controller node 304 are in the form of a structural query language SQL. The plurality of database queries 208 received by the controller node 304 through the SQL parser module 308. In operation, the database query engine 302 parses each one of the plurality of database queries 208 by using the SQL parser module 308. Further, the database query engine 302 creates an abstract syntax tree 320 based on parsing information provided by the SQL parser module 308. Based on the abstract syntax tree 320, the database query engine 302 creates a modified version of the abstract syntax tree 320 for each query of the plurality of database queries 208 using the logical planner module 310. Furthermore, the logical planner module 310 receives inputs from a batch query optimizer module 312 and a metadata 322. Based on the inputs from the batch query optimizer module 312 and the metadata 322, the database query engine 302 creates a global query plan 324 corresponding to the plurality of database queries 208. Further, the global query plan 324 is fed to the distributed planner module 314 to create a distribution plan 332, the execution planner module 316, and the scheduler module 318 to create an execution plan 326 for execution of the plurality of database queries 208 in accordance with the global query plan 324. Further, the scheduler module 318 sends the execution plan for processing of the plurality of database queries 208 to the agent nodes 306. The agent nodes 306 execute the plurality of database queries 208 according to the execution plan using a plurality of shared operators 328. The agent nodes 306 operate on a data from a data source 330 through the shared operators 328 to execute the plurality of database queries 208. The agent nodes 306 further processes the data from the data source 330 to execute the plurality of database queries 208. FIGs. 4A and 4B are different diagrams that depict various exemplary implementations of common join templates with different filtering predicates, in accordance with an embodiment of the present disclosure. FIGs.4A and 4B are described in conjunction with elements of FIGs. 2 and 3. With reference to FIG.4A, there is shown a block diagram 400A and 400B that depict an exemplary implementation of common join templates with different filtering predicates. With reference to FIG.4B, there is shown a block diagram 400A that depict another exemplary implementation of common join templates with different filtering predicates. In an implementation, there are two database queries of the plurality of database queries 208 (of FIG.2), such as a first query Q1 (as shown in FIG.4A) and a second query Q2 (as shown in FIG. 4B) requested by one or more requestors. Further, the data in the database for the first query Q1 includes two tables, such as a first table 402A and a second table 404A. Similarly, the data in the database for the second query Q1 includes two tables, such as a third table 402B and a fourth table 404B. The first table 402A and the third table 402B includes a web sales data (shown as “wsales” in FIGs.4A and 4B) and the second table 404A and the fourth table 404B includes a customer data (shown as “cust” in FIGs.4A and 4B). The first query Q1 includes two predicates such as “quantity greater than 10” and “state equals to CA” and the second query Q2 includes two predicates such as “quantity less than 30” and “state equals to WA”. Here, the query Q1 requires data from the first table 402A and the second table 404A. Moreover, the query Q2 requires data from the third table 402B and the fourth table 404B. In such example, the shared operators include a filter operator (σ) and a join operator (⋈). Furthermore, during execution of the query Q1, the filter operator selects entries from the first table 402A, which satisfies predicate “quantity greater than 10” and selects entries from the second table 404A, which satisfies predicate “state equals to CA” (as shown in FIG.4A). Further, during execution of the query Q2, the filter operator selects entries from the third table 402B, which satisfies predicate “quantity less than 30” and selects entries from the fourth table 404B, which satisfies predicate “state equals to WA”. In such example, the shared operators operate on same tables, that is the first table 402A, the second table 404A, the third table 402B, and the fourth table 404B to satisfy predicates of the queries Q1 and Q2. FIG.5 is a diagram that depicts an exemplary implementation of a shared execution in a select- project-join (SPJ) query, in accordance with an embodiment of the present disclosure. FIG.5 is described in conjunction with elements of FIGs.2, 3, 4A and 4B. With reference to FIG.5, there is shown a block diagram 500 that depicts an exemplary implementation of a shared execution in a select-project-join (SPJ) query. In an implementation, the shared operators include a shared scan operator 502, a shared filter operator (σ), a shared join operator (⋈) and a router operator 504. Further, there are two tables, a first table 506 and a second table 508 in the database. The first table 506 includes “web sales” data and the second table 508 includes “customer” data. During execution of the database queries, the shared scan operator 502 scans the first table 506 and the second table 508 to identify relevant data tuples from the first table 506 and the second table 508. Further, the shared filter operator (σ) filters the data tuples scanned by the shared scan operator 502, annotates the data tuples from both the first table 506 and the second table 508 with corresponding database queries of the plurality of database queries 208 (of FIG.2) to form query sets. The query set includes a list of data tuples from the first table 506 and the second table 508 and corresponding database queries which are satisfied by the data tuples as shown in FIG. 5. Furthermore, the shared join operator (⋈) joins the data tuples from the first table 506 and the second table 506, removes redundant data tuples and create new query sets. Further, the router operator 504 directs the newly created query sets to appropriate database queries to corresponding requestors. FIGs. 6A and 6B are different block diagrams that depict various exemplary implementations to demonstrate the importance of a query arrival order in exposing sharing opportunities, in accordance with an embodiment of the present disclosure. FIGs. 6A and 6B are described in conjunction with elements of FIGs. 2, 3, 4A, 4B and 5. With reference to FIGs. 6A and 6B, there are shown block diagrams 600A and 600B that depict exemplary scenarios implementations to demonstrate the importance of a query arrival order in exposing sharing opportunities that include an operation of a shared join operator for database queries, which are received in different orders. In an implementation, the plurality of database queries 208 (of FIG.2) includes four database queries including two different orders of arrivals. For example, the four queries include a first query Q1, a second query Q2, a third query Q3, and a fourth query Q4. Moreover, there are five tables in a database, such as a first table A, a second table B, a third table C, a fourth table D, and a fifth table E. The first query Q1 requires joining of the fourth table D and the fifth table E. Further, the second query Q2 requires joining of the third table C, the fourth table D and the fifth table E. Furthermore, the third query Q3 requires joining of the second table B, the third table C, the fourth table D and the fifth table E. Further, the fourth query Q4 requires joining of the first table A, the second table B, the third table C, the fourth table D and the fifth table E. In a first scenario, the order of arrival of the database queries in the database query engine 204 (of FIG.2) is the first query Q1, then the second query Q2, then the third query Q3, and the fourth query Q4 at the end as shown in FIG.6A as follows: Q1 = D⋈E Q2 = C⋈D⋈E Q3 = B⋈C⋈D⋈E Q4 = A⋈B⋈C⋈D⋈E A first shared join operator (⋈1) joins the fourth table D and the fifth table E as per the first query Q1. Further, the second query Q2 is arrived, and a second shared operator (⋈2) joins the third table C with the fourth table D and the fifth table E. Further, the third query Q3 is arrived, and a third shared join operator (⋈3) joins the second table B with the third table C the fourth table D and the fifth table E. Furthermore, the fourth query Q4 is arrived, and a fourth shared operator (⋈4) joins the first table A with the second table B, the third table C the fourth table D and the fifth table E. In a second scenario, the order of arrival of database queries in the database query engine 204 (of FIG.2) is the fourth query Q4, then the third query Q3, then the second query Q2 and, the first query Q1 at the end as shown in FIG.6A as follows: Q4 = A⋈B⋈C⋈D⋈E Q3 = B⋈C⋈D⋈E Q2 = C⋈D⋈E Q1 = D⋈E The shared join operators, such as a fifth shared join operator (⋈5), a sixth shared join operator (⋈6), a seventh shared join operator (⋈7), an eighth shared join operator (⋈8), a ninth shared join operator (⋈9), a tenth shared join operator (⋈10), an eleventh shared join operator (⋈11), a twelfth shared join operator a thirteenth shared join operator (⋈13), and a fourteenth shared join operator (⋈14) operate on the database and executes the database queries Q1, Q2, Q3 and Q4. In the above scenarios, there are 5 tables and 4 queries, that is N tables and N-1 queries. The order of arrival in the first scenario (as shown in FIG. 6A) leads to the use of 4 (i.e., N-1) shared join operators, for 5 (i.e., N) tables. Furthermore, the order of arrival in the second scenario (as shown in FIG. 6B) leads to the use of 10 (i.e., N(N-1) / 2) shared join operators. Therefore, the order of arrival of database queries effects on sharing opportunities (i.e., more shared operators, less is the sharing opportunity). FIGs.7A and 7B are different block diagrams that various depict exemplary implementations of a DATAPATH system in an operational mode, in accordance with an embodiment of the present disclosure. FIGs.7A and 7B are described in conjunction with elements of FIGs.2, 3, 4A, 4B, 6A and 6B. With reference to FIGs 7A and 7B, there are shown block diagrams 700A and 700B that depict exemplary implementations of a system in an operational mode, which includes a change in a global query plan due to arrival of a new database query. In such example, the global query plan 324 (of FIG. 3) created by the database query engine 204 (of FIG. 2) receives a new database query, which requires joins of four tables, such as ‘wsales’, ‘cust’, ‘item’, and ‘cdemo’, as shown in following manner: wsales ⋈ cust item ⋈ cdemo cust ⋈ cdemo In a first scenario (as shown in FIG.7A), there is shown the global query plan before insertion of the new query. The global query plan in the first scenario includes three shared join operators to join the four tables. In a second scenario (as shown in FIG. 7B), there is shown the global query plan 324 after insertion of the new query. Furthermore, after insertion of the new query, a single join operator is added into the existing shared join operators. At the time of addition of the new database query into the global query plan 324, the batch query optimizer module 212 (of FIG. 2) associated with the DATAPATH system employs a heuristic algorithm to search for space of join operators for the incoming database queries and selects a best join order based on join selectivities and based on the join operators, which are already present in the global query plan. As per the first and the second scenario, the batch query optimizer module 214 associated with the DATAPATH system adds only the single join operator for the new database query despite of having already three join operators in the global query plan. In an implementation, during the global plan construction process, a dynamic programming (DP) algorithm that prunes candidate query plans is used. FIG.8 is a block diagram that depicts an exemplary implementation of a shared execution in a TPC-DS schema, in accordance with an embodiment of the present disclosure. FIG. 8 is described in conjunction with elements of FIGs. 2, 3, 4A, 4B, 6A,6B, 7A and 7B. With reference to FIG. 8, there is shown a block diagram 800 that depicts an exemplary implementation of a shared execution in a TPC-DS schema, which includes processing of database queries involving common subexpressions by a data agnostic optimizer. In such example, four database queries, such as a first query Q1, a second query Q2, a third query Q3 and a fourth query Q4 are requested to the database query engine 204 (of FIG. 2). Furthermore, for execution of the plurality of database queries 208 (of FIG. 2), a store sales table (ss), an item table (i), a store table (s) and a dimensions table (d) are joined through shared join operators (⋈) as shown in FIG.8. In such scenario, each database query shares a common subexpression, such as “ss join d”. Moreover, during execution of the first query Q1, the second query Q2, the third query Q3 and the fourth query Q4, the data agnostic optimizer produces a plan, which maximizes sharing at the cost of an expensive exchange operator. FIG. 9 is a block diagram that depicts an exemplary implementation to demonstrate an advantage of replicated and partitioned relations, in accordance with an embodiment of the present disclosure. FIG.9 is described in conjunction with elements of FIGs.2, 3, 4A, 4B, 6A, 6B, 7A, 7B and 8. With reference to FIG.9, there is shown a block diagram 900 that depicts an exemplary implementation which demonstrates an advantage of replicated and partitioned relations, which includes processing of two replicas of one table during shared execution of database queries by a batch query optimizer. In such example, the batch query optimizer module 212 (of FIG. 2) shuffles the plurality of database queries 208 (of FIG.2) and joins tables such as “item” (i), “store” (s), “dimensions” (d) and partitions of “stored sales” (ss) table by performing shared join operations (⋈) as shown in FIG.9 to execute the database queries such as a first query Q1, a second query Q2, a third query Q3 and a fourth query Q4. In an implementation, shared execution occurs between the first query Q1 and the second query Q2 and between the third query Q3 and the fourth query Q4. In an implementation, the store sales (ss) table has two replicas, in which each replica is partitioned on different attributes, such as “ss_item_sk” and “ss_store_sk” respectively. The batch query optimizer module 212 shuffles only the i, s, d tables and the join between the ss table partitioned by item and the ss table partitioned by store takes place locally. The batch query optimizer module 212 takes advantage of the partitioning at a cost of limited sharing. FIG.10 is a block diagram that depicts an embodiment of an architecture of a data placement- aware optimizer, in accordance with an embodiment of the present disclosure. FIG. 10 is described in conjunction with elements of FIGs. 2, 3, 4A, 4B, 6A, 6B, 7A, 7B, 8 and 9. With reference to FIG.10, there is shown a block diagram 1000 that depicts an architecture of a data placement-aware optimizer, which includes a cache 1002, a tuner 1004 and an optimizer 1006. In an implementation, the cache 1002 maintains materialized intermediate results, which are obtained after execution of the database queries. The cache 1002 also contains an information about data partitioning and placement in the database. The information stored in the cache 1002 is sent to the optimizer 1006, which rewrites the database queries in an efficient manner. The optimizer 1006 (or the batch query optimizer module 212 of FIG. 2) rewrites the database queries by substituting a subtree of an execution plan within the plurality of database queries 208 (of FIG.2) with a materialized dataset. In an implementation, the optimizer 1006 gets an information from the cache 1002, rewrites the database queries and integrate the plurality of database queries 208 into the global quey plan 324 (of FIG.3). Further, the tuner 1004 uses a profiling information and speculatively optimizes the database queries and sends a materialized information to the cache 1002. In an implementation, the tuner 1004 uses the optimizer’s 1006 shared cost model to predict an execution time of the plurality of database queries 208 when specific subexpressions are materialized. The tuner 1004 computes an estimated cost of each database query and adds the cost information into the cache 1002. In an implementation, the tuner 1004 is periodically invoked to generate candidate datasets for storing into the cache 1002. FIG. 11 is a block diagram that depicts an algorithm for selecting materialized views, in accordance with an embodiment of the present disclosure. FIG.10 is described in conjunction with elements of FIGs.2, 3, 4A, 4B, 6A, 6B, 7A, 7B, 8, 9 and 10. With reference to FIG.11, there is shown a block diagram 1100 that depicts an algorithm for selecting materialized views which includes operations from 1102 to 1108. The algorithm includes a plurality of operations to select materialized views. At operation 1102, the algorithm finds right candidate plans from a plurality of subplans, which are not covered by materialized views. At operation 1104, the algorithm finds the candidate plans with highest benefit. Further at operation 1106, the algorithm removes cached views with least benefit until there is enough budget in case there is not enough space in the cache 1002 (of FIG. 10). At operation 1108, the algorithm selects the materialized views for storing in the cache 1002. Moreover, if there is enough free space in the cache 1002, then the operation 1108 is followed immediate after the operation 1104. The algorithm provides an advantage of enables better choice of materialization, which is sharing conscious and leads to improved running times during processing of the plurality of database queries 208. Modifications to embodiments of the present disclosure described in the foregoing are possible without departing from the scope of the present disclosure as defined by the accompanying claims. Expressions such as "including", "comprising", "incorporating", "have", "is" used to describe and claim the present disclosure are intended to be construed in a non-exclusive manner, namely allowing for items, components or elements not explicitly described also to be present. Reference to the singular is also to be construed to relate to the plural. The word "exemplary" is used herein to mean "serving as an example, instance or illustration". Any embodiment described as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments or to exclude the incorporation of features from other embodiments. The word "optionally" is used herein to mean "is provided in some embodiments and not provided in other embodiments". It is appreciated that certain features of the present disclosure, which are, for clarity, described in the context of separate embodiments, may also be provided in combination in a single embodiment. Conversely, various features of the present disclosure, which are, for brevity, described in the context of a single embodiment, may also be provided separately or in any suitable combination or as suitable in any other described embodiment of the disclosure.
Claims
CLAIMS 1. A method (100) of processing a plurality of database queries (208) at a database query engine (204, 302) comprising the steps of: receiving the plurality of database queries (208) from one or more requesters (206) into the database query engine (204, 302); parsing each one of the plurality of the database queries (208) using an SQL parser module (308) of the database query engine (204, 302); creating an abstract syntax tree (320) for each query of the plurality of the database queries (208); creating a modified version of the abstract syntax tree (320) for each query of the plurality of the database queries (208) using a logical planner module (214, 310) of the database query engine (204, 302), where the logical planner module (214, 310) receives an input from a batch query optimizer module (212, 312), resulting in the creation of a global query plan (324) corresponding to the plurality of the database queries (208), where the batch query optimizer module (212, 312) reorders the queries in the plurality of the database queries (208) using an overlap graph which is formed by creating a vertex for each query in the plurality of the database queries (208) and adding a directed edge between each pair of vertices, where the directed edge is assigned a weighting in accordance with a degree of commonality or overlap between data sources associated with the two queries corresponding to the pair of vertices; inputting the global query plan (324) to a distributed planner module (216, 314), an execution planner module (218, 316) and a scheduler module (220, 318), each being modules of the database query engine (204, 302), to create an execution plan (326) for execution of the plurality of the database queries (208) in accordance with the global query plan (324); and executing the plurality of the database queries (208) according to the execution plan (326) using a plurality of shared operators (222, 328), where a shared operator operates on data from a datasource (224, 330) by performing an operation on such data for a plurality of queries which are each associated with data from the data source (224, 330).
2. The method (100) of claim 1 wherein the method (100) further includes the step of running a topological sort on the overlap graph to derive the reordering of the queries in the plurality of the database queries (208).
3. The method (100) of claim 1 wherein a first shared operator is a shared scan operator.
4. The method (100) of claim 3 wherein a second shared operator is a shared filter operator, where the shared filter operator receives data from a data source (224, 330) which has been scanned by the shared scan operator.
5. The method (100) of claim 4 wherein the shared filter operator examines each data tuple obtained from the data source (224, 330) via the shared scan operator and determines whether each data tuple satisfies respective conditions for each query, and annotates each data tuple with an identifier of the respective query whose conditions are satisfied for that data tuple.
6. The method (100) of claim 5 wherein a third shared operator is a shared join operator which receives an output from each of a plurality of shared filter operators, each shared filter operator operating on a respective data source which has been scanned by a respective shared scan operator.
7. The method (100) of claim 6 wherein a fourth shared operator is a router operator which routes an output of the shared join operator to a requester which has sent the respective query to the database query engine (204, 302).
8. The method (100) of claim 7 wherein the router operator sends a tuple to multiple downstream operators.
9. The method (100) of claim 8 wherein at least one of the multiple downstream operators is a shared operator.
10. The method (100) of claim 7 wherein the router operator operates according to an operational model where, for each subtree, there is a single producer while a number of consumers is equal to a number of downstream operators.
11. The method (100) of claim 6 wherein the shared join operator supports query set processing semantics where all pages both in a build and probe side of the join operator contain query set blocks.
12. The method (100) of claim 1 wherein the global query plan (324) is created based on a cost-based optimisation algorithm.
13. The method (100) of claim 1 wherein a shared operator computation is pre-computed and stored in a cache.
14. The method (100) of claim 4 wherein the shared filter operator uses a grouped filter per attribute to store predicates.
15. The method (100) of claim 14 wherein an intersection of a plurality of grouped filters is calculated to obtain an output of the shared filter operator which is a query set that is satisfied by a specific input tuple.
16. A system (202) comprising means adapted for carrying out all the steps of the method (100) according to any preceding method claim.
17. A computer program comprising instructions for carrying out all the steps of the method (100) according to any preceding method claim, when said computer program is executed on a computer system.
Citation Information
Patent Citations
Dynamically Sharing A Subtree Of Operators In A Data Stream Management System Operating On Existing Queries
US20090106189A1
Implementing contract-based polymorphic and parallelizable SQL user-defined scalar and aggregate functions
US20170193054A1
Query plan generation and execution in a relational database management system with a temporal-relational database
WO2018197084A1
Cited By
Multi-source data query analysis method, query engine, electronic equipment and storage medium
CN120336371A
