Merge pull request #55120 from ClickHouse/fix-functions-in-docs

Fix function names in docs
This commit is contained in:
Alexey Milovidov 2023-09-30 00:36:39 +03:00 committed by GitHub
commit 9aaab27373
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 12 deletions

View File

@ -708,7 +708,7 @@ Result:
- Alias: mismatches
## byteJaccardIndex
## jaccardIndex
Calculates the [Jaccard similarity index](https://en.wikipedia.org/wiki/Jaccard_index) between two byte strings.
@ -721,40 +721,39 @@ byteJaccardIndex(string1, string2)
**Examples**
``` sql
SELECT byteJaccardIndex('clickhouse', 'mouse');
SELECT jaccardIndex('clickhouse', 'mouse');
```
Result:
``` text
┌─byteJaccardIndex('clickhouse', 'mouse')─┐
┌─jaccardIndex('clickhouse', 'mouse')─┐
│ 0.4 │
└─────────────────────────────────────────┘
```
## byteEditDistance
## editDistance
Calculates the [edit distance](https://en.wikipedia.org/wiki/Edit_distance) between two byte strings.
**Syntax**
```sql
byteEditDistance(string1, string2)
editDistance(string1, string2)
```
**Examples**
``` sql
SELECT byteEditDistance('clickhouse', 'mouse');
SELECT editDistance('clickhouse', 'mouse');
```
Result:
``` text
┌─byteEditDistance('clickhouse', 'mouse')─┐
┌─editDistance('clickhouse', 'mouse')─┐
│ 6 │
└─────────────────────────────────────────┘
```
- Alias: byteLevenshteinDistance
- Alias: levenshteinDistance

View File

@ -1178,10 +1178,10 @@ builtins
byteSize
bytebase
bytesToCutForIPv
byteEditDistance
editDistance
byteHammingDistance
byteJaccardIndex
byteLevenshteinDistance
jaccardIndex
levenshteinDistance
cLoki
caConfig
cacheSessions