US 12,292,887 B2
Columnar cache query using hybrid query execution plan
Xiaobin Ma, Fremont, CA (US); Xun Cheng, Dublin, CA (US); Viral Shah, Cupertino, CA (US); and Anjan Kumar Amirishetty, Fremont, CA (US)
Assigned to Google LLC, Mountain View, CA (US)
Filed by Google LLC, Mountain View, CA (US)
Filed on Aug. 24, 2023, as Appl. No. 18/237,490.
Application 18/237,490 is a continuation of application No. 17/521,213, filed on Nov. 8, 2021, granted, now 11,782,921.
Prior Publication US 2023/0401209 A1, Dec. 14, 2023
This patent is subject to a terminal disclaimer.
Int. Cl. G06F 16/2452 (2019.01); G06F 16/245 (2019.01); G06F 16/2453 (2019.01); G06F 16/2455 (2019.01)
CPC G06F 16/24542 (2019.01) [G06F 16/24524 (2019.01); G06F 16/24552 (2019.01)] 16 Claims
OG exemplary drawing
 
1. A system comprising:
one or more hardware processors configured to:
receive a query for data in a columnar cache, the columnar cache comprising one or more columns of data of tables of a database, each column comprising one or more blocks of data;
generate, after receiving the query, a hybrid query execution plan comprising:
a first data structure of nodes and directed links for a first sub-execution plan, wherein the first sub-execution plan comprises one or more first operations to scan valid blocks in the columnar cache; and
a second data structure of nodes and directed links for a second sub-execution plan, wherein the second sub-execution plan comprising one or more second operations to scan invalidated blocks in the columnar cache,
wherein each node of the first and second data structures represents one or more respective operations of a sub-execution plan and each directed link of the first and second data structures connects a respective first node to a respective second node, the respective first node representing one or more first node operations performed before one or more second node operations represented by the respective second node during execution of the sub-execution plan, and
execute the received query in the columnar cache based on the generated hybrid query execution plan.