Skip to content

Commit 31508f0

Browse files
Document ES|QL categorize limitations (elastic#117892)
* Document ES|QL categorize limitations * Update x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/grouping/Categorize.java Co-authored-by: Alexander Spies <[email protected]> --------- Co-authored-by: Alexander Spies <[email protected]>
1 parent 02f3bc0 commit 31508f0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/reference/esql/functions/description/categorize.asciidoc

Lines changed: 6 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ public class Categorize extends GroupingFunction implements Validatable {
4848
@FunctionInfo(
4949
returnType = "keyword",
5050
description = "Groups text messages into categories of similarly formatted text values.",
51+
detailedDescription = """
52+
`CATEGORIZE` has the following limitations:
53+
54+
* can't be used within other expressions
55+
* can't be used with multiple groupings
56+
* can't be used or referenced within aggregate functions""",
5157
examples = {
5258
@Example(
5359
file = "docs",

0 commit comments

Comments
 (0)