Skip to content

Commit

Permalink
Document ES|QL categorize limitations (elastic#117892)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
jan-elastic and alex-spies authored Dec 4, 2024
1 parent 02f3bc0 commit 31508f0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/reference/esql/functions/description/categorize.asciidoc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ public class Categorize extends GroupingFunction implements Validatable {
@FunctionInfo(
returnType = "keyword",
description = "Groups text messages into categories of similarly formatted text values.",
detailedDescription = """
`CATEGORIZE` has the following limitations:
* can't be used within other expressions
* can't be used with multiple groupings
* can't be used or referenced within aggregate functions""",
examples = {
@Example(
file = "docs",
Expand Down

0 comments on commit 31508f0

Please sign in to comment.