Skip to main content
Version: current [25.x]

Categories: String

LEVENSHTEIN

Computes the Levenshtein distance between two input expressions.

Syntax

LEVENSHTEIN(expression1 varchar, expression2 varchar) → int

  • expression1: The first string expression.
  • expression2: The second string expression.

Examples

LEVENSHTEIN example
SELECT LEVENSHTEIN('dremio', 'iceberg')
-- 6