Skip to content

Commit 72aca43

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 2348726 commit 72aca43

29 files changed

+57
-40
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/analysis/Analyzer.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,11 @@ public LogicalPlan apply(LogicalPlan plan, AnalyzerContext context) {
14041404
);
14051405
}
14061406

1407-
private static Expression cast(org.elasticsearch.xpack.esql.core.expression.function.Function f, EsqlFunctionRegistry registry, QueryPragmas pragmas) {
1407+
private static Expression cast(
1408+
org.elasticsearch.xpack.esql.core.expression.function.Function f,
1409+
EsqlFunctionRegistry registry,
1410+
QueryPragmas pragmas
1411+
) {
14081412
if (f instanceof In in) {
14091413
return processIn(in);
14101414
}
@@ -1817,7 +1821,11 @@ private static MultiTypeEsField resolvedMultiTypeEsField(
18171821
return MultiTypeEsField.resolveFrom(imf, typesToConversionExpressions);
18181822
}
18191823

1820-
private static boolean canConvertOriginalTypes(MultiTypeEsField multiTypeEsField, Set<DataType> supportedTypes, QueryPragmas pragmas) {
1824+
private static boolean canConvertOriginalTypes(
1825+
MultiTypeEsField multiTypeEsField,
1826+
Set<DataType> supportedTypes,
1827+
QueryPragmas pragmas
1828+
) {
18211829
return multiTypeEsField.getIndexToConversionExpressions()
18221830
.values()
18231831
.stream()

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ private static FunctionDefinition[][] functions() {
313313
def(CountDistinct.class, biWithPragmas(CountDistinct::new), "count_distinct"),
314314
def(Sum.class, uniWithPragmas(Sum::new), "sum"),
315315
def(Median.class, uniWithPragmas(Median::new), "median"),
316-
def(WeightedAvg.class, biWithPragmas(WeightedAvg::new), "weighted_avg"),
317-
def(Percentile.class, biWithPragmas(Percentile::new), "percentile") },
316+
def(WeightedAvg.class, biWithPragmas(WeightedAvg::new), "weighted_avg"),
317+
def(Percentile.class, biWithPragmas(Percentile::new), "percentile") },
318318
new FunctionDefinition[] {
319319
def(Max.class, uni(Max::new), "max"),
320320
def(MedianAbsoluteDeviation.class, uniWithPragmas(MedianAbsoluteDeviation::new), "median_absolute_deviation"),

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import org.elasticsearch.xpack.esql.expression.predicate.operator.arithmetic.Mul;
3131
import org.elasticsearch.xpack.esql.planner.ToAggregator;
3232
import org.elasticsearch.xpack.esql.plugin.QueryPragmas;
33-
import org.elasticsearch.xpack.esql.session.Configuration;
3433

3534
import java.io.IOException;
3635
import java.util.List;
@@ -91,7 +90,7 @@ public Count(
9190
"version" },
9291
description = "Expression that outputs values to be counted. If omitted, equivalent to `COUNT(*)` (the number of rows)."
9392
) Expression field,
94-
QueryPragmas pragmas
93+
QueryPragmas pragmas
9594
) {
9695
this(source, field, Literal.TRUE, pragmas);
9796
}
@@ -153,7 +152,11 @@ public Expression surrogate() {
153152
var s = source();
154153
var field = field();
155154
if (field.dataType() == DataType.AGGREGATE_METRIC_DOUBLE) {
156-
return new Sum(s, FromAggregateMetricDouble.withMetric(source(), field, AggregateMetricDoubleBlockBuilder.Metric.COUNT), pragmas);
155+
return new Sum(
156+
s,
157+
FromAggregateMetricDouble.withMetric(source(), field, AggregateMetricDoubleBlockBuilder.Metric.COUNT),
158+
pragmas
159+
);
157160
}
158161

159162
if (field.foldable()) {

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ public class MedianAbsoluteDeviation extends NumericAggregate implements Surroga
6767
tag = "docsStatsMADNestedExpression"
6868
), }
6969
)
70-
public MedianAbsoluteDeviation(Source source, @Param(name = "number", type = { "double", "integer", "long" }) Expression field, QueryPragmas pragmas) {
70+
public MedianAbsoluteDeviation(
71+
Source source,
72+
@Param(name = "number", type = { "double", "integer", "long" }) Expression field,
73+
QueryPragmas pragmas
74+
) {
7175
this(source, field, Literal.TRUE, pragmas);
7276
}
7377

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.elasticsearch.xpack.esql.expression.function.scalar.UnaryScalarFunction;
2727
import org.elasticsearch.xpack.esql.io.stream.PlanStreamInput;
2828
import org.elasticsearch.xpack.esql.plugin.QueryPragmas;
29-
import org.elasticsearch.xpack.esql.session.Configuration;
3029

3130
import java.io.IOException;
3231
import java.util.ArrayList;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public ToAggregateMetricDouble(
8181
type = { "double", "long", "unsigned_long", "integer", "aggregate_metric_double" },
8282
description = "Input value. The input can be a single- or multi-valued column or an expression."
8383
) Expression field,
84-
QueryPragmas pragmas
84+
QueryPragmas pragmas
8585
) {
8686
super(source, field, pragmas);
8787
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ public ToBoolean(
6767
type = { "boolean", "keyword", "text", "double", "long", "unsigned_long", "integer" },
6868
description = "Input value. The input can be a single- or multi-valued column or an expression."
6969
) Expression field,
70-
QueryPragmas pragmas
70+
QueryPragmas pragmas
7171
) {
7272
super(source, field, pragmas);
7373
}
74+
7475
private ToBoolean(StreamInput in) throws IOException {
7576
super(in);
7677
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public ToCartesianPoint(
5757
type = { "cartesian_point", "keyword", "text" },
5858
description = "Input value. The input can be a single- or multi-valued column or an expression."
5959
) Expression field,
60-
QueryPragmas pragmas
60+
QueryPragmas pragmas
6161
) {
6262
super(source, field, pragmas);
6363
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public ToCartesianShape(
5959
type = { "cartesian_point", "cartesian_shape", "keyword", "text" },
6060
description = "Input value. The input can be a single- or multi-valued column or an expression."
6161
) Expression field,
62-
QueryPragmas pragmas
62+
QueryPragmas pragmas
6363
) {
6464
super(source, field, pragmas);
6565
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public ToDateNanos(
7575
type = { "date", "date_nanos", "keyword", "text", "double", "long", "unsigned_long" },
7676
description = "Input value. The input can be a single- or multi-valued column or an expression."
7777
) Expression field,
78-
QueryPragmas pragmas
78+
QueryPragmas pragmas
7979
) {
8080
super(source, field, pragmas);
8181
}

0 commit comments

Comments
 (0)