RLE-aware optimization of SQL queries
AssigneePivotal Software, Inc.
InventorsSivaramakrishnan Narayanan, Florian Michael Waas
Life of this patent
Estimating the term…
Loading patent…
AssigneePivotal Software, Inc.
InventorsSivaramakrishnan Narayanan, Florian Michael Waas
Estimating the term…
SQL queries are optimized to operate directly on compressed data (and obtain the correct result) rather than requiring that the data be first decompressed prior to processing a query. Certain characteristic pattern trees are mapped against a logical input query plan that includes certain logical operators such as a DECOMPRESS that precedes a JOIN or a GROUPBY in association with a COUNT to identify instances in the plan that match a characteristic pattern. Upon locating a match, the input query plan is transformed into a logically equivalent plan that operates correctly on compressed data, by analyzing the interplay of the semantics of logical query operations with the compressed data and substituting less costly structures and operations. DECOMPRESS operations are moved to operate subsequent to a JOIN or eliminated altogether, and COUNT operations are replaced by a different operation, such as SUM, that is logically equivalent for compressed data.
A computer-implemented method comprising:
A computer program product, encoded on one or more non-transitory computer storage media, comprising instructions that when executed by one or more computers cause the one or more computers to perform operations comprising:
A distributed database system comprising:
Dependencies are inferred from the claim text.