Invention Grant
- Patent Title: RLE-aware optimization of SQL queries
- Patent Title (中): RLE感知SQL查询优化
-
Application No.: US13248536Application Date: 2011-09-29
-
Publication No.: US09171041B1Publication Date: 2015-10-27
- Inventor: Sivaramakrishnan Narayanan , Florian Michael Waas
- Applicant: Sivaramakrishnan Narayanan , Florian Michael Waas
- Applicant Address: US CA Palo Alto
- Assignee: Pivotal Software, Inc.
- Current Assignee: Pivotal Software, Inc.
- Current Assignee Address: US CA Palo Alto
- Agency: Fish & Richardson P.C.
- Main IPC: G06F17/30
- IPC: G06F17/30

Abstract:
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.
Information query