Skip to content

Commit 009236a

Browse files
committed
move ConfidenceInterval class
1 parent f6c6420 commit 009236a

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
@@ -136,7 +136,7 @@
136136
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Tan;
137137
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Tanh;
138138
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Tau;
139-
import org.elasticsearch.xpack.esql.expression.function.scalar.multivalue.ConfidenceInterval;
139+
import org.elasticsearch.xpack.esql.expression.function.scalar.math.ConfidenceInterval;
140140
import org.elasticsearch.xpack.esql.expression.function.scalar.multivalue.MvAppend;
141141
import org.elasticsearch.xpack.esql.expression.function.scalar.multivalue.MvAvg;
142142
import org.elasticsearch.xpack.esql.expression.function.scalar.multivalue.MvConcat;
@@ -367,6 +367,7 @@ private static FunctionDefinition[][] functions() {
367367
def(Atan2.class, Atan2::new, "atan2"),
368368
def(Cbrt.class, Cbrt::new, "cbrt"),
369369
def(Ceil.class, Ceil::new, "ceil"),
370+
def(ConfidenceInterval.class, ConfidenceInterval::new, "confidence_interval"),
370371
def(Cos.class, Cos::new, "cos"),
371372
def(Cosh.class, Cosh::new, "cosh"),
372373
def(E.class, E::new, "e"),
@@ -502,8 +503,7 @@ private static FunctionDefinition[][] functions() {
502503
def(MvSlice.class, MvSlice::new, "mv_slice"),
503504
def(MvZip.class, MvZip::new, "mv_zip"),
504505
def(MvSum.class, MvSum::new, "mv_sum"),
505-
def(Split.class, Split::new, "split"),
506-
def(ConfidenceInterval.class, ConfidenceInterval::new, "confidence_interval") },
506+
def(Split.class, Split::new, "split") },
507507
// fulltext functions
508508
new FunctionDefinition[] {
509509
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
@@ -24,6 +24,7 @@
2424
import org.elasticsearch.xpack.esql.expression.function.scalar.ip.CIDRMatch;
2525
import org.elasticsearch.xpack.esql.expression.function.scalar.ip.IpPrefix;
2626
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Atan2;
27+
import org.elasticsearch.xpack.esql.expression.function.scalar.math.ConfidenceInterval;
2728
import org.elasticsearch.xpack.esql.expression.function.scalar.math.CopySign;
2829
import org.elasticsearch.xpack.esql.expression.function.scalar.math.E;
2930
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Hypot;
@@ -71,6 +72,7 @@ public static List<NamedWriteableRegistry.Entry> getNamedWriteables() {
7172
entries.add(CIDRMatch.ENTRY);
7273
entries.add(Coalesce.ENTRY);
7374
entries.add(Concat.ENTRY);
75+
entries.add(ConfidenceInterval.ENTRY);
7476
entries.add(Contains.ENTRY);
7577
entries.add(E.ENTRY);
7678
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)