Skip to content

Commit d560527

Browse files
committed
fix unreleased state
1 parent 2847bfb commit d560527

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ public Block toFinal(DriverContext driverContext, IntVector selected) {
230230

231231
@Override
232232
public void close() {
233+
for (int i = 0; i < valueState.size(); i++) {
234+
Releasables.closeWhileHandlingException(valueState.get(i));
235+
}
233236
Releasables.close(valueState, timestampState, seen);
234237
}
235238
}

x-pack/plugin/esql/qa/testFixtures/src/main/resources/observability.csv-spec

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,3 @@ hourly:date | event_duration:long | message:keyword
2121
2023-10-23T12:00:00.000Z | 3450233 | Connected to 10.1.0.3
2222
2023-10-23T13:00:00.000Z | 1232382 | Disconnected
2323
;
24-
25-
26-
first_grouped_long
27-
required_capability: fn_first_last
28-
FROM sample_data
29-
| STATS event_duration = first_value(event_duration) BY hourly = BUCKET(@timestamp, 1 hour)
30-
| SORT hourly
31-
| KEEP hourly, event_duration
32-
;
33-
34-
hourly:date | event_duration:long
35-
2023-10-23T12:00:00.000Z | 3450233
36-
2023-10-23T13:00:00.000Z | 1232382
37-
;

0 commit comments

Comments
 (0)