mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 15:47:23 -04:00
`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.
15 lines
385 B
Text
Generated
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-min]]
|
|
=== `MIN`
|
|
|
|
*Syntax*
|
|
|
|
[.text-center]
|
|
image::esql/functions/signature/min.svg[Embedded,opts=inline]
|
|
|
|
include::../parameters/min.asciidoc[]
|
|
include::../description/min.asciidoc[]
|
|
include::../types/min.asciidoc[]
|
|
include::../examples/min.asciidoc[]
|