NGRAM_SEARCH (Lakehouse v2)
基于 n-gram 匹配返回两个字符串之间的相似度得分。
Analyze 语法
Section titled “Analyze 语法”func.ngram_search(<str1>, <str2>, <n>)Analyze 示例
Section titled “Analyze 示例”func.ngram_search('StarRocks', 'Starrocks', 4)
┌─────┐│ 0.5 │└─────┘SQL 语法
Section titled “SQL 语法”NGRAM_SEARCH(<str1>, <str2>, <n>)SQL 示例
Section titled “SQL 示例”SELECT NGRAM_SEARCH('StarRocks', 'Starrocks', 4);
┌─────┐│ 0.5 │└─────┘