Skip to content

Commit f806e04

Browse files
committed
Move to snapshot only
1 parent 0f82f2b commit f806e04

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ public enum Cap {
13401340
/**
13411341
* FIRST and LAST aggregate functions.
13421342
*/
1343-
AGG_FIRST_LAST,
1343+
AGG_FIRST_LAST(Build.current().isSnapshot()),
13441344

13451345
/**
13461346
* Support correct counting of skipped shards.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,6 @@ private static FunctionDefinition[][] functions() {
318318
def(Avg.class, uni(Avg::new), "avg"),
319319
def(Count.class, uni(Count::new), "count"),
320320
def(CountDistinct.class, bi(CountDistinct::new), "count_distinct"),
321-
def(First.class, bi(First::new), "first"),
322-
def(Last.class, bi(Last::new), "last"),
323321
def(Max.class, uni(Max::new), "max"),
324322
def(Median.class, uni(Median::new), "median"),
325323
def(MedianAbsoluteDeviation.class, uni(MedianAbsoluteDeviation::new), "median_absolute_deviation"),
@@ -479,6 +477,8 @@ private static FunctionDefinition[][] snapshotFunctions() {
479477
// The delay() function is for debug/snapshot environments only and should never be enabled in a non-snapshot build.
480478
// This is an experimental function and can be removed without notice.
481479
def(Delay.class, Delay::new, "delay"),
480+
def(First.class, bi(First::new), "first"),
481+
def(Last.class, bi(Last::new), "last"),
482482
def(Rate.class, uni(Rate::new), "rate"),
483483
def(MaxOverTime.class, uni(MaxOverTime::new), "max_over_time"),
484484
def(MinOverTime.class, uni(MinOverTime::new), "min_over_time"),

0 commit comments

Comments
 (0)