Runtime pruning for top K queries
AssigneeSnowflake Inc.
InventorsJonathan Christian Nitisastro, Zhaohui Zhang
Life of this patent
Estimating the term…
Loading patent…
AssigneeSnowflake Inc.
InventorsJonathan Christian Nitisastro, Zhaohui Zhang
Estimating the term…
A top K query directed at a table is received. Run-time pruning is performed during execution of the top K query on the table. The run-time pruning comprises determining, by a top K node, a current boundary based on a set of values identified by a table scan node in scanning the table and applying, by the table scan node, the current boundary to prune data during the scanning of the table. The applying of the current boundary comprises reducing scanning ranges of the table scan node based on the top K column being a key column of the table and filtering values scanned by the table scan node based on the top K column being a non-key column of the table. The result set is returned responsive to the top K query based on the run-time pruning performed during execution of the top K query on the table.
A method comprising:
A system comprising:
A computer-storage medium comprising instructions that, when executed by one or more processors of a machine, configure the machine to perform operations comprising:
Dependencies are inferred from the claim text.