Skip to content

Commit

Permalink
Incorporate changes from elastic#103686
Browse files Browse the repository at this point in the history
  • Loading branch information
abdonpijpelink committed Jan 15, 2024
1 parent 67bb520 commit 0d2dfe1
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/reference/esql/functions/left.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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`::
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/esql/functions/length.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

[source,esql]
----
LENGTH(string)
LENGTH(str)
----

*Parameters*

`string`::
`str`::
String expression. If `null`, the function returns `null`.

*Description*
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/esql/functions/mv_avg.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand All @@ -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*

Expand Down
6 changes: 3 additions & 3 deletions docs/reference/esql/functions/mv_median.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand All @@ -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*

Expand Down
7 changes: 3 additions & 4 deletions docs/reference/esql/functions/mv_sum.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand All @@ -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*

Expand Down
4 changes: 4 additions & 0 deletions docs/reference/esql/functions/replace.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/esql/functions/right.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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`::
Expand Down
4 changes: 4 additions & 0 deletions docs/reference/esql/functions/round.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 4 additions & 0 deletions docs/reference/esql/functions/split.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
6 changes: 5 additions & 1 deletion docs/reference/esql/functions/substring.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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*

Expand Down

0 comments on commit 0d2dfe1

Please sign in to comment.