Prefix functions in the RapidFuzz DuckDB extension
Function category
Prefix
4 functionsEdit distance / similarity considering only the matching prefix portion of the strings.
Signature
rapidfuzz_prefix_distance(col0: VARCHAR, col1: VARCHAR) → DOUBLE
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
col0
|
Type
VARCHAR
|
Mode Positional | Description |
Argument
col1
|
Type
VARCHAR
|
Mode Positional | Description |
Description
Edit distance considering only matching prefixes. Raw count of edits required.
Signature
rapidfuzz_prefix_normalized_distance(col0: VARCHAR, col1: VARCHAR) → DOUBLE
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
col0
|
Type
VARCHAR
|
Mode Positional | Description |
Argument
col1
|
Type
VARCHAR
|
Mode Positional | Description |
Description
Edit distance considering only matching prefixes. Edit distance scaled to [0, 1] — 0 means identical.
Signature
rapidfuzz_prefix_normalized_similarity(col0: VARCHAR, col1: VARCHAR) → DOUBLE
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
col0
|
Type
VARCHAR
|
Mode Positional | Description |
Argument
col1
|
Type
VARCHAR
|
Mode Positional | Description |
Description
Edit distance considering only matching prefixes. Similarity scaled to [0, 1] — 1 means identical.
Signature
rapidfuzz_prefix_similarity(col0: VARCHAR, col1: VARCHAR) → DOUBLE
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
col0
|
Type
VARCHAR
|
Mode Positional | Description |
Argument
col1
|
Type
VARCHAR
|
Mode Positional | Description |
Description
Edit distance considering only matching prefixes. Raw count of matches.