Skip to content

Commit 13900f6

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 7ca3ce3 commit 13900f6

File tree

2 files changed

+4
-13
lines changed
  • benchmarks/src/main/java/org/elasticsearch/benchmark/compute/operator
  • x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/blockhash

2 files changed

+4
-13
lines changed

benchmarks/src/main/java/org/elasticsearch/benchmark/compute/operator/AggregatorBenchmark.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,9 @@ private static Operator operator(DriverContext driverContext, String grouping, S
190190
new BlockHash.GroupSpec(1, ElementType.LONG),
191191
new BlockHash.GroupSpec(2, ElementType.BYTES_REF)
192192
);
193-
case TOP_N_LONGS -> List.of(new BlockHash.GroupSpec(
194-
0,
195-
ElementType.LONG,
196-
false,
197-
new BlockHash.TopNDef(0, true, true, TOP_N_LIMIT)
198-
));
193+
case TOP_N_LONGS -> List.of(
194+
new BlockHash.GroupSpec(0, ElementType.LONG, false, new BlockHash.TopNDef(0, true, true, TOP_N_LIMIT))
195+
);
199196
default -> throw new IllegalArgumentException("unsupported grouping [" + grouping + "]");
200197
};
201198
return new HashAggregationOperator(

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/blockhash/BlockHash.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,7 @@ public static BlockHash build(List<GroupSpec> groups, BlockFactory blockFactory,
155155
GroupSpec group = groups.get(0);
156156
if (group.topNDef() != null && group.elementType() == ElementType.LONG) {
157157
TopNDef topNDef = group.topNDef();
158-
return new LongTopNBlockHash(
159-
group.channel(),
160-
topNDef.asc(),
161-
topNDef.nullsFirst(),
162-
topNDef.limit(),
163-
blockFactory
164-
);
158+
return new LongTopNBlockHash(group.channel(), topNDef.asc(), topNDef.nullsFirst(), topNDef.limit(), blockFactory);
165159
}
166160
return newForElementType(group.channel(), group.elementType(), blockFactory);
167161
}

0 commit comments

Comments
 (0)