From 33a8598c49c4ed8175d78da0d664ff333c83060c Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Thu, 5 Dec 2024 09:43:57 +0100 Subject: [PATCH] fixed compile error after backporting --- .../org/elasticsearch/xpack/logsdb/LogsdbRestIT.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/x-pack/plugin/logsdb/src/javaRestTest/java/org/elasticsearch/xpack/logsdb/LogsdbRestIT.java b/x-pack/plugin/logsdb/src/javaRestTest/java/org/elasticsearch/xpack/logsdb/LogsdbRestIT.java index ef9480681f559..d42c1aa240a64 100644 --- a/x-pack/plugin/logsdb/src/javaRestTest/java/org/elasticsearch/xpack/logsdb/LogsdbRestIT.java +++ b/x-pack/plugin/logsdb/src/javaRestTest/java/org/elasticsearch/xpack/logsdb/LogsdbRestIT.java @@ -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)); }