Skip to content

Commit d84f91a

Browse files
authored
[DOCS][ESQL] Update and regenerate TO_AGGREGATE_METRIC_DOUBLE and TO_DENSE_VECTOR as preview in 9.2.0 (#137740)
1 parent e916243 commit d84f91a

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

docs/reference/query-languages/esql/_snippets/functions/layout/to_aggregate_metric_double.md

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/layout/to_dense_vector.md

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/kibana/definition/functions/to_aggregate_metric_double.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/convert/ToAggregateMetricDouble.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,13 @@ public class ToAggregateMetricDouble extends AbstractConvertFunction {
6868
);
6969

7070
@FunctionInfo(
71+
preview = true,
7172
returnType = "aggregate_metric_double",
7273
description = "Encode a numeric to an aggregate_metric_double.",
7374
examples = {
7475
@Example(file = "convert", tag = "toAggregateMetricDouble"),
7576
@Example(description = "The expression also accepts multi-values", file = "convert", tag = "toAggregateMetricDoubleMv") },
76-
appliesTo = { @FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.COMING) }
77+
appliesTo = { @FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.PREVIEW, version = "9.2.0") }
7778
)
7879
public ToAggregateMetricDouble(
7980
Source source,

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/convert/ToDenseVector.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
import org.elasticsearch.xpack.esql.core.tree.Source;
1616
import org.elasticsearch.xpack.esql.core.type.DataType;
1717
import org.elasticsearch.xpack.esql.expression.function.Example;
18+
import org.elasticsearch.xpack.esql.expression.function.FunctionAppliesTo;
19+
import org.elasticsearch.xpack.esql.expression.function.FunctionAppliesToLifecycle;
1820
import org.elasticsearch.xpack.esql.expression.function.FunctionInfo;
1921
import org.elasticsearch.xpack.esql.expression.function.Param;
2022

@@ -50,7 +52,8 @@ public class ToDenseVector extends AbstractConvertFunction {
5052
returnType = "dense_vector",
5153
description = "Converts a multi-valued input of numbers, or a hexadecimal string, to a dense_vector.",
5254
preview = true,
53-
examples = @Example(file = "dense_vector", tag = "to_dense_vector-ints")
55+
examples = @Example(file = "dense_vector", tag = "to_dense_vector-ints"),
56+
appliesTo = { @FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.PREVIEW, version = "9.2.0") }
5457
)
5558
public ToDenseVector(
5659
Source source,

0 commit comments

Comments
 (0)