Skip to content

Commit 663f24b

Browse files
kkrik-esleemthompo
andauthored
Remove first and last functions from documentation (#137341)
* Remove `first` and `last` functions from documentation * Apply suggestions from code review Co-authored-by: Liam Thompson <[email protected]> * update --------- Co-authored-by: Liam Thompson <[email protected]>
1 parent 88a4689 commit 663f24b

File tree

6 files changed

+4
-12
lines changed

6 files changed

+4
-12
lines changed

docs/reference/query-languages/esql/_snippets/functions/layout/first.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/layout/last.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/lists/aggregation-functions.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* [`AVG`](../../functions-operators/aggregation-functions.md#esql-avg)
33
* [`COUNT`](../../functions-operators/aggregation-functions.md#esql-count)
44
* [`COUNT_DISTINCT`](../../functions-operators/aggregation-functions.md#esql-count_distinct)
5-
* [`FIRST`](../../functions-operators/aggregation-functions.md#esql-first) {applies_to}`stack: ga 9.2`
6-
* [`LAST`](../../functions-operators/aggregation-functions.md#esql-last) {applies_to}`stack: ga 9.2`
75
* [`MAX`](../../functions-operators/aggregation-functions.md#esql-max)
86
* [`MEDIAN`](../../functions-operators/aggregation-functions.md#esql-median)
97
* [`MEDIAN_ABSOLUTE_DEVIATION`](../../functions-operators/aggregation-functions.md#esql-median_absolute_deviation)

docs/reference/query-languages/esql/functions-operators/aggregation-functions.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ The [`STATS`](/reference/query-languages/esql/commands/stats-by.md) and [`INLINE
2828
:::{include} ../_snippets/functions/layout/count_distinct.md
2929
:::
3030

31-
:::{include} ../_snippets/functions/layout/first.md
32-
:::
33-
34-
:::{include} ../_snippets/functions/layout/last.md
35-
:::
36-
3731
:::{include} ../_snippets/functions/layout/max.md
3832
:::
3933

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class First extends AggregateFunction implements ToAggregator {
4747
type = FunctionType.AGGREGATE,
4848
returnType = { "long", "integer", "double", "keyword" },
4949
description = "Calculates the earliest value of a field.",
50-
appliesTo = { @FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.GA, version = "9.2.0") },
50+
appliesTo = { @FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.GA, version = "9.3.0") },
5151
examples = @Example(file = "stats_first", tag = "first")
5252
)
5353
public First(

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class Last extends AggregateFunction implements ToAggregator {
4747
type = FunctionType.AGGREGATE,
4848
returnType = { "long", "integer", "double", "keyword" },
4949
description = "Calculates the latest value of a field.",
50-
appliesTo = { @FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.GA, version = "9.2.0") },
50+
appliesTo = { @FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.GA, version = "9.3.0") },
5151
examples = @Example(file = "stats_last", tag = "last")
5252
)
5353
public Last(

0 commit comments

Comments
 (0)