Skip to content

Commit 4adffb9

Browse files
committed
Add applies_to to categorize, follow up to elastic#129398
1 parent 1b4a458 commit 4adffb9

File tree

3 files changed

+11
-3
lines changed
  • docs/reference/query-languages/esql/_snippets/functions
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/grouping

3 files changed

+11
-3
lines changed

docs/reference/query-languages/esql/_snippets/functions/functionNamedParams/categorize.md

Lines changed: 2 additions & 2 deletions
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/categorize.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/grouping/Categorize.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
import org.elasticsearch.xpack.esql.core.tree.Source;
2525
import org.elasticsearch.xpack.esql.core.type.DataType;
2626
import org.elasticsearch.xpack.esql.expression.function.Example;
27+
import org.elasticsearch.xpack.esql.expression.function.FunctionAppliesTo;
28+
import org.elasticsearch.xpack.esql.expression.function.FunctionAppliesToLifecycle;
2729
import org.elasticsearch.xpack.esql.expression.function.FunctionInfo;
2830
import org.elasticsearch.xpack.esql.expression.function.FunctionType;
2931
import org.elasticsearch.xpack.esql.expression.function.MapParam;
@@ -93,7 +95,10 @@ public class Categorize extends GroupingFunction.NonEvaluatableGroupingFunction
9395
tag = "docsCategorize",
9496
description = "This example categorizes server logs messages into categories and aggregates their counts. "
9597
) },
96-
type = FunctionType.GROUPING
98+
type = FunctionType.GROUPING,
99+
appliesTo = {
100+
@FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.PREVIEW, version = "9.0"),
101+
@FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.GA, version = "9.1") }
97102
)
98103
public Categorize(
99104
Source source,

0 commit comments

Comments
 (0)