mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 01:44:36 -04:00
This improves the tests and docs for a few functions, specifically `E`, `FLOOR`, `PI`, `POW`, and `ROUND`. The examples and tested signatures will get copied into the docs and kibana signatures. Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
23 lines
682 B
Text
Generated
23 lines
682 B
Text
Generated
// This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.
|
|
|
|
*Examples*
|
|
|
|
[source.merge.styled,esql]
|
|
----
|
|
include::{esql-specs}/math.csv-spec[tag=powDI]
|
|
----
|
|
[%header.monospaced.styled,format=dsv,separator=|]
|
|
|===
|
|
include::{esql-specs}/math.csv-spec[tag=powDI-result]
|
|
|===
|
|
The exponent can be a fraction, which is similar to performing a root.
|
|
For example, the exponent of `0.5` will give the square root of the base:
|
|
[source.merge.styled,esql]
|
|
----
|
|
include::{esql-specs}/math.csv-spec[tag=powID-sqrt]
|
|
----
|
|
[%header.monospaced.styled,format=dsv,separator=|]
|
|
|===
|
|
include::{esql-specs}/math.csv-spec[tag=powID-sqrt-result]
|
|
|===
|
|
|