elasticsearch/docs/reference/esql/functions/layout/max.asciidoc
Iván Cea Fontenla 5d3512fb33
ESQL: Fix Max doubles bug with negatives and add tests for Max and Min (#110586)
`MAX()` currently doesn't work with doubles smaller than
`Double.MIN_VALUE` (Note that `Double.MIN_VALUE` returns the smallest
non-zero positive, not the smallest double).

This PR adds tests for Max and Min, and fixes the bug (Detected by the
tests).

Also, as the tests now generate the docs, replaced the old docs with the
generated ones, and updated the Max&Min examples.
2024-07-09 21:05:00 +10:00

15 lines
385 B
Text
Generated

// This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.
[discrete]
[[esql-max]]
=== `MAX`
*Syntax*
[.text-center]
image::esql/functions/signature/max.svg[Embedded,opts=inline]
include::../parameters/max.asciidoc[]
include::../description/max.asciidoc[]
include::../types/max.asciidoc[]
include::../examples/max.asciidoc[]