Skip to content

Commit 35e8a1d

Browse files
elastic-vault-github-plugin-prod[bot]elasticmachinestratoula
authored
chore: [ES|QL] Update grammars (#102)
This PR updates the ES|QL grammars (lexer and parser) and PromQL grammars to match the latest version in Elasticsearch. Co-authored-by: Grammar Sync Bot <elasticmachine@users.noreply.github.com> Co-authored-by: Stratou <stratoula1@gmail.com>
1 parent 1b5fbbf commit 35e8a1d

6 files changed

Lines changed: 1658 additions & 1600 deletions

File tree

src/parser/antlr/esql_lexer.interp

Lines changed: 2 additions & 1 deletion
Large diffs are not rendered by default.

src/parser/antlr/esql_lexer.ts

Lines changed: 854 additions & 850 deletions
Large diffs are not rendered by default.

src/parser/antlr/esql_parser.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ sampleCommand
311311
;
312312

313313
changePointCommand
314-
: CHANGE_POINT value=qualifiedName (ON key=qualifiedName)? (AS targetType=qualifiedName COMMA targetPvalue=qualifiedName)?
314+
: CHANGE_POINT value=qualifiedName (ON key=qualifiedName)? (AS targetType=qualifiedName COMMA targetPvalue=qualifiedName)? (BY groupings+=booleanExpression (COMMA groupings+=booleanExpression)*)?
315315
;
316316

317317
forkCommand

src/parser/antlr/esql_parser.interp

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)