Invention Publication
- Patent Title: PRUNING TECHNIQUES FOR PROCESSING TOP K QUERIES
-
Application No.: US18534382Application Date: 2023-12-08
-
Publication No.: US20240168953A1Publication Date: 2024-05-23
- Inventor: Max Heimel , Ismail Oukid , Linnea Passing , Stefan Richter , Juliane K. Waack
- Applicant: Snowflake Inc.
- Applicant Address: US MT Bozeman
- Assignee: Snowflake Inc.
- Current Assignee: Snowflake Inc.
- Current Assignee Address: US MT Bozeman
- Main IPC: G06F16/2455
- IPC: G06F16/2455 ; G06F16/2457

Abstract:
A top K query directed at a table is received. The table is organized into multiple storage units. The top K query comprises a first clause to sort a result set in order and a second clause that specifies a limit on a number of results provided in response to the query. A table scan operator identifies a first set of rows from the table based on a scan set determined for the table and provides the first set of rows to a top K operator. The top K operator determines a current boundary based on the first set of rows and provides the current boundary to the table scan operator. The table scan operator prunes the scan set based on the current boundary and identifies a second set of rows from the table based on the pruning.
Information query