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

533 B

% This is generated by ESQL's AbstractFunctionTestCase. Do no 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. ::::