mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 23:57:20 -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.
15 lines
406 B
Text
Generated
15 lines
406 B
Text
Generated
// This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.
|
|
|
|
[discrete]
|
|
[[esql-repeat]]
|
|
=== `REPEAT`
|
|
|
|
*Syntax*
|
|
|
|
[.text-center]
|
|
image::esql/functions/signature/repeat.svg[Embedded,opts=inline]
|
|
|
|
include::../parameters/repeat.asciidoc[]
|
|
include::../description/repeat.asciidoc[]
|
|
include::../types/repeat.asciidoc[]
|
|
include::../examples/repeat.asciidoc[]
|