- Notifications
You must be signed in to change notification settings - Fork 25.7k
ESQL: Fix double release in inline stats when LocalRelation is reused #136467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
elasticsearchmachine merged 22 commits into elastic:main from kanoshiou:fix-inline-stats-pruned-aggregates Oct 17, 2025
+228 −11
Merged
Changes from 8 commits
Commits
Show all changes
22 commits Select commit Hold shift + click to select a range
a8f9a4d Fix inline stats after pruned aggregate by using `CopyingLocalSupplier`
kanoshiou c989c71 Update docs/changelog/136467.yaml
kanoshiou d28c47c Merge branch 'refs/heads/main' into fix-inline-stats-pruned-aggregates
kanoshiou 97a5900 Fix other scenarios
kanoshiou 906435a Merge branch 'refs/heads/main' into fix-inline-stats-pruned-aggregates
kanoshiou 29c545e Update docs/changelog/136467.yaml
kanoshiou 58345d1 Update tests
kanoshiou 31bcc3b Update tests
kanoshiou 40f93f9 Merge branch 'refs/heads/main' into fix-inline-stats-pruned-aggregates
kanoshiou 712a32b Optimize inline join and local relation handling
kanoshiou b045514 Merge branch 'refs/heads/main' into fix-inline-stats-pruned-aggregates
kanoshiou 4cc2558 Using astefan's approach
kanoshiou b2a26da Merge branch 'refs/heads/main' into fix-inline-stats-pruned-aggregates
kanoshiou 6b55463 Remove tests
kanoshiou ab57a39 Update capability name
kanoshiou 7259a5b required_capability: fork_v9
kanoshiou ee62799 Merge branch 'refs/heads/main' into fix-inline-stats-pruned-aggregates
kanoshiou 85f1808 capabilities clean up
astefan ae47b5c Merge branch 'main' of https://github.com/elastic/elasticsearch into …
astefan e5444f3 Move capability
astefan a52977e Address reviews
astefan 5ca4666 Merge branch 'main' of https://github.com/elastic/elasticsearch into …
astefan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| pr: 136467 | ||
| summary: "ESQL: Fix double release in inline stats when `LocalRelation` is reused" | ||
| area: ES|QL | ||
| type: bug | ||
| issues: | ||
| - 135679 |
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
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
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These queries are generated. This one in particular is relatively clean, but those below are randomised and those identifiers are eye pain (most `` quotations aren't needed either). Usually, they can also be shrunk down to a "minimal" query that reproduces the issue.
Ideally, we'd minimise the queries and use "human-friendly" identifiers, but at a minimum, maybe indicate their source by adding a comment with the originating issue.