Skip to content

Commit 9ca82da

Browse files
committed
move ConfidenceInterval class
1 parent dcebf0a commit 9ca82da

File tree

8 files changed

+15
-8
lines changed

8 files changed

+15
-8
lines changed
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
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/approximate/Approximate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import org.elasticsearch.xpack.esql.expression.function.aggregate.WeightedAvg;
3333
import org.elasticsearch.xpack.esql.expression.function.scalar.EsqlScalarFunction;
3434
import org.elasticsearch.xpack.esql.expression.function.scalar.convert.ToLong;
35-
import org.elasticsearch.xpack.esql.expression.function.scalar.multivalue.ConfidenceInterval;
35+
import org.elasticsearch.xpack.esql.expression.function.scalar.math.ConfidenceInterval;
3636
import org.elasticsearch.xpack.esql.expression.function.scalar.multivalue.MvAppend;
3737
import org.elasticsearch.xpack.esql.expression.function.scalar.multivalue.MvContains;
3838
import org.elasticsearch.xpack.esql.expression.function.scalar.random.Random;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Tan;
6363
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Tanh;
6464
import org.elasticsearch.xpack.esql.expression.function.scalar.multivalue.MvFunctionWritables;
65+
import org.elasticsearch.xpack.esql.expression.function.scalar.random.Random;
6566
import org.elasticsearch.xpack.esql.expression.function.scalar.spatial.SpatialContains;
6667
import org.elasticsearch.xpack.esql.expression.function.scalar.spatial.SpatialDisjoint;
6768
import org.elasticsearch.xpack.esql.expression.function.scalar.spatial.SpatialIntersects;
@@ -190,6 +191,7 @@ public static List<NamedWriteableRegistry.Entry> unaryScalars() {
190191
entries.add(LTrim.ENTRY);
191192
entries.add(Neg.ENTRY);
192193
entries.add(Not.ENTRY);
194+
entries.add(Random.ENTRY);
193195
entries.add(RLike.ENTRY);
194196
entries.add(RLikeList.ENTRY);
195197
entries.add(RTrim.ENTRY);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Tan;
140140
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Tanh;
141141
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Tau;
142-
import org.elasticsearch.xpack.esql.expression.function.scalar.multivalue.ConfidenceInterval;
142+
import org.elasticsearch.xpack.esql.expression.function.scalar.math.ConfidenceInterval;
143143
import org.elasticsearch.xpack.esql.expression.function.scalar.multivalue.MvAppend;
144144
import org.elasticsearch.xpack.esql.expression.function.scalar.multivalue.MvAvg;
145145
import org.elasticsearch.xpack.esql.expression.function.scalar.multivalue.MvConcat;
@@ -371,6 +371,7 @@ private static FunctionDefinition[][] functions() {
371371
def(Atan2.class, Atan2::new, "atan2"),
372372
def(Cbrt.class, Cbrt::new, "cbrt"),
373373
def(Ceil.class, Ceil::new, "ceil"),
374+
def(ConfidenceInterval.class, ConfidenceInterval::new, "confidence_interval"),
374375
def(Cos.class, Cos::new, "cos"),
375376
def(Cosh.class, Cosh::new, "cosh"),
376377
def(E.class, E::new, "e"),
@@ -508,8 +509,7 @@ private static FunctionDefinition[][] functions() {
508509
def(MvSlice.class, MvSlice::new, "mv_slice"),
509510
def(MvZip.class, MvZip::new, "mv_zip"),
510511
def(MvSum.class, MvSum::new, "mv_sum"),
511-
def(Split.class, Split::new, "split"),
512-
def(ConfidenceInterval.class, ConfidenceInterval::new, "confidence_interval") },
512+
def(Split.class, Split::new, "split") },
513513
// fulltext functions
514514
new FunctionDefinition[] {
515515
def(Decay.class, quad(Decay::new), "decay"),

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import org.elasticsearch.xpack.esql.expression.function.scalar.ip.CIDRMatch;
2727
import org.elasticsearch.xpack.esql.expression.function.scalar.ip.IpPrefix;
2828
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Atan2;
29+
import org.elasticsearch.xpack.esql.expression.function.scalar.math.ConfidenceInterval;
2930
import org.elasticsearch.xpack.esql.expression.function.scalar.math.CopySign;
3031
import org.elasticsearch.xpack.esql.expression.function.scalar.math.E;
3132
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Hypot;
@@ -73,6 +74,7 @@ public static List<NamedWriteableRegistry.Entry> getNamedWriteables() {
7374
entries.add(CIDRMatch.ENTRY);
7475
entries.add(Coalesce.ENTRY);
7576
entries.add(Concat.ENTRY);
77+
entries.add(ConfidenceInterval.ENTRY);
7678
entries.add(Contains.ENTRY);
7779
entries.add(E.ENTRY);
7880
entries.add(EndsWith.ENTRY);
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* 2.0.
66
*/
77

8-
package org.elasticsearch.xpack.esql.expression.function.scalar.multivalue;
8+
package org.elasticsearch.xpack.esql.expression.function.scalar.math;
99

1010
import org.apache.commons.math3.distribution.NormalDistribution;
1111
import org.apache.commons.math3.stat.descriptive.moment.Mean;
@@ -29,6 +29,9 @@
2929
import org.elasticsearch.xpack.esql.expression.function.FunctionInfo;
3030
import org.elasticsearch.xpack.esql.expression.function.Param;
3131
import org.elasticsearch.xpack.esql.expression.function.scalar.EsqlScalarFunction;
32+
import org.elasticsearch.xpack.esql.expression.function.scalar.math.ConfidenceIntervalDoubleEvaluator;
33+
import org.elasticsearch.xpack.esql.expression.function.scalar.math.ConfidenceIntervalIntEvaluator;
34+
import org.elasticsearch.xpack.esql.expression.function.scalar.math.ConfidenceIntervalLongEvaluator;
3235
import org.elasticsearch.xpack.esql.io.stream.PlanStreamInput;
3336
import org.elasticsearch.xpack.esql.planner.PlannerUtils;
3437

0 commit comments

Comments
 (0)