Skip to content

Commit

Permalink
[DOCS] Some minor ES|QL docs fixes (#99423)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdonpijpelink authored Sep 11, 2023
1 parent e386a3f commit 91759ce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/reference/esql/functions/auto_bucket.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/esql/functions/pow.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 91759ce

Please sign in to comment.