[8.19] ES|QL support for partial results (#223198)#224641
Merged
kibanamachine merged 4 commits intoelastic:8.19from Jun 23, 2025
Merged
[8.19] ES|QL support for partial results (#223198)#224641kibanamachine merged 4 commits intoelastic:8.19from
kibanamachine merged 4 commits intoelastic:8.19from
Conversation
## ES|QL support for partial results [Issue](elastic#211622) We have 2 use cases: - For aggregation query, we set `allow_partial_results` to false - For normal query we are set warning status if there cluster failures ### How to test 1. Create a datastream ``` PUT _index_template/my_datastream_template { "index_patterns": ["my_datastream*"], "data_stream": {}, "template": { "mappings": { "properties": { "@timestamp": { "type": "date" }, "host": { "properties": { "name": { "type": "keyword" } } } } } } } PUT /_data_stream/my_datastream ``` 2. For a single specific index set broken mapping ``` GET my_datastream PUT .ds-my_datastream-2025.06.11-000001/_mapping { "runtime": { "broken": { "type": "keyword", "script": { "source": "emit(doc['nonexistent_field'].value)" } } } } ``` 3. Ingest document ``` POST my_datastream/_doc { "@timestamp": "2025-06-05T09:04:11.493Z" } ``` 4. Check that query return partial result true: ``` POST _query/async?drop_null_columns=true&allow_partial_results=true { "query": "from my_datastream* METADATA _id | limit 101", "keep_alive": "60s" } ``` response: ``` { "is_running": false, "took": 5, "is_partial": true, ... ``` 4. Create rule ES|QL with the same query and lookback which overlap documents you created on step 3. Observe warning <img width="1261" alt="Screenshot 2025-06-11 at 08 52 07" src="https://github.com/user-attachments/assets/c371f57b-51ff-4a13-96e3-19e2094d794c" /> --------- Co-authored-by: Vitalii Dmyterko <92328789+vitaliidm@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 8bd7f0e)
Contributor
|
@elasticmachine merge upstream |
Contributor
|
@elasticmachine merge upstream |
Contributor
|
I don't import types here, as they wasn't backported in 8.19. |
dhurley14
approved these changes
Jun 23, 2025
Contributor
💚 Build Succeeded
Metrics [docs]
History
cc @nkhristinin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto8.19:Questions ?
Please refer to the Backport tool documentation