Skip to content

Commit a63362b

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 6f3fc87 commit a63362b

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/aggregation/FirstBytesRefByTimestampAggregator.java

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/compute/src/main/generated-src/org/elasticsearch/compute/aggregation/LastBytesRefByTimestampAggregator.java

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/expression/function/aggregate/First.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,12 @@ protected TypeResolution resolveType() {
107107
return new TypeResolution("Unresolved children");
108108
}
109109

110-
return isType(field(), dt -> dt == DataType.BOOLEAN || dt == DataType.DATETIME
111-
|| DataType.isString(dt)
112-
|| (dt.isNumeric() && dt != DataType.UNSIGNED_LONG),
110+
return isType(
111+
field(),
112+
dt -> dt == DataType.BOOLEAN
113+
|| dt == DataType.DATETIME
114+
|| DataType.isString(dt)
115+
|| (dt.isNumeric() && dt != DataType.UNSIGNED_LONG),
113116
sourceText(),
114117
FIRST,
115118
"boolean",

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
1111
import org.elasticsearch.common.io.stream.StreamInput;
1212
import org.elasticsearch.compute.aggregation.AggregatorFunctionSupplier;
13-
import org.elasticsearch.compute.aggregation.FirstBytesRefByTimestampAggregatorFunctionSupplier;
1413
import org.elasticsearch.compute.aggregation.LastBytesRefByTimestampAggregatorFunctionSupplier;
1514
import org.elasticsearch.compute.aggregation.LastDoubleByTimestampAggregatorFunctionSupplier;
1615
import org.elasticsearch.compute.aggregation.LastFloatByTimestampAggregatorFunctionSupplier;
@@ -34,7 +33,6 @@
3433
import java.io.IOException;
3534
import java.util.List;
3635

37-
import static org.elasticsearch.xpack.esql.core.expression.TypeResolutions.ParamOrdinal.DEFAULT;
3836
import static org.elasticsearch.xpack.esql.core.expression.TypeResolutions.ParamOrdinal.FIRST;
3937
import static org.elasticsearch.xpack.esql.core.expression.TypeResolutions.ParamOrdinal.SECOND;
4038
import static org.elasticsearch.xpack.esql.core.expression.TypeResolutions.isType;
@@ -105,7 +103,10 @@ public DataType dataType() {
105103

106104
@Override
107105
protected TypeResolution resolveType() {
108-
return isType(field(), dt -> dt == DataType.BOOLEAN || dt == DataType.DATETIME
106+
return isType(
107+
field(),
108+
dt -> dt == DataType.BOOLEAN
109+
|| dt == DataType.DATETIME
109110
|| DataType.isString(dt)
110111
|| (dt.isNumeric() && dt != DataType.UNSIGNED_LONG),
111112
sourceText(),

0 commit comments

Comments
 (0)