-
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
base: main
Are you sure you want to change the base?
Changes from all commits
453ad04
ffbe3fd
ce0279b
d3503a3
996cb45
8b7e234
936d10c
448ebc4
080e82e
93354e9
ef8fe18
ff436ec
83a54d1
1c5c3fe
ab8ea09
f794ef0
82e48f4
83a1a96
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,12 +33,12 @@ query | |
; | ||
|
||
sourceCommand | ||
: explainCommand | ||
| fromCommand | ||
: fromCommand | ||
| rowCommand | ||
| showCommand | ||
// in development | ||
| {this.isDevVersion()}? timeSeriesCommand | ||
| {this.isDevVersion()}? explainCommand | ||
; | ||
|
||
processingCommand | ||
|
@@ -239,11 +239,11 @@ commandOption | |
; | ||
|
||
explainCommand | ||
: EXPLAIN subqueryExpression | ||
: DEV_EXPLAIN subqueryExpression | ||
; | ||
|
||
subqueryExpression | ||
: OPENING_BRACKET query CLOSING_BRACKET | ||
: LP query RP | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Aligned with FORK |
||
; | ||
|
||
showCommand | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,9 @@ FROM_COMMA : COMMA -> type(COMMA); | |
FROM_ASSIGN : ASSIGN -> type(ASSIGN); | ||
METADATA : 'metadata'; | ||
|
||
// we need this for EXPLAIN | ||
FROM_RP : RP -> type(RP), popMode; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 (?). There was a problem hiding this comment. Choose a reason for hiding this commentThe 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... |
||
|
||
// in 8.14 ` were not allowed | ||
// this has been relaxed in 8.15 since " is used for quoting | ||
fragment UNQUOTED_SOURCE_PART | ||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
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.
Moving it to dev mode. It didn't work before, so there is really no reason to have it in the GA grammar