Skip to content

Commit

Permalink
[ES|QL] Update grammars (#194370)
Browse files Browse the repository at this point in the history
This PR updates the ES|QL grammars (lexer and parser) to match the
latest version in Elasticsearch.

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
  • Loading branch information
kibanamachine and stratoula authored Sep 30, 2024
1 parent 35fea77 commit 94120d9
Show file tree
Hide file tree
Showing 4 changed files with 510 additions and 669 deletions.
9 changes: 0 additions & 9 deletions packages/kbn-esql-ast/src/antlr/esql_parser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ processingCommand
// in development
| {this.isDevVersion()}? inlinestatsCommand
| {this.isDevVersion()}? lookupCommand
| {this.isDevVersion()}? matchCommand
;

whereCommand
Expand Down Expand Up @@ -313,12 +312,4 @@ lookupCommand

inlinestatsCommand
: DEV_INLINESTATS stats=fields (BY grouping=fields)?
;

matchCommand
: DEV_MATCH matchQuery
;

matchQuery
: QUOTED_STRING
;
4 changes: 1 addition & 3 deletions packages/kbn-esql-ast/src/antlr/esql_parser.interp

Large diffs are not rendered by default.

Loading

0 comments on commit 94120d9

Please sign in to comment.