mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 09:54:06 -04:00
This commit adds support for numeric metrics counter fields in ES|QL. These counter types, including counter_long, counter_integer, and counter_double, are different from their parent types. Users will have limited interaction with these counter types, restricted to: - Retrieving values without any processing - Casting to their root type (e.g., to_long(a_long_counter)) - Using them in the metrics rate aggregation These restrictions are intentional to prevent misuse. If users want to use them as numeric values, explicit casting to their root types is required. |
||
---|---|---|
.. | ||
description | ||
examples | ||
kibana | ||
layout | ||
parameters | ||
signature | ||
types | ||
aggregation-functions.asciidoc | ||
avg.asciidoc | ||
binary.asciidoc | ||
case.asciidoc | ||
cast.asciidoc | ||
cidr_match.asciidoc | ||
coalesce.asciidoc | ||
conditional-functions-and-expressions.asciidoc | ||
count-distinct.asciidoc | ||
count.asciidoc | ||
date-time-functions.asciidoc | ||
ends_with.asciidoc | ||
greatest.asciidoc | ||
grouping-functions.asciidoc | ||
in.asciidoc | ||
least.asciidoc | ||
like.asciidoc | ||
logical.asciidoc | ||
math-functions.asciidoc | ||
max.asciidoc | ||
median-absolute-deviation.asciidoc | ||
median.asciidoc | ||
min.asciidoc | ||
mv-functions.asciidoc | ||
mv_avg.asciidoc | ||
mv_concat.asciidoc | ||
mv_count.asciidoc | ||
mv_dedupe.asciidoc | ||
mv_first.asciidoc | ||
mv_last.asciidoc | ||
mv_max.asciidoc | ||
mv_median.asciidoc | ||
mv_min.asciidoc | ||
mv_slice.asciidoc | ||
mv_sort.asciidoc | ||
mv_sum.asciidoc | ||
mv_zip.asciidoc | ||
now.asciidoc | ||
operators.asciidoc | ||
percentile.asciidoc | ||
predicates.asciidoc | ||
README.md | ||
rlike.asciidoc | ||
round.asciidoc | ||
spatial-functions.asciidoc | ||
st_centroid_agg.asciidoc | ||
st_contains.asciidoc | ||
st_disjoint.asciidoc | ||
st_intersects.asciidoc | ||
st_within.asciidoc | ||
st_x.asciidoc | ||
st_y.asciidoc | ||
starts_with.asciidoc | ||
string-functions.asciidoc | ||
sum.asciidoc | ||
type-conversion-functions.asciidoc | ||
unary.asciidoc | ||
values.asciidoc |
The files in these subdirectories are generated by ESQL's test suite:
description
- description of each function scraped from@FunctionInfo#description
examples
- examples of each function scraped from@FunctionInfo#examples
parameters
- description of each function's parameters scraped from@Param
signature
- railroad diagram of the syntax to invoke each functiontypes
- a table of each combination of support type for each parameter. These are generated from tests.layout
- a fully generated description for each functionkibana/definition
- function definitions for kibana's ESQL editorkibana/docs
- the inline docs for kibana
Most functions can use the generated docs generated in the layout
directory.
If we need something more custom for the function we can make a file in this
directory that can include::
any parts of the files above.
To regenerate the files for a function run its tests using gradle:
./gradlew :x-pack:plugin:esql:test -Dtests.class='*SinTests'
To regenerate the files for all functions run all of ESQL's tests using gradle:
./gradlew :x-pack:plugin:esql:test