Skip to content

Commit 6c4ec5a

Browse files
committed
includeMetadata
1 parent 1252fba commit 6c4ec5a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/CrossClusterQueryWithPartialResultsIT.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,10 @@ public void testPartialResults() throws Exception {
7171
request.query("FROM ok*,fail*,*:ok*,*:fail* | KEEP id, fail_me | LIMIT 1000");
7272
request.includeCCSMetadata(randomBoolean());
7373
{
74-
// allow_partial_results = false
75-
request.includeCCSMetadata(randomBoolean());
74+
request.allowPartialResults(false);
7675
IllegalStateException error = expectThrows(IllegalStateException.class, () -> runQuery(request).close());
7776
assertThat(error.getMessage(), containsString("Accessing failing field"));
7877
}
79-
// allow_partial_results = true
8078
request.allowPartialResults(true);
8179
try (var resp = runQuery(request)) {
8280
assertTrue(resp.isPartial());

0 commit comments

Comments
 (0)