Snowflake Inc.
Pruning index for optimization of pattern matching queries

Last updated:

Abstract:

A query directed at a source table organized into a set of batch units is received. The query includes a pattern matching predicate that specifies a search pattern. A set of N-grams are generated based on the search pattern. A pruning index associated with the source table is accessed. The pruning index comprises a set of filters that index distinct N-grams in each column of the source table. The pruning index is used to identify a subset of batch units to scan for matching data based on the set of N-grams generated for the search pattern. The query is processed by scanning the subset of batch units.

Status:
Grant
Type:

Utility

Filling date:

30 Oct 2020

Issue date:

4 May 2021