diff --git a/docs/reference/esql/functions/left.asciidoc b/docs/reference/esql/functions/left.asciidoc index 1eeadbdd8971f..29ec6b0691614 100644 --- a/docs/reference/esql/functions/left.asciidoc +++ b/docs/reference/esql/functions/left.asciidoc @@ -9,7 +9,7 @@ image::esql/functions/signature/left.svg[Embedded,opts=inline] *Parameters* -`string`:: +`str`:: The string from which to returns a substring. `length`:: diff --git a/docs/reference/esql/functions/length.asciidoc b/docs/reference/esql/functions/length.asciidoc index b86cc608a6f57..b89b75a702460 100644 --- a/docs/reference/esql/functions/length.asciidoc +++ b/docs/reference/esql/functions/length.asciidoc @@ -6,12 +6,12 @@ [source,esql] ---- -LENGTH(string) +LENGTH(str) ---- *Parameters* -`string`:: +`str`:: String expression. If `null`, the function returns `null`. *Description* diff --git a/docs/reference/esql/functions/mv_avg.asciidoc b/docs/reference/esql/functions/mv_avg.asciidoc index 1054c618526c1..2e5cb410c2b58 100644 --- a/docs/reference/esql/functions/mv_avg.asciidoc +++ b/docs/reference/esql/functions/mv_avg.asciidoc @@ -6,12 +6,12 @@ [source,esql] ---- -MV_AVG(column) +MV_AVG(field) ---- *Parameters* -`column`:: +`field`:: Column to convert from multiple values to single value. *Description* @@ -21,7 +21,7 @@ of all of the values. *Supported types* -The output type is always a `double` and the input type can be any number. +include::types/mv_avg.asciidoc[] *Example* diff --git a/docs/reference/esql/functions/mv_median.asciidoc b/docs/reference/esql/functions/mv_median.asciidoc index 252b83da436b7..ee26128c7144d 100644 --- a/docs/reference/esql/functions/mv_median.asciidoc +++ b/docs/reference/esql/functions/mv_median.asciidoc @@ -4,12 +4,12 @@ [source,esql] ---- -MV_MEDIAN(column) +MV_MEDIAN(v) ---- *Parameters* -`column`:: +`v`:: Column to convert from multiple values to single value. *Description* @@ -19,7 +19,7 @@ value. *Supported types* -It can be used by any numeric column type and returns a value of the same type. +include::types/mv_median.asciidoc[] *Examples* diff --git a/docs/reference/esql/functions/mv_sum.asciidoc b/docs/reference/esql/functions/mv_sum.asciidoc index bdada247ae558..9bff70d98feb3 100644 --- a/docs/reference/esql/functions/mv_sum.asciidoc +++ b/docs/reference/esql/functions/mv_sum.asciidoc @@ -4,12 +4,12 @@ [source,esql] ---- -MV_SUM(column) +MV_SUM(v) ---- *Parameters* -`column`:: +`v`:: Column to convert from multiple values to single value. *Description* @@ -19,8 +19,7 @@ of all of the values. *Supported types* -The input type can be any number and the output type is the same as the input -type. +include::types/mv_sum.asciidoc[] *Example* diff --git a/docs/reference/esql/functions/replace.asciidoc b/docs/reference/esql/functions/replace.asciidoc index a0ae7e053b431..a0fc02832941e 100644 --- a/docs/reference/esql/functions/replace.asciidoc +++ b/docs/reference/esql/functions/replace.asciidoc @@ -25,6 +25,10 @@ expression (2nd argument) with the replacement string (3rd argument). If any of the arguments is `null`, the result is `null`. +*Supported types* + +include::types/replace.asciidoc[] + *Example* This example replaces any occurrence of the word "World" with the word diff --git a/docs/reference/esql/functions/right.asciidoc b/docs/reference/esql/functions/right.asciidoc index cb119138071f7..5e8e9aaf5034f 100644 --- a/docs/reference/esql/functions/right.asciidoc +++ b/docs/reference/esql/functions/right.asciidoc @@ -9,7 +9,7 @@ image::esql/functions/signature/right.svg[Embedded,opts=inline] *Parameters* -`string`:: +`str`:: The string from which to returns a substring. `length`:: diff --git a/docs/reference/esql/functions/round.asciidoc b/docs/reference/esql/functions/round.asciidoc index c74d88e19554e..7f1285e85f664 100644 --- a/docs/reference/esql/functions/round.asciidoc +++ b/docs/reference/esql/functions/round.asciidoc @@ -20,6 +20,10 @@ Rounds a number to the closest number with the specified number of digits. Defaults to 0 digits if no number of digits is provided. If the specified number of digits is negative, rounds to the number of digits left of the decimal point. +*Supported types* + +include::types/round.asciidoc[] + *Example* [source.merge.styled,esql] diff --git a/docs/reference/esql/functions/split.asciidoc b/docs/reference/esql/functions/split.asciidoc index 83751af9d1196..0a4ce584d01da 100644 --- a/docs/reference/esql/functions/split.asciidoc +++ b/docs/reference/esql/functions/split.asciidoc @@ -17,6 +17,10 @@ Delimiter. Only single byte delimiters are currently supported. Splits a single valued string into multiple strings. +*Supported types* + +include::types/split.asciidoc[] + *Example* [source.merge.styled,esql] diff --git a/docs/reference/esql/functions/substring.asciidoc b/docs/reference/esql/functions/substring.asciidoc index cf181dac38024..0e5af50e6cf2b 100644 --- a/docs/reference/esql/functions/substring.asciidoc +++ b/docs/reference/esql/functions/substring.asciidoc @@ -21,7 +21,11 @@ Length. *Description* Returns a substring of a string, specified by a start position and an optional -length. +length. + +*Supported types* + +include::types/substring.asciidoc[] *Examples*