From 91759ce5920b7dcf359e7ae857ab8241743c0eb1 Mon Sep 17 00:00:00 2001 From: Abdon Pijpelink Date: Mon, 11 Sep 2023 16:20:10 +0200 Subject: [PATCH] [DOCS] Some minor ES|QL docs fixes (#99423) --- docs/reference/esql/functions/auto_bucket.asciidoc | 2 +- docs/reference/esql/functions/pow.asciidoc | 2 +- .../qa/testFixtures/src/main/resources/math.csv-spec | 9 ++++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/reference/esql/functions/auto_bucket.asciidoc b/docs/reference/esql/functions/auto_bucket.asciidoc index a61e8365716c5..99364c785a804 100644 --- a/docs/reference/esql/functions/auto_bucket.asciidoc +++ b/docs/reference/esql/functions/auto_bucket.asciidoc @@ -51,7 +51,7 @@ include::{esql-specs}/date.csv-spec[tag=auto_bucket_in_agg-result] |=== NOTE: `AUTO_BUCKET` does not create buckets that don't match any documents. That's -why the example above is missing `1985-02-01` and other dates. +why the example above is missing `1985-03-01` and other dates. ==== Numeric fields diff --git a/docs/reference/esql/functions/pow.asciidoc b/docs/reference/esql/functions/pow.asciidoc index 04ea23f5807ea..1c19e1af579fb 100644 --- a/docs/reference/esql/functions/pow.asciidoc +++ b/docs/reference/esql/functions/pow.asciidoc @@ -59,7 +59,7 @@ include::{esql-specs}/math.csv-spec[tag=powULOverrun-warning] include::{esql-specs}/math.csv-spec[tag=powULOverrun-result] |=== -If it is desired to protect against numerical overruns, use `to_double` on either of the arguments: +If it is desired to protect against numerical overruns, use `TO_DOUBLE` on either of the arguments: [source.merge.styled,esql] ---- diff --git a/x-pack/plugin/esql/qa/testFixtures/src/main/resources/math.csv-spec b/x-pack/plugin/esql/qa/testFixtures/src/main/resources/math.csv-spec index aa4bcac3fc9be..14153f4fc472f 100644 --- a/x-pack/plugin/esql/qa/testFixtures/src/main/resources/math.csv-spec +++ b/x-pack/plugin/esql/qa/testFixtures/src/main/resources/math.csv-spec @@ -995,8 +995,9 @@ i:ul | c:ul | f:ul sqrt // tag::sqrt[] ROW d = 100.0 -| EVAL s = SQRT(d); +| EVAL s = SQRT(d) // end::sqrt[] +; // tag::sqrt-result[] d: double | s:double @@ -1063,8 +1064,9 @@ Infinity | true least // tag::least[] ROW a = 10, b = 20 -| EVAL l = LEAST(a, b); +| EVAL l = LEAST(a, b) // end::least[] +; // tag::least-result[] a:integer | b:integer | l:integer @@ -1090,8 +1092,9 @@ l:integer greatest // tag::greatest[] ROW a = 10, b = 20 -| EVAL g = GREATEST(a, b); +| EVAL g = GREATEST(a, b) // end::greatest[] +; // tag::greatest-result[] a:integer | b:integer | g:integer