Skip to content

Commit abc72c6

Browse files
committed
Update docs
1 parent 6c87cf1 commit abc72c6

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

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

Lines changed: 4 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/lists/math-functions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* [`PI`](../../functions-operators/math-functions.md#esql-pi)
1717
* [`POW`](../../functions-operators/math-functions.md#esql-pow)
1818
* [`ROUND`](../../functions-operators/math-functions.md#esql-round)
19+
* [`ROUND_TO`](../../functions-operators/math-functions.md#esql-round-to)
1920
* [`SCALB`](../../functions-operators/math-functions.md#esql-scalb)
2021
* [`SIGNUM`](../../functions-operators/math-functions.md#esql-signum)
2122
* [`SIN`](../../functions-operators/math-functions.md#esql-sin)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ mapped_pages:
6363
:::{include} ../_snippets/functions/layout/pow.md
6464
:::
6565

66-
:::{include} ../_snippets/functions/layout/round_to.md
66+
:::{include} ../_snippets/functions/layout/round.md
6767
:::
6868

69-
:::{include} ../_snippets/functions/layout/round.md
69+
:::{include} ../_snippets/functions/layout/round_to.md
7070
:::
7171

7272
:::{include} ../_snippets/functions/layout/scalb.md

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/math/RoundTo.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
import org.elasticsearch.xpack.esql.core.tree.Source;
2121
import org.elasticsearch.xpack.esql.core.type.DataType;
2222
import org.elasticsearch.xpack.esql.expression.function.Example;
23+
import org.elasticsearch.xpack.esql.expression.function.FunctionAppliesTo;
24+
import org.elasticsearch.xpack.esql.expression.function.FunctionAppliesToLifecycle;
2325
import org.elasticsearch.xpack.esql.expression.function.FunctionInfo;
2426
import org.elasticsearch.xpack.esql.expression.function.Param;
2527
import org.elasticsearch.xpack.esql.expression.function.scalar.EsqlScalarFunction;
@@ -50,8 +52,18 @@ public class RoundTo extends EsqlScalarFunction {
5052

5153
private DataType resultType;
5254

53-
@FunctionInfo(returnType = { "double", "integer", "long", "date", "date_nanos" }, description = """
54-
Rounds down to one of a list of fixed points.""", examples = @Example(file = "math", tag = "round_to"))
55+
@FunctionInfo(
56+
returnType = { "double", "integer", "long", "date", "date_nanos" },
57+
description = """
58+
Rounds down to one of a list of fixed points.""",
59+
examples = @Example(file = "math", tag = "round_to"),
60+
appliesTo = {
61+
@FunctionAppliesTo(
62+
lifeCycle = FunctionAppliesToLifecycle.COMING,
63+
version = "8.19.0/9.1.0"
64+
)
65+
}
66+
)
5567
public RoundTo(
5668
Source source,
5769
@Param(

0 commit comments

Comments
 (0)