Skip to content

Commit

Permalink
Merge branch 'main' into qa-AuditIT
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticmachine committed Aug 29, 2023
2 parents 73de3a4 + c667955 commit eff07a7
Show file tree
Hide file tree
Showing 253 changed files with 4,224 additions and 2,266 deletions.
6 changes: 6 additions & 0 deletions docs/changelog/98038.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 98038
summary: Update enrich execution to only set index false on fields that support it
area: Ingest Node
type: bug
issues:
- 98019
5 changes: 5 additions & 0 deletions docs/changelog/98847.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 98847
summary: "ESQL: Add `CEIL` function"
area: ES|QL
type: enhancement
issues: []
5 changes: 5 additions & 0 deletions docs/changelog/98864.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 98864
summary: "[Profiling] Abort index creation on outdated index"
area: Application
type: bug
issues: []
5 changes: 5 additions & 0 deletions docs/changelog/98878.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 98878
summary: Fix percolator query for stored queries that expand on wildcard field names
area: Percolator
type: bug
issues: []
5 changes: 5 additions & 0 deletions docs/changelog/98942.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 98942
summary: "ESQL: LEFT function"
area: ES|QL
type: feature
issues: []
4 changes: 4 additions & 0 deletions docs/reference/esql/esql-functions.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ these functions:
* <<esql-atan2>>
* <<esql-auto_bucket>>
* <<esql-case>>
* <<esql-ceil>>
* <<esql-cidr_match>>
* <<esql-coalesce>>
* <<esql-concat>>
Expand Down Expand Up @@ -52,6 +53,7 @@ these functions:
* <<esql-split>>
* <<esql-starts_with>>
* <<esql-substring>>
* <<esql-left>>
* <<esql-tan>>
* <<esql-tanh>>
* <<esql-tau>>
Expand All @@ -75,6 +77,7 @@ include::functions/atan.asciidoc[]
include::functions/atan2.asciidoc[]
include::functions/auto_bucket.asciidoc[]
include::functions/case.asciidoc[]
include::functions/ceil.asciidoc[]
include::functions/cidr_match.asciidoc[]
include::functions/coalesce.asciidoc[]
include::functions/concat.asciidoc[]
Expand Down Expand Up @@ -113,6 +116,7 @@ include::functions/split.asciidoc[]
include::functions/sqrt.asciidoc[]
include::functions/starts_with.asciidoc[]
include::functions/substring.asciidoc[]
include::functions/left.asciidoc[]
include::functions/tan.asciidoc[]
include::functions/tanh.asciidoc[]
include::functions/tau.asciidoc[]
Expand Down
7 changes: 7 additions & 0 deletions docs/reference/esql/functions/acos.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[[esql-acos]]
=== `ACOS`
[.text-center]
image::esql/functions/signature/acos.svg[Embedded,opts=inline]

Inverse https://en.wikipedia.org/wiki/Inverse_trigonometric_functions[cosine] trigonometric function.

[source.merge.styled,esql]
Expand All @@ -10,3 +13,7 @@ include::{esql-specs}/floats.csv-spec[tag=acos]
|===
include::{esql-specs}/floats.csv-spec[tag=acos-result]
|===

Supported types:

include::types/acos.asciidoc[]
7 changes: 7 additions & 0 deletions docs/reference/esql/functions/asin.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[[esql-asin]]
=== `ASIN`
[.text-center]
image::esql/functions/signature/asin.svg[Embedded,opts=inline]

Inverse https://en.wikipedia.org/wiki/Inverse_trigonometric_functions[sine] trigonometric function.

[source.merge.styled,esql]
Expand All @@ -10,3 +13,7 @@ include::{esql-specs}/floats.csv-spec[tag=asin]
|===
include::{esql-specs}/floats.csv-spec[tag=asin-result]
|===

Supported types:

include::types/asin.asciidoc[]
7 changes: 7 additions & 0 deletions docs/reference/esql/functions/atan.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[[esql-atan]]
=== `ATAN`
[.text-center]
image::esql/functions/signature/atan.svg[Embedded,opts=inline]

Inverse https://en.wikipedia.org/wiki/Inverse_trigonometric_functions[tangent] trigonometric function.

[source.merge.styled,esql]
Expand All @@ -10,3 +13,7 @@ include::{esql-specs}/floats.csv-spec[tag=atan]
|===
include::{esql-specs}/floats.csv-spec[tag=atan-result]
|===

Supported types:

include::types/atan.asciidoc[]
6 changes: 6 additions & 0 deletions docs/reference/esql/functions/atan2.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[[esql-atan2]]
=== `ATAN2`
[.text-center]
image::esql/functions/signature/atan2.svg[Embedded,opts=inline]

The https://en.wikipedia.org/wiki/Atan2[angle] between the positive x-axis and the
ray from the origin to the point (x , y) in the Cartesian plane.
Expand All @@ -12,3 +14,7 @@ include::{esql-specs}/floats.csv-spec[tag=atan2]
|===
include::{esql-specs}/floats.csv-spec[tag=atan2-result]
|===

Supported types:

include::types/atan2.asciidoc[]
23 changes: 23 additions & 0 deletions docs/reference/esql/functions/ceil.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[[esql-ceil]]
=== `CEIL`
[.text-center]
image::esql/functions/signature/floor.svg[Embedded,opts=inline]

Round a number up to the nearest integer.

[source.merge.styled,esql]
----
include::{esql-specs}/math.csv-spec[tag=ceil]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/math.csv-spec[tag=ceil-result]
|===

NOTE: This is a noop for `long` (including unsigned) and `integer`.
For `double` this picks the the closest `double` value to the integer ala
{javadoc}/java.base/java/lang/Math.html#ceil(double)[Math.ceil].

Supported types:

include::types/ceil.asciidoc[]
7 changes: 7 additions & 0 deletions docs/reference/esql/functions/cos.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[[esql-cos]]
=== `COS`
[.text-center]
image::esql/functions/signature/cos.svg[Embedded,opts=inline]

https://en.wikipedia.org/wiki/Sine_and_cosine[Cosine] trigonometric function.

[source.merge.styled,esql]
Expand All @@ -10,3 +13,7 @@ include::{esql-specs}/floats.csv-spec[tag=cos]
|===
include::{esql-specs}/floats.csv-spec[tag=cos-result]
|===

Supported types:

include::types/cos.asciidoc[]
3 changes: 3 additions & 0 deletions docs/reference/esql/functions/e.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[[esql-e]]
=== `E`
[.text-center]
image::esql/functions/signature/e.svg[Embedded,opts=inline]

{wikipedia}/E_(mathematical_constant)[Euler's number].

[source.merge.styled,esql]
Expand Down
11 changes: 9 additions & 2 deletions docs/reference/esql/functions/floor.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[[esql-floor]]
=== `FLOOR`
[.text-center]
image::esql/functions/signature/floor.svg[Embedded,opts=inline]

Round a number down to the nearest integer.

[source.merge.styled,esql]
Expand All @@ -11,6 +14,10 @@ include::{esql-specs}/math.csv-spec[tag=floor]
include::{esql-specs}/math.csv-spec[tag=floor-result]
|===

NOTE: This is a noop for `long` and `integer`. For `double` this picks the
the closest `double` value to the integer ala
NOTE: This is a noop for `long` (including unsigned) and `integer`.
For `double` this picks the the closest `double` value to the integer ala
{javadoc}/java.base/java/lang/Math.html#floor(double)[Math.floor].

Supported types:

include::types/floor.asciidoc[]
4 changes: 4 additions & 0 deletions docs/reference/esql/functions/greatest.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ include::{esql-specs}/math.csv-spec[tag=greatest-result]
NOTE: When run on `keyword` or `text` fields, this'll return the last string
in alphabetical order. When run on `boolean` columns this will return
`true` if any values are `true`.

Supported types:

include::types/greatest.asciidoc[]
6 changes: 6 additions & 0 deletions docs/reference/esql/functions/least.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[[esql-least]]
=== `LEAST`
[.text-center]
image::esql/functions/signature/least.svg[Embedded,opts=inline]

Returns the minimum value from many columns. This is similar to <<esql-mv_min>>
except it's intended to run on multiple columns at once.
Expand All @@ -16,3 +18,7 @@ include::{esql-specs}/math.csv-spec[tag=least-result]
NOTE: When run on `keyword` or `text` fields, this'll return the first string
in alphabetical order. When run on `boolean` columns this will return
`false` if any values are `false`.

Supported types:

include::types/least.asciidoc[]
14 changes: 14 additions & 0 deletions docs/reference/esql/functions/left.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[[esql-left]]
=== `LEFT`

Return the substring that extract 'length' chars
from string starting from 0.

[source.merge.styled,esql]
----
include::{esql-specs}/string.csv-spec[tag=left]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/string.csv-spec[tag=left-result]
|===
7 changes: 7 additions & 0 deletions docs/reference/esql/functions/log10.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[[esql-log10]]
=== `LOG10`
[.text-center]
image::esql/functions/signature/log10.svg[Embedded,opts=inline]

Returns the log base 10. The input can be any numeric value, the return value
is always a double.

Expand All @@ -13,3 +16,7 @@ include::{esql-specs}/math.csv-spec[tag=log10]
|===
include::{esql-specs}/math.csv-spec[tag=log10-result]
|===

Supported types:

include::types/log10.asciidoc[]
3 changes: 3 additions & 0 deletions docs/reference/esql/functions/pi.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[[esql-pi]]
=== `PI`
[.text-center]
image::esql/functions/signature/pi.svg[Embedded,opts=inline]

The {wikipedia}/Pi[ratio] of a circle's circumference to its diameter.

[source.merge.styled,esql]
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/esql/functions/signature/acos.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/reference/esql/functions/signature/asin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/reference/esql/functions/signature/atan.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/reference/esql/functions/signature/atan2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/reference/esql/functions/signature/ceil.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/reference/esql/functions/signature/cos.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/reference/esql/functions/signature/cosh.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit eff07a7

Please sign in to comment.