Back to Elasticsearch

Greatest

docs/reference/query-languages/esql/_snippets/functions/description/greatest.md

9.4.0533 B
Original Source

% This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.

Description

Returns the maximum value from multiple columns. This is similar to MV_MAX except it is intended to run on multiple columns at once.

::::{note} When run on keyword or text fields, this returns the last string in alphabetical order. When run on boolean columns this will return true if any values are true. ::::