mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 15:47:23 -04:00
Add support for the string manipulation function REPEAT(string, number). This function concatenates the string argument with itself the specified number of times. If number is 0 an empty string is returned. If number is less than 0, null is returned and a warning is logged. If number is less than 0 and is a constant, the query will fail without executing.
48 lines
1.1 KiB
Text
48 lines
1.1 KiB
Text
[[esql-string-functions]]
|
|
==== {esql} string functions
|
|
|
|
++++
|
|
<titleabbrev>String functions</titleabbrev>
|
|
++++
|
|
|
|
{esql} supports these string functions:
|
|
|
|
// tag::string_list[]
|
|
* <<esql-concat>>
|
|
* <<esql-ends_with>>
|
|
* <<esql-from_base64>>
|
|
* <<esql-left>>
|
|
* <<esql-length>>
|
|
* <<esql-locate>>
|
|
* <<esql-ltrim>>
|
|
* <<esql-repeat>>
|
|
* <<esql-replace>>
|
|
* <<esql-right>>
|
|
* <<esql-rtrim>>
|
|
* <<esql-split>>
|
|
* <<esql-starts_with>>
|
|
* <<esql-substring>>
|
|
* <<esql-to_base64>>
|
|
* <<esql-to_lower>>
|
|
* <<esql-to_upper>>
|
|
* <<esql-trim>>
|
|
// end::string_list[]
|
|
|
|
include::layout/concat.asciidoc[]
|
|
include::layout/ends_with.asciidoc[]
|
|
include::layout/from_base64.asciidoc[]
|
|
include::layout/left.asciidoc[]
|
|
include::layout/length.asciidoc[]
|
|
include::layout/locate.asciidoc[]
|
|
include::layout/ltrim.asciidoc[]
|
|
include::layout/repeat.asciidoc[]
|
|
include::layout/replace.asciidoc[]
|
|
include::layout/right.asciidoc[]
|
|
include::layout/rtrim.asciidoc[]
|
|
include::layout/split.asciidoc[]
|
|
include::layout/starts_with.asciidoc[]
|
|
include::layout/substring.asciidoc[]
|
|
include::layout/to_base64.asciidoc[]
|
|
include::layout/to_lower.asciidoc[]
|
|
include::layout/to_upper.asciidoc[]
|
|
include::layout/trim.asciidoc[]
|