Systems and methods for transforming SQL syntax trees into relational algebra representations
First Claim
1. A method for algebrizing a syntax tree representation of a relational database query into a relational algebra representation, said syntax tree comprising a plurality of nodes, and said algebrizing comprising a plurality of operations each of which can be performed in a single pass through said syntax tree representation, said method comprising the step of performing at least two operations in a single pass through said syntax tree representation.
3 Assignments
0 Petitions
Accused Products
Abstract
The SQL Algebrizer of the present invention comprises a plurality of algorithms to “algebrize” SQL Trees to QP Algebra using an approach that is more consistent and much more efficient than typical algebrizers. More specifically, the Algebrizer of the present invention processes a SQL Tree using a reduced number of recursive depth-first passes by performing multiple operations in a single pass. Furthermore, the Algebrizer of the present invention also performs the operation of constant folding in this single, multi-operation pass so that the QP, upon receiving the QP Algebra, needs not perform this operation at all.
-
Citations
30 Claims
- 1. A method for algebrizing a syntax tree representation of a relational database query into a relational algebra representation, said syntax tree comprising a plurality of nodes, and said algebrizing comprising a plurality of operations each of which can be performed in a single pass through said syntax tree representation, said method comprising the step of performing at least two operations in a single pass through said syntax tree representation.
-
10. A method for algebrizing a syntax tree representation of a relational database query into a relational algebra representation, said syntax tree comprising a plurality of nodes, and said algebrizing comprising a plurality of operations, said method comprising the inclusion of constant folding as an operation among said plurality of operations.
-
11. A system for algebrizing a syntax tree representation of a relational database query into a relational algebra representation, said syntax tree comprising a plurality of nodes, said system comprising:
-
a plurality of operations; and
a subsystem for performing at least two operations in a single pass through said syntax tree representation. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. A system for algebrizing a syntax tree representation of a relational database query into a relational algebra representation, said syntax tree comprising a plurality of nodes, said system comprising:
-
a plurality of operations; and
constant folding as an operation among said plurality of operations.
-
-
21. A computer-readable medium comprising computer-readable instructions for algebrizing a syntax tree representation of a relational database query into a relational algebra representation, said syntax tree comprising a plurality of nodes, and said algebrizing comprising a plurality of operations each of which can be performed in a single pass through said syntax tree representation, said computer-readable instructions comprising instructions for performing at least two operations in a single pass through said syntax tree representation.
-
30. A computer-readable medium comprising computer-readable instructions for algebrizing a syntax tree representation of a relational database query into a relational algebra representation, said syntax tree comprising a plurality of nodes, and said algebrizing comprising a plurality of operations, said computer-readable instructions comprising instructions for constant folding as an operation among said plurality of operations.
Specification