You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow partial results by default in ES|QL (#125060)
With this change, ES|QL will return partial results instead of failing
the entire query when encountering errors. Callers should check the
partial_results flag in the response to determine if the result is
partial or complete. If returning partial results is not desired, this
option can be overridden per request via the allow_partial_results
parameter in the query URL or globally via the cluster setting
esql.allow_partial_results.
Relates #122802
summary: Allow partial results by default in ES|QL
3
+
area: ES|QL
4
+
type: breaking
5
+
issues: [122802]
6
+
7
+
breaking:
8
+
title: Allow partial results by default in ES|QL
9
+
area: ES|QL
10
+
details: >-
11
+
In earlier versions of {es}, ES|QL would fail the entire query if it encountered any error. ES|QL now returns partial results instead of failing when encountering errors.
12
+
13
+
impact: >-
14
+
Callers should check the `is_partial` flag returned in the response to determine if the result is partial or complete. If returning partial results is not desired, this option can be overridden per request via an `allow_partial_results` parameter in the query URL or globally via the cluster setting `esql.query.allow_partial_results`.
Copy file name to clipboardexpand all lines: test/external-modules/esql-heap-attack/src/javaRestTest/java/org/elasticsearch/xpack/esql/heap_attack/Clusters.java
Copy file name to clipboardexpand all lines: x-pack/plugin/esql/qa/server/multi-clusters/src/javaRestTest/java/org/elasticsearch/xpack/esql/ccq/EsqlRestValidationIT.java
Copy file name to clipboardexpand all lines: x-pack/plugin/esql/qa/server/multi-clusters/src/javaRestTest/java/org/elasticsearch/xpack/esql/ccq/RequestIndexFilteringIT.java
Copy file name to clipboardexpand all lines: x-pack/plugin/esql/qa/server/single-node/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/single_node/RestEsqlIT.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ public void testInvalidPragma() throws IOException {
Copy file name to clipboardexpand all lines: x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/EsqlRestValidationTestCase.java
Copy file name to clipboardexpand all lines: x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/RequestIndexFilteringTestCase.java
+13-4
Original file line number
Diff line number
Diff line change
@@ -198,17 +198,26 @@ public void testIndicesDontExist() throws IOException {
198
198
intdocsTest1 = 0; // we are interested only in the created index, not necessarily that it has data
Copy file name to clipboardexpand all lines: x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/AbstractCrossClusterTestCase.java
Copy file name to clipboardexpand all lines: x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/AbstractEsqlIntegTestCase.java
Copy file name to clipboardexpand all lines: x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/CrossClusterCancellationIT.java
Copy file name to clipboardexpand all lines: x-pack/plugin/security/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/remotecluster/CrossClusterEsqlRCS1MissingIndicesIT.java
+2
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,7 @@ public class CrossClusterEsqlRCS1MissingIndicesIT extends AbstractRemoteClusterS
0 commit comments