mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 18:03:32 -04:00
* Break out 'Limitations' into separate page * Add REST API docs * Restructure commands, functions, and operators refs * Add placeholder for getting started guide * Group 'Syntax', 'Metafields', and 'MV fields' under 'Language' * Add placeholder for Kibana page * Add link from landing page * Apply uniform formatting to ACOS, CASE, and DATE_PARSE function refs * Reword default LIMIT * Add support for COUNT(*) * Move 'Commands' and 'Functions and operators' to individual pages --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
25 lines
702 B
Text
25 lines
702 B
Text
[discrete]
|
|
[[esql-least]]
|
|
=== `LEAST`
|
|
[.text-center]
|
|
image::esql/functions/signature/least.svg[Embedded,opts=inline]
|
|
|
|
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]
|
|
----
|
|
include::{esql-specs}/math.csv-spec[tag=least]
|
|
----
|
|
[%header.monospaced.styled,format=dsv,separator=|]
|
|
|===
|
|
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. When run on `boolean` columns this will return
|
|
`false` if any values are `false`.
|
|
|
|
Supported types:
|
|
|
|
include::types/least.asciidoc[]
|