Skip to content

Commit

Permalink
ESQL - generate docs for snapshot functions (#113080)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest authored Sep 19, 2024
1 parent 4af30db commit 838b5a8
Show file tree
Hide file tree
Showing 9 changed files with 78 additions and 2 deletions.
5 changes: 5 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.

33 changes: 33 additions & 0 deletions docs/reference/esql/functions/kibana/definition/categorize.json

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

7 changes: 7 additions & 0 deletions docs/reference/esql/functions/kibana/docs/categorize.md

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

14 changes: 14 additions & 0 deletions docs/reference/esql/functions/layout/categorize.asciidoc

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

6 changes: 6 additions & 0 deletions docs/reference/esql/functions/parameters/categorize.asciidoc

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

1 change: 1 addition & 0 deletions docs/reference/esql/functions/signature/categorize.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions docs/reference/esql/functions/types/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 @@ -63,7 +63,7 @@ public class Categorize extends GroupingFunction implements Validatable {

private final Expression field;

@FunctionInfo(returnType = { "integer" }, description = "Categorizes text messages")
@FunctionInfo(returnType = { "integer" }, description = "Categorizes text messages.")
public Categorize(
Source source,
@Param(name = "field", type = { "text", "keyword" }, description = "Expression to categorize") Expression field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ protected static String functionName() {
}

private static FunctionDefinition definition(String name) {
EsqlFunctionRegistry registry = new EsqlFunctionRegistry();
EsqlFunctionRegistry registry = new EsqlFunctionRegistry().snapshotRegistry();
if (registry.functionExists(name)) {
return registry.resolveFunction(name);
}
Expand Down

0 comments on commit 838b5a8

Please sign in to comment.