Skip to content

Commit 444d6c1

Browse files
committed
Move ES|QL categorize out of snapshot functions
1 parent d2a4c70 commit 444d6c1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/EsqlFunctionRegistry.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,9 @@ public Collection<FunctionDefinition> listFunctions(String pattern) {
265265
private static FunctionDefinition[][] functions() {
266266
return new FunctionDefinition[][] {
267267
// grouping functions
268-
new FunctionDefinition[] { def(Bucket.class, Bucket::new, "bucket", "bin"), },
268+
new FunctionDefinition[] {
269+
def(Bucket.class, Bucket::new, "bucket", "bin"),
270+
def(Categorize.class, Categorize::new, "categorize") },
269271
// aggregate functions
270272
// since they declare two public constructors - one with filter (for nested where) and one without
271273
// use casting to disambiguate between the two
@@ -411,7 +413,6 @@ private static FunctionDefinition[][] snapshotFunctions() {
411413
// The delay() function is for debug/snapshot environments only and should never be enabled in a non-snapshot build.
412414
// This is an experimental function and can be removed without notice.
413415
def(Delay.class, Delay::new, "delay"),
414-
def(Categorize.class, Categorize::new, "categorize"),
415416
def(Kql.class, Kql::new, "kql"),
416417
def(Rate.class, Rate::withUnresolvedTimestamp, "rate") } };
417418
}

0 commit comments

Comments
 (0)