Browse Source

[DOCS] Some minor ES|QL docs fixes (#99423)

Abdon Pijpelink 2 years ago
parent
commit
91759ce592

+ 1 - 1
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
 

+ 1 - 1
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]
 ----

+ 6 - 3
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