Invention Grant
- Patent Title: Query plan generation for common table expressions
- Patent Title (中): 普通表表达式的查询计划生成
-
Application No.: US14336957Application Date: 2014-07-21
-
Publication No.: US09589030B1Publication Date: 2017-03-07
- Inventor: Amr El-Helw , Venkatesh Raghavan , Mohamed F. Soliman , George Constantin Caragea , Michail Petropoulos
- Applicant: Pivotal Software, Inc.
- Applicant Address: US CA San Francisco
- Assignee: Pivotal Software, Inc.
- Current Assignee: Pivotal Software, Inc.
- Current Assignee Address: US CA San Francisco
- Agency: Fish & Richardson P.C.
- Main IPC: G06F17/30
- IPC: G06F17/30

Abstract:
Methods, systems, and apparatus, including computer programs encoded on computer storage media, for generating query plans for queries that include common table expressions. One of the methods includes receiving a query that includes a common table expression (CTE), wherein the CTE signifies that a system can compute a result for the query using a query plan that includes a CTE producer operator and a corresponding CTE consumer operator. A first query plan that includes a CTE producer operator and a corresponding CTE consumer operator and a second query plan that inlines an instance of the CTE consumer operator are generated. Respective costs are computed for the first query plan and the second query plan, and a result for the query is computed using the second query plan if the second query plan has a lower cost.
Information query