Skip to content

Commit

Permalink
Extra docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nik9000 committed Aug 22, 2023
1 parent 6b72f3e commit 8b8d633
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docs/reference/esql/functions/greatest.asciidoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[[esql-greatest]]
=== `GREATEST`

Returns the maximum value from many columns.
Returns the maximum value from many columns. This is similar to <<esql-mv_max>>
except it's intended to run on multiple columns at once.

[source.merge.styled,esql]
----
Expand All @@ -13,4 +14,5 @@ include::{esql-specs}/math.csv-spec[tag=greatest-result]
|===

NOTE: When run on `keyword` or `text` fields, this'll return the last string
in alphabetical order.
in alphabetical order. When run on `boolean` columns this will return
`true` if any values are true.
6 changes: 4 additions & 2 deletions docs/reference/esql/functions/least.asciidoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[[esql-least]]
=== `LEAST`

Returns the minimum value from many columns.
Returns the minimum value from many columns. This is similar to <<esql-mv_min>>
except it's intended to run on multiple columns at once.

[source.merge.styled,esql]
----
Expand All @@ -13,4 +14,5 @@ include::{esql-specs}/math.csv-spec[tag=least-result]
|===

NOTE: When run on `keyword` or `text` fields, this'll return the first string
in alphabetical order.
in alphabetical order. When run on `boolean` columns this will return
`true` if any values are true.

0 comments on commit 8b8d633

Please sign in to comment.