NGRAM_SEARCH (Lakehouse v2)
Returns a similarity score between two strings based on n-gram matching.
Analyze Syntax
Section titled “Analyze Syntax”func.ngram_search(<str1>, <str2>, <n>)Analyze Examples
Section titled “Analyze Examples”func.ngram_search('StarRocks', 'Starrocks', 4)
┌─────┐│ 0.5 │└─────┘SQL Syntax
Section titled “SQL Syntax”NGRAM_SEARCH(<str1>, <str2>, <n>)SQL Examples
Section titled “SQL Examples”SELECT NGRAM_SEARCH('StarRocks', 'Starrocks', 4);
┌─────┐│ 0.5 │└─────┘