Skip to content

Commit 212e16b

Browse files
authored
ESQL: Drop support for brackets from METADATA syntax (#119846)
This drops the deprecated support for having the METADATA clause provided within square brakets. Fixes #115401
1 parent 60a54e6 commit 212e16b

File tree

11 files changed

+863
-1074
lines changed

11 files changed

+863
-1074
lines changed

docs/changelog/119846.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
pr: 119846
2+
summary: Drop support for brackets from METADATA syntax
3+
area: ES|QL
4+
type: deprecation
5+
issues:
6+
- 115401
7+
deprecation:
8+
title: Drop support for brackets from METADATA syntax
9+
area: ES|QL
10+
details: Please describe the details of this change for the release notes. You can
11+
use asciidoc.
12+
impact: Please describe the impact of this change to users

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -143,18 +143,9 @@ indexString
143143
;
144144

145145
metadata
146-
: metadataOption
147-
| deprecated_metadata
148-
;
149-
150-
metadataOption
151146
: METADATA UNQUOTED_SOURCE (COMMA UNQUOTED_SOURCE)*
152147
;
153148

154-
deprecated_metadata
155-
: OPENING_BRACKET metadataOption CLOSING_BRACKET
156-
;
157-
158149
metricsCommand
159150
: DEV_METRICS indexPattern (COMMA indexPattern)* aggregates=aggFields? (BY grouping=fields)?
160151
;

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

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

0 commit comments

Comments
 (0)