Skip to content

Commit

Permalink
fixed compile error after backporting
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg committed Dec 5, 2024
1 parent 4ff643b commit 33a8598
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,20 +204,20 @@ public void testEsqlRuntimeFields() throws IOException {

List<?> values = (List<?>) esqlResponseBody.get("values");
assertThat(values, Matchers.not(Matchers.empty()));
var count = ((List<?>) values.getFirst()).get(0);
var count = ((List<?>) values.get(0)).get(0);
assertThat(count, equalTo(numDocs));
logger.warn("VALUES: {}", values);

var minTimestamp = ((List<?>) values.getFirst()).get(1);
var minTimestamp = ((List<?>) values.get(0)).get(1);
assertThat(minTimestamp, equalTo(formatInstant(expectedMinTimestamp)));
var maxTimestamp = ((List<?>) values.getFirst()).get(2);
var maxTimestamp = ((List<?>) values.get(0)).get(2);
assertThat(maxTimestamp, equalTo(formatInstant(expectedMaxTimestamp)));

var minLength = ((List<?>) values.getFirst()).get(3);
var minLength = ((List<?>) values.get(0)).get(3);
assertThat(minLength, equalTo(20));
var maxLength = ((List<?>) values.getFirst()).get(4);
var maxLength = ((List<?>) values.get(0)).get(4);
assertThat(maxLength, equalTo(20));
var sumLength = ((List<?>) values.getFirst()).get(5);
var sumLength = ((List<?>) values.get(0)).get(5);
assertThat(sumLength, equalTo(20 * numDocs));
}

Expand Down

0 comments on commit 33a8598

Please sign in to comment.