Skip to content

Commit 5848776

Browse files
committed
fix grammar
1 parent 479a84a commit 5848776

File tree

7 files changed

+974
-979
lines changed

7 files changed

+974
-979
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ processingCommand
5757
| joinCommand
5858
| changePointCommand
5959
| completionCommand
60+
| sampleCommand
6061
// in development
6162
| {this.isDevVersion()}? inlinestatsCommand
6263
| {this.isDevVersion()}? lookupCommand
6364
| {this.isDevVersion()}? insistCommand
6465
| {this.isDevVersion()}? forkCommand
6566
| {this.isDevVersion()}? rerankCommand
6667
| {this.isDevVersion()}? rrfCommand
67-
| {this.isDevVersion()}? sampleCommand
6868
;
6969

7070
whereCommand
@@ -258,6 +258,10 @@ enrichWithClause
258258
: (newName=qualifiedNamePattern ASSIGN)? enrichField=qualifiedNamePattern
259259
;
260260

261+
sampleCommand
262+
: SAMPLE probability=constant
263+
;
264+
261265
//
262266
// In development
263267
//
@@ -309,7 +313,3 @@ rerankCommand
309313
completionCommand
310314
: COMPLETION (targetField=qualifiedName ASSIGN)? prompt=primaryExpression WITH inferenceId=identifierOrParameter
311315
;
312-
313-
sampleCommand
314-
: SAMPLE probability=constant
315-
;

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

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)