Snowflake Inc.
PRUNING INDEX GENERATION FOR 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:
Application
Type:

Utility

Filling date:

29 Jul 2021

Issue date:

18 Nov 2021