US 11,907,215 B2
Staged query compilation with common data structure
Jaehyok Chong, Seoul (KR); Won Jun Chang, Seoul (KR); Sungguk Lim, Seoul (KR); Youngbin Bok, Seoul (KR); Heesik Shin, Seoul (KR); and Kijoong Kim, Hanam (KR)
Assigned to SAP SE, Walldorf (DE)
Filed by SAP SE, Walldorf (DE)
Filed on Sep. 8, 2021, as Appl. No. 17/469,576.
Prior Publication US 2023/0074090 A1, Mar. 9, 2023
Int. Cl. G06F 16/2453 (2019.01)
CPC G06F 16/24542 (2019.01) 20 Claims
OG exemplary drawing
 
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.