CPC G06F 16/24542 (2019.01) | 20 Claims |
1. A computer-implemented method for compiling a query, wherein the query is a declarative database query, the method comprising:
performing query compilation operations comprising:
receiving a physical plan for the query from a first software module, the physical plan comprising one or more data sources, a plan flow, and one or more annotations (which are metadata for guiding downstream compilation or execution stages) stored as respective fields of a plan data structure; and
instructing a second software module to determine an execution plan for the physical plan; and
outputting the execution plan for execution by an execution engine to obtain results for the query.
|