Skip to content

Commit 453ad04

Browse files
ES|QL: enable EXPLAIN (snapshot only)
1 parent 9334f34 commit 453ad04

File tree

9 files changed

+1056
-936
lines changed

9 files changed

+1056
-936
lines changed

x-pack/plugin/esql/qa/server/src/main/resources/explain.csv-spec

Lines changed: 0 additions & 19 deletions
This file was deleted.

x-pack/plugin/esql/src/main/antlr/EsqlBaseParser.g4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ query
3333
;
3434

3535
sourceCommand
36-
: explainCommand
37-
| fromCommand
36+
: fromCommand
3837
| rowCommand
3938
| showCommand
4039
// in development
4140
| {this.isDevVersion()}? timeSeriesCommand
41+
| {this.isDevVersion()}? explainCommand
4242
;
4343

4444
processingCommand

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,12 @@ public enum Cap {
12021202
*/
12031203
KNN_FUNCTION(Build.current().isSnapshot()),
12041204

1205-
LIKE_WITH_LIST_OF_PATTERNS;
1205+
LIKE_WITH_LIST_OF_PATTERNS,
1206+
1207+
/**
1208+
* (Re)Added EXPLAIN command
1209+
*/
1210+
EXPLAIN(Build.current().isSnapshot());
12061211

12071212
private final boolean enabled;
12081213

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.interp

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)