diff --git a/docs/reference/esql/functions/kibana/definition/length.json b/docs/reference/esql/functions/kibana/definition/length.json index 9ea340ebf7420..bc26acde744f5 100644 --- a/docs/reference/esql/functions/kibana/definition/length.json +++ b/docs/reference/esql/functions/kibana/definition/length.json @@ -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 diff --git a/docs/reference/esql/functions/kibana/docs/length.md b/docs/reference/esql/functions/kibana/docs/length.md index ce7726d092bae..aed76ee14cedb 100644 --- a/docs/reference/esql/functions/kibana/docs/length.md +++ b/docs/reference/esql/functions/kibana/docs/length.md @@ -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.