v.24.6New Feature

Add editDistanceUTF8 function for calculating edit distance between UTF8 strings

Add new function editDistanceUTF8, which calculates the edit distance between two UTF8 strings. #65269 (LiuNeng).
Introduces a new function editDistanceUTF8 that calculates the edit distance between two UTF8 strings.

Why it matters

This feature provides a way to measure the similarity between two UTF8-encoded strings by calculating the minimum number of single-character edits (insertions, deletions, or substitutions) needed to transform one string into the other. It is useful for fuzzy matching, error detection, and text comparison tasks.

How to use it

Use the function by calling editDistanceUTF8(string1, string2) in your queries where string1 and string2 are UTF8-encoded strings you want to compare.