Skip to content

Commit 37e1d1c

Browse files
committed
Use double in tests.
1 parent d8fe1db commit 37e1d1c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/RestRerankTestCase.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ public void testRerankWithSingleField() throws IOException {
8989
Map<String, Object> result = runEsqlQuery(query);
9090

9191
var expectedValues = List.of(
92-
List.of("Jane Smith", "Deep Sea Exploration", 0.02941),
93-
List.of("John Doe", "The Future of Exploration", 0.02632),
94-
List.of("Alice Johnson", "History of Space Exploration", 0.02381)
92+
List.of("Jane Smith", "Deep Sea Exploration", 0.02941d),
93+
List.of("John Doe", "The Future of Exploration", 0.02632d),
94+
List.of("Alice Johnson", "History of Space Exploration", 0.02381d)
9595
);
9696

9797
assertResultMap(result, defaultOutputColumns(), expectedValues);
@@ -110,9 +110,9 @@ public void testRerankWithMultipleFields() throws IOException {
110110
Map<String, Object> result = runEsqlQuery(query);
111111
;
112112
var expectedValues = List.of(
113-
List.of("Jane Smith", "Deep Sea Exploration", 0.01818),
114-
List.of("John Doe", "The Future of Exploration", 0.01754),
115-
List.of("Alice Johnson", "History of Space Exploration", 0.01515)
113+
List.of("Jane Smith", "Deep Sea Exploration", 0.01818d),
114+
List.of("John Doe", "The Future of Exploration", 0.01754d),
115+
List.of("Alice Johnson", "History of Space Exploration", 0.01515d)
116116
);
117117

118118
assertResultMap(result, defaultOutputColumns(), expectedValues);
@@ -131,9 +131,9 @@ public void testRerankWithPositionalParams() throws IOException {
131131
Map<String, Object> result = runEsqlQuery(query, "[\"exploration\", \"test_reranker\"]");
132132

133133
var expectedValues = List.of(
134-
List.of("Jane Smith", "Deep Sea Exploration", 0.02941),
135-
List.of("John Doe", "The Future of Exploration", 0.02632),
136-
List.of("Alice Johnson", "History of Space Exploration", 0.02381)
134+
List.of("Jane Smith", "Deep Sea Exploration", 0.02941d),
135+
List.of("John Doe", "The Future of Exploration", 0.02632d),
136+
List.of("Alice Johnson", "History of Space Exploration", 0.02381d)
137137
);
138138

139139
assertResultMap(result, defaultOutputColumns(), expectedValues);
@@ -152,9 +152,9 @@ public void testRerankWithNamedParams() throws IOException {
152152
Map<String, Object> result = runEsqlQuery(query, "[{\"queryText\": \"exploration\"}, {\"inferenceId\": \"test_reranker\"}]");
153153

154154
var expectedValues = List.of(
155-
List.of("Jane Smith", "Deep Sea Exploration", 0.02941),
156-
List.of("John Doe", "The Future of Exploration", 0.02632),
157-
List.of("Alice Johnson", "History of Space Exploration", 0.02381)
155+
List.of("Jane Smith", "Deep Sea Exploration", 0.02941d),
156+
List.of("John Doe", "The Future of Exploration", 0.02632d),
157+
List.of("Alice Johnson", "History of Space Exploration", 0.02381d)
158158
);
159159

160160
assertResultMap(result, defaultOutputColumns(), expectedValues);

0 commit comments

Comments
 (0)