ESQL: Fix nullify/load for STATS with WHERE#144029
Merged
alex-spies merged 12 commits intoelastic:mainfrom Mar 12, 2026
Merged
Conversation
Collaborator
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Collaborator
|
Hi @alex-spies, I've created a changelog YAML for you. |
Bwc tests otherwise fail as older nodes/clusters do not have the fix.
GalLalouche
approved these changes
Mar 11, 2026
...k/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/AnalyzerUnmappedTests.java
Show resolved
Hide resolved
alex-spies
commented
Mar 11, 2026
...k/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/analysis/rules/ResolveUnmapped.java
Outdated
Show resolved
Hide resolved
GalLalouche
approved these changes
Mar 11, 2026
...k/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/analysis/rules/ResolveUnmapped.java
Outdated
Show resolved
Hide resolved
Collaborator
💔 Backport failed
You can use sqren/backport to manually backport by running |
Contributor
Author
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
alex-spies
added a commit
to alex-spies/elasticsearch
that referenced
this pull request
Mar 13, 2026
Fix nullify/load for commands like `STATS VALUES(field) WHERE field IS NOT NULL` where a missing field leads to unresolved references twice for the same field name. (cherry picked from commit af52ceb) # Conflicts: # x-pack/plugin/esql/qa/testFixtures/src/main/resources/unmapped-load.csv-spec # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/analysis/rules/ResolveUnmapped.java # x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/AnalyzerUnmappedTests.java
elasticsearchmachine
pushed a commit
that referenced
this pull request
Mar 13, 2026
* ESQL: Fix nullify/load for STATS with WHERE (#144029) Fix nullify/load for commands like `STATS VALUES(field) WHERE field IS NOT NULL` where a missing field leads to unresolved references twice for the same field name. (cherry picked from commit af52ceb) # Conflicts: # x-pack/plugin/esql/qa/testFixtures/src/main/resources/unmapped-load.csv-spec # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/analysis/rules/ResolveUnmapped.java # x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/AnalyzerUnmappedTests.java * Fix import * Update required capabilities * Fix test
michalborek
pushed a commit
to michalborek/elasticsearch
that referenced
this pull request
Mar 23, 2026
Fix nullify/load for commands like `STATS VALUES(field) WHERE field IS NOT NULL` where a missing field leads to unresolved references twice for the same field name.
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.
Fix #143991
Developed using AI-assisted tooling