Skip to content

Commit 7c3dc70

Browse files
committed
Add version info, following elastic#127629
1 parent 4adffb9 commit 7c3dc70

File tree

2 files changed

+8
-1
lines changed
  • docs/reference/query-languages/esql/_snippets/functions/layout
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/aggregate

2 files changed

+8
-1
lines changed

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

Lines changed: 3 additions & 0 deletions
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/aggregate/Sample.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
import org.elasticsearch.xpack.esql.core.tree.NodeInfo;
2424
import org.elasticsearch.xpack.esql.core.tree.Source;
2525
import org.elasticsearch.xpack.esql.core.type.DataType;
26+
import org.elasticsearch.xpack.esql.expression.function.FunctionAppliesTo;
27+
import org.elasticsearch.xpack.esql.expression.function.FunctionAppliesToLifecycle;
2628
import org.elasticsearch.xpack.esql.expression.function.Example;
2729
import org.elasticsearch.xpack.esql.expression.function.FunctionInfo;
2830
import org.elasticsearch.xpack.esql.expression.function.FunctionType;
@@ -59,7 +61,9 @@ public class Sample extends AggregateFunction implements ToAggregator {
5961
"version" },
6062
description = "Collects sample values for a field.",
6163
type = FunctionType.AGGREGATE,
62-
examples = @Example(file = "stats_sample", tag = "doc")
64+
examples = @Example(file = "stats_sample", tag = "doc"),
65+
appliesTo = { @FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.PREVIEW, version = "9.1.0") }
66+
6367
)
6468
public Sample(
6569
Source source,

0 commit comments

Comments
 (0)