Combining nested aggregators
First Claim
Patent Images
1. A method for transforming a query tree that includes more than one aggregator, the method comprising:
- a. identifying a first aggregator in the query tree;
b. identifying a second aggregator that is located below the first aggregator in the query tree; and
c. merging the second aggregator with the first aggregator to form a merged aggregator.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and system for transforming a query tree that includes more than one aggregator. The method includes identifying a first aggregator in the query tree, identifying a second aggregator that is located below the first aggregator in the query tree, and merging the second aggregator with the first aggregator to form a merged aggregator.
30 Citations
20 Claims
-
1. A method for transforming a query tree that includes more than one aggregator, the method comprising:
-
a. identifying a first aggregator in the query tree;
b. identifying a second aggregator that is located below the first aggregator in the query tree; and
c. merging the second aggregator with the first aggregator to form a merged aggregator. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A computer-readable medium having computer-executable instructions for performing a method of transforming a query tree, the method comprising:
-
a. identifying a first aggregator in the query tree;
b. identifying an apply operator having a join type below the first aggregator in the query tree;
c. identifying a second aggregator that is located below the apply operator in the query tree;
d. merging the second aggregator with the first aggregator to form a merged aggregator;
e. changing the join type of the apply operator; and
f. creating a row set that is;
i. configured to be aggregated by the merged aggregator, ii. configured to avoid materialization of intermediate results during aggregation, and iii. configured to allow the merged aggregator to perform streaming aggregation. - View Dependent Claims (13, 14, 15)
-
-
16. A computer database system for executing a database query, the computer database system comprising:
-
a. a database management system that is configured both to receive the database query and to convert the database query into a query tree;
b. wherein;
i. the database management system includes an optimizer that is configured to transform the query tree, ii. the query tree includes;
A. a first aggregator, and B. a second aggregator that is located below the first aggregator, and iii. the optimizer transforms the query tree by merging the second aggregator with the first aggregator to form a merged aggregator. - View Dependent Claims (17, 18, 19, 20)
-
Specification