-
Notifications
You must be signed in to change notification settings - Fork 25.8k
ES|QL - Add parsing, preanalysis and analysis timing information to profile #139540
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
carlosdelest
merged 24 commits into
elastic:main
from
carlosdelest:enhancement/esql-analysis-preanalysis-profiling
Dec 18, 2025
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
05a6412
Add analysis and preanalysis timing information to profiling and quer…
carlosdelest 5990a3e
Update docs/changelog/139540.yaml
carlosdelest bf07e13
Fix preanalysis and analysis as methods may be called multiple times
carlosdelest 3f600f6
Merge remote-tracking branch 'carlosdelest/enhancement/esql-analysis-…
carlosdelest eb429ac
Fix tests
carlosdelest a12ecbc
Add parsing information
carlosdelest 313d05b
[CI] Auto commit changes from spotless
4969ca9
Add parsing profile info
carlosdelest e42133a
Merge remote-tracking branch 'carlosdelest/enhancement/esql-analysis-…
carlosdelest 1004b33
Merge branch 'main' into enhancement/esql-analysis-preanalysis-profiling
carlosdelest 309263c
Add parsing profile info to tests
carlosdelest c7c3e48
Fix comments
carlosdelest c1e4c0a
Merge remote-tracking branch 'carlosdelest/enhancement/esql-analysis-…
carlosdelest 029ce1b
Fix changelog
carlosdelest b81841e
Add PlanningProfile class
carlosdelest 90f6360
Some changes to make serialization easier
carlosdelest e3fbf19
Add javadoc
carlosdelest 8fe07d0
Improve testing
carlosdelest a34b879
Add transport version
carlosdelest 27a0f28
Fix IT
carlosdelest 2920c83
Fix Csv tests
carlosdelest 2dcb361
Merge remote-tracking branch 'origin/main' into enhancement/esql-anal…
carlosdelest c69d740
Add again transport versions
carlosdelest c08ea3d
Fix test
carlosdelest 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,5 @@ | ||
| pr: 139540 | ||
| summary: ES|QL - Add parsing, preanalysis and analysis timing information to profile | ||
| area: ES|QL | ||
| type: enhancement | ||
| issues: [] |
1 change: 1 addition & 0 deletions
1
server/src/main/resources/transport/definitions/referable/esql_query_planning_profile.csv
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 @@ | ||
| 9251000 |
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 |
|---|---|---|
| @@ -1 +1 @@ | ||
| initial_9.3.0,9250000 | ||
| esql_query_planning_profile,9251000 |
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
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
Oops, something went wrong.
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.
EsqlExecutionInfohas grown to almost 800 lines and has multiple responsibilities now (such as ccs info tracking, profiling, status reportin, isPartial, isStopped). Currently we are thinking about a ways to manage that.I wonder if that would make sense to group all transient timers and define them in a new
private final transient PlanningProfilefield? This would allow to move some of this class complexity elsewhere.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.
Makes sense - I've created a
PlanningProfileclass and moved planning related profiling there.