|
19 | 19 | import org.elasticsearch.xpack.esql.core.tree.NodeInfo;
|
20 | 20 | import org.elasticsearch.xpack.esql.core.tree.Source;
|
21 | 21 | import org.elasticsearch.xpack.esql.core.type.DataType;
|
| 22 | +import org.elasticsearch.xpack.esql.expression.function.FunctionAppliesTo; |
| 23 | +import org.elasticsearch.xpack.esql.expression.function.FunctionAppliesToLifecycle; |
22 | 24 | import org.elasticsearch.xpack.esql.expression.function.FunctionInfo;
|
23 | 25 | import org.elasticsearch.xpack.esql.expression.function.Param;
|
24 | 26 | import org.elasticsearch.xpack.esql.expression.function.scalar.EsqlScalarFunction;
|
@@ -61,10 +63,14 @@ EvalOperator.ExpressionEvaluator.Factory create(
|
61 | 63 |
|
62 | 64 | private DataType dataType;
|
63 | 65 |
|
64 |
| - @FunctionInfo(description = """ |
65 |
| - Returns a value with the magnitude of the first argument and the sign of the second argument. |
66 |
| - This function is similar to Java's Math.copySign(double magnitude, double sign) which is |
67 |
| - similar to `copysign` from [IEEE 754](https://en.wikipedia.org/wiki/IEEE_754).""", returnType = { "double", "integer", "long" }) |
| 66 | + @FunctionInfo( |
| 67 | + description = """ |
| 68 | + Returns a value with the magnitude of the first argument and the sign of the second argument. |
| 69 | + This function is similar to Java's Math.copySign(double magnitude, double sign) which is |
| 70 | + similar to `copysign` from [IEEE 754](https://en.wikipedia.org/wiki/IEEE_754).""", |
| 71 | + returnType = { "double", "integer", "long" }, |
| 72 | + appliesTo = { @FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.GA, version = "9.1.0") } |
| 73 | + ) |
68 | 74 | public CopySign(
|
69 | 75 | Source source,
|
70 | 76 | @Param(
|
|
0 commit comments