Skip to content

Commit be1baef

Browse files
author
Christoph Büscher
authored
[Tests] Fix type inference issue (#44063)
1 parent a5d9939 commit be1baef

File tree

1 file changed

+2
-1
lines changed
  • x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/execution/search

1 file changed

+2
-1
lines changed

x-pack/plugin/sql/src/test/java/org/elasticsearch/xpack/sql/execution/search/QuerierTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ public void testAggSorting_Randomized() {
7575
for (int j = 0; j < noColumns; j++) {
7676
boolean order = randomBoolean();
7777
ordering[j] = order;
78-
tuples.add(new Tuple<>(j, order ? Comparator.naturalOrder() : Comparator.reverseOrder()));
78+
Comparator comp = order ? Comparator.naturalOrder() : Comparator.reverseOrder();
79+
tuples.add(new Tuple<>(j, comp));
7980
}
8081

8182
// Insert random no of documents (rows) with random 0/1 values for each field

0 commit comments

Comments
 (0)