Skip to content

Commit 61772f5

Browse files
kkrik-eselasticsearchmachine
andauthored
[ESQL] Edit versioning info for absent and present functions (#135076)
* Mark `absent` and `present` as FunctionAppliesToLifecycle.COMING * include md files * update as ga * Update absent.md * Update present.md * [CI] Auto commit changes from spotless * remove serverless versions --------- Co-authored-by: elasticsearchmachine <[email protected]>
1 parent 876da13 commit 61772f5

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
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/present.md

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
import org.elasticsearch.xpack.esql.core.type.DataType;
1818
import org.elasticsearch.xpack.esql.expression.SurrogateExpression;
1919
import org.elasticsearch.xpack.esql.expression.function.Example;
20+
import org.elasticsearch.xpack.esql.expression.function.FunctionAppliesTo;
21+
import org.elasticsearch.xpack.esql.expression.function.FunctionAppliesToLifecycle;
2022
import org.elasticsearch.xpack.esql.expression.function.FunctionInfo;
2123
import org.elasticsearch.xpack.esql.expression.function.FunctionType;
2224
import org.elasticsearch.xpack.esql.expression.function.Param;
@@ -41,6 +43,7 @@ public class Absent extends AggregateFunction implements SurrogateExpression {
4143
description = "Returns true if the input expression yields no non-null values within the current aggregation context. "
4244
+ "Otherwise it returns false.",
4345
type = FunctionType.AGGREGATE,
46+
appliesTo = { @FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.GA, version = "9.2.0") },
4447
examples = {
4548
@Example(file = "absent", tag = "absent"),
4649
@Example(

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
import org.elasticsearch.xpack.esql.core.tree.Source;
1919
import org.elasticsearch.xpack.esql.core.type.DataType;
2020
import org.elasticsearch.xpack.esql.expression.function.Example;
21+
import org.elasticsearch.xpack.esql.expression.function.FunctionAppliesTo;
22+
import org.elasticsearch.xpack.esql.expression.function.FunctionAppliesToLifecycle;
2123
import org.elasticsearch.xpack.esql.expression.function.FunctionInfo;
2224
import org.elasticsearch.xpack.esql.expression.function.FunctionType;
2325
import org.elasticsearch.xpack.esql.expression.function.Param;
@@ -42,6 +44,7 @@ public class Present extends AggregateFunction implements ToAggregator {
4244
description = "Returns true if the input expression yields any non-null values within the current aggregation context. "
4345
+ "Otherwise it returns false.",
4446
type = FunctionType.AGGREGATE,
47+
appliesTo = { @FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.GA, version = "9.2.0") },
4548
examples = {
4649
@Example(file = "present", tag = "present"),
4750
@Example(

0 commit comments

Comments
 (0)