[ES|QL] Update length docs (#116734)

ESQL Update length docs (#116734)
This commit is contained in:
Gal Lalouche 2024-11-14 13:14:43 +02:00 committed by GitHub
parent 6b7751d65f
commit 591cd591ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,7 @@
}
],
"examples" : [
"FROM airports\n| KEEP city\n| EVAL fn_length = LENGTH(first_name)"
"FROM airports\n| WHERE country == \"India\"\n| KEEP city\n| EVAL fn_length = LENGTH(city)"
],
"preview" : false,
"snapshot_only" : false

View File

@ -7,7 +7,8 @@ Returns the character length of a string.
```
FROM airports
| WHERE country == "India"
| KEEP city
| EVAL fn_length = LENGTH(first_name)
| EVAL fn_length = LENGTH(city)
```
Note: All strings are in UTF-8, so a single character can use multiple bytes.