Skip to content

Commit 6ef0feb

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

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/planner/AbstractPhysicalOperationProviders.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import org.elasticsearch.xpack.esql.core.expression.FoldContext;
3030
import org.elasticsearch.xpack.esql.core.expression.NameId;
3131
import org.elasticsearch.xpack.esql.core.expression.NamedExpression;
32-
import org.elasticsearch.xpack.esql.core.expression.ReferenceAttribute;
3332
import org.elasticsearch.xpack.esql.core.util.Holder;
3433
import org.elasticsearch.xpack.esql.evaluator.EvalMapper;
3534
import org.elasticsearch.xpack.esql.expression.function.aggregate.AggregateFunction;
@@ -67,13 +66,12 @@ private static Bucket findBucket(AggregateExec aggregateExec, NameId bucketId) {
6766
if (ne.id().equals(bucketId)) {
6867
if (ne.children().size() > 0 && ne.children().get(0) instanceof Bucket bucket) {
6968
foundBucket.set(bucket);
70-
// TODO: Hack used when BUCKET is wrapped with ROUND. How to generalize it?
69+
// TODO: Hack used when BUCKET is wrapped with ROUND. How to generalize it?
7170
} else if (ne.children().size() > 0
7271
&& ne.children().get(0) instanceof Round round
73-
&& round.field() instanceof Bucket bucket
74-
) {
75-
foundBucket.set(bucket);
76-
}
72+
&& round.field() instanceof Bucket bucket) {
73+
foundBucket.set(bucket);
74+
}
7775
}
7876
});
7977
return foundBucket.get();

0 commit comments

Comments
 (0)