Generating high-performance queries using optimized subqueries
AssigneeSnowflake Inc.
InventorsMohammad Afroz Alam, Jianzhun Du, Yijun Xie
Life of this patent
Estimating the term…
Loading patent…
AssigneeSnowflake Inc.
InventorsMohammad Afroz Alam, Jianzhun Du, Yijun Xie
Estimating the term…
A client system of a computing environment including a data platform is provided that optimizes a database query. The client system creates a logical plan tree for a Structured Query Language (SQL) query, with the logical plan tree comprising a set of nodes. The client system identifies a set of duplicate nodes in the set of nodes of the logical plan tree and identifies a duplicate subtree in the logical plan tree by determining a set of root nodes of the duplicate subtree using parent-child relationships of the set of nodes. The client system generates an optimized query by replacing instances of subqueries represented by the duplicate subtree using a set of optimized subqueries. The client system communicates the optimized query to the data platform for execution.
A machine-implemented method, comprising:
A system comprising:
A machine-storage medium storing instructions that, when executed by one or more processors of a system, cause the system to perform operations comprising:
Dependencies are inferred from the claim text.