-
Notifications
You must be signed in to change notification settings - Fork 25.3k
ES|QL: enable EXPLAIN (snapshot only) #129526
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
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
453ad04
ES|QL: enable EXPLAIN (snapshot only)
luigidellaquila ffbe3fd
Warnings
luigidellaquila ce0279b
Fix test
luigidellaquila d3503a3
Fix test
luigidellaquila 996cb45
Merge branch 'main' into esql/explain
luigidellaquila 8b7e234
Use LP RP instead
luigidellaquila 936d10c
Merge branch 'main' into esql/explain
luigidellaquila 448ebc4
dev mode only
luigidellaquila 080e82e
Fix FROM
luigidellaquila 93354e9
Merge branch 'main' into esql/explain
luigidellaquila ef8fe18
Make it type+plan
luigidellaquila ff436ec
Merge branch 'main' into esql/explain
luigidellaquila 83a54d1
[CI] Auto commit changes from spotless
elasticsearchmachine 1c5c3fe
Merge branch 'main' into esql/explain
luigidellaquila ab8ea09
Merge remote-tracking branch 'luigidellaquila/esql/explain' into esql…
luigidellaquila f794ef0
Merge branch 'main' into esql/explain
luigidellaquila 82e48f4
Merge branch 'main' into esql/explain
luigidellaquila 83a1a96
Fix output
luigidellaquila 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
Fix FROM
- Loading branch information
commit 080e82e92a031d700f8be003c5dbf292c5d21322
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
3 changes: 2 additions & 1 deletion
3
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseLexer.interp
Large diffs are not rendered by default.
Oops, something went wrong.
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.
I see this RP is missing from some modes:
Now, JOIN technically would fail anyway, as the "ON" token changes to expression mode, so the question is if we want it to fail at lexer or parser level (?).
My guess is that a query like
EXPLAIN (FROM index | LOOKUP JOIN lookup)
would fail in different ways depending on this, but I'm not sure of which error we usually preferThere 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.
My actual concern is that every time we add a new command we'll have to do all this push/pop dance, but that's a broader topic...
About the error message, I'm not sure either