@elastic/esql 4.1.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/lib/embedded_languages/promql/ast/builder/builder.d.ts +3 -2
  2. package/lib/embedded_languages/promql/ast/builder/builder.d.ts.map +1 -1
  3. package/lib/embedded_languages/promql/parser/cst_to_ast_converter.d.ts +2 -0
  4. package/lib/embedded_languages/promql/parser/cst_to_ast_converter.d.ts.map +1 -1
  5. package/lib/embedded_languages/promql/pretty_print/basic_pretty_printer.d.ts +2 -1
  6. package/lib/embedded_languages/promql/pretty_print/basic_pretty_printer.d.ts.map +1 -1
  7. package/lib/embedded_languages/promql/pretty_print/wrapping_pretty_printer.d.ts +1 -0
  8. package/lib/embedded_languages/promql/pretty_print/wrapping_pretty_printer.d.ts.map +1 -1
  9. package/lib/embedded_languages/promql/types.d.ts +23 -4
  10. package/lib/embedded_languages/promql/types.d.ts.map +1 -1
  11. package/lib/index.js +12821 -12021
  12. package/lib/index.js.map +1 -1
  13. package/lib/index.mjs +12821 -12021
  14. package/lib/index.mjs.map +1 -1
  15. package/lib/parser/antlr/esql_lexer.d.ts +172 -169
  16. package/lib/parser/antlr/esql_lexer.d.ts.map +1 -1
  17. package/lib/parser/antlr/esql_parser.d.ts +301 -268
  18. package/lib/parser/antlr/esql_parser.d.ts.map +1 -1
  19. package/lib/parser/antlr/esql_parser_listener.d.ts +33 -0
  20. package/lib/parser/antlr/esql_parser_listener.d.ts.map +1 -1
  21. package/lib/parser/antlr/promql_parser.d.ts +22 -12
  22. package/lib/parser/antlr/promql_parser.d.ts.map +1 -1
  23. package/lib/parser/antlr/promql_parser_listener.d.ts +11 -0
  24. package/lib/parser/antlr/promql_parser_listener.d.ts.map +1 -1
  25. package/lib/parser/core/cst_to_ast_converter.d.ts.map +1 -1
  26. package/lib/pretty_print/helpers.d.ts.map +1 -1
  27. package/lib/pretty_print/wrapping_pretty_printer.d.ts.map +1 -1
  28. package/package.json +8 -8
@@ -6,175 +6,177 @@ export default class esql_parser extends parser_config {
6
6
  static readonly MULTILINE_COMMENT = 2;
7
7
  static readonly WS = 3;
8
8
  static readonly CHANGE_POINT = 4;
9
- static readonly ENRICH = 5;
10
- static readonly DEV_EXPLAIN = 6;
11
- static readonly COMPLETION = 7;
12
- static readonly DISSECT = 8;
13
- static readonly EVAL = 9;
14
- static readonly GROK = 10;
15
- static readonly LIMIT = 11;
16
- static readonly RERANK = 12;
17
- static readonly ROW = 13;
18
- static readonly SAMPLE = 14;
19
- static readonly SORT = 15;
20
- static readonly STATS = 16;
21
- static readonly WHERE = 17;
22
- static readonly URI_PARTS = 18;
23
- static readonly METRICS_INFO = 19;
24
- static readonly REGISTERED_DOMAIN = 20;
25
- static readonly TS_INFO = 21;
26
- static readonly USER_AGENT = 22;
27
- static readonly FROM = 23;
28
- static readonly TS = 24;
29
- static readonly DEV_EXTERNAL = 25;
30
- static readonly FORK = 26;
31
- static readonly FUSE = 27;
32
- static readonly INLINE = 28;
33
- static readonly INLINESTATS = 29;
34
- static readonly JOIN_LOOKUP = 30;
35
- static readonly DEV_JOIN_FULL = 31;
36
- static readonly DEV_JOIN_LEFT = 32;
37
- static readonly DEV_JOIN_RIGHT = 33;
38
- static readonly DEV_LOOKUP = 34;
39
- static readonly MMR = 35;
40
- static readonly MV_EXPAND = 36;
41
- static readonly DROP = 37;
42
- static readonly KEEP = 38;
43
- static readonly DEV_INSIST = 39;
44
- static readonly PROMQL = 40;
45
- static readonly RENAME = 41;
46
- static readonly SET = 42;
47
- static readonly SHOW = 43;
48
- static readonly UNKNOWN_CMD = 44;
49
- static readonly CHANGE_POINT_LINE_COMMENT = 45;
50
- static readonly CHANGE_POINT_MULTILINE_COMMENT = 46;
51
- static readonly CHANGE_POINT_WS = 47;
52
- static readonly ENRICH_POLICY_NAME = 48;
53
- static readonly ENRICH_LINE_COMMENT = 49;
54
- static readonly ENRICH_MULTILINE_COMMENT = 50;
55
- static readonly ENRICH_WS = 51;
56
- static readonly ENRICH_FIELD_LINE_COMMENT = 52;
57
- static readonly ENRICH_FIELD_MULTILINE_COMMENT = 53;
58
- static readonly ENRICH_FIELD_WS = 54;
59
- static readonly EXPLAIN_WS = 55;
60
- static readonly EXPLAIN_LINE_COMMENT = 56;
61
- static readonly EXPLAIN_MULTILINE_COMMENT = 57;
62
- static readonly PIPE = 58;
63
- static readonly QUOTED_STRING = 59;
64
- static readonly INTEGER_LITERAL = 60;
65
- static readonly DECIMAL_LITERAL = 61;
66
- static readonly AND = 62;
67
- static readonly ASC = 63;
68
- static readonly ASSIGN = 64;
69
- static readonly BY = 65;
70
- static readonly CAST_OP = 66;
71
- static readonly COLON = 67;
72
- static readonly SEMICOLON = 68;
73
- static readonly COMMA = 69;
74
- static readonly DESC = 70;
75
- static readonly DOT = 71;
76
- static readonly FALSE = 72;
77
- static readonly FIRST = 73;
78
- static readonly IN = 74;
79
- static readonly IS = 75;
80
- static readonly LAST = 76;
81
- static readonly LIKE = 77;
82
- static readonly NOT = 78;
83
- static readonly NULL = 79;
84
- static readonly NULLS = 80;
85
- static readonly ON = 81;
86
- static readonly OR = 82;
87
- static readonly PARAM = 83;
88
- static readonly RLIKE = 84;
89
- static readonly TRUE = 85;
90
- static readonly WITH = 86;
91
- static readonly EQ = 87;
92
- static readonly CIEQ = 88;
93
- static readonly NEQ = 89;
94
- static readonly LT = 90;
95
- static readonly LTE = 91;
96
- static readonly GT = 92;
97
- static readonly GTE = 93;
98
- static readonly PLUS = 94;
99
- static readonly MINUS = 95;
100
- static readonly ASTERISK = 96;
101
- static readonly SLASH = 97;
102
- static readonly PERCENT = 98;
103
- static readonly LEFT_BRACES = 99;
104
- static readonly RIGHT_BRACES = 100;
105
- static readonly DOUBLE_PARAMS = 101;
106
- static readonly NAMED_OR_POSITIONAL_PARAM = 102;
107
- static readonly NAMED_OR_POSITIONAL_DOUBLE_PARAMS = 103;
108
- static readonly OPENING_BRACKET = 104;
109
- static readonly CLOSING_BRACKET = 105;
110
- static readonly LP = 106;
111
- static readonly RP = 107;
112
- static readonly UNQUOTED_IDENTIFIER = 108;
113
- static readonly QUOTED_IDENTIFIER = 109;
114
- static readonly EXPR_LINE_COMMENT = 110;
115
- static readonly EXPR_MULTILINE_COMMENT = 111;
116
- static readonly EXPR_WS = 112;
117
- static readonly METADATA = 113;
118
- static readonly UNQUOTED_SOURCE = 114;
119
- static readonly FROM_LINE_COMMENT = 115;
120
- static readonly FROM_MULTILINE_COMMENT = 116;
121
- static readonly FROM_WS = 117;
122
- static readonly FORK_WS = 118;
123
- static readonly FORK_LINE_COMMENT = 119;
124
- static readonly FORK_MULTILINE_COMMENT = 120;
125
- static readonly GROUP = 121;
126
- static readonly SCORE = 122;
127
- static readonly KEY = 123;
128
- static readonly FUSE_LINE_COMMENT = 124;
129
- static readonly FUSE_MULTILINE_COMMENT = 125;
130
- static readonly FUSE_WS = 126;
131
- static readonly INLINE_STATS = 127;
132
- static readonly INLINE_LINE_COMMENT = 128;
133
- static readonly INLINE_MULTILINE_COMMENT = 129;
134
- static readonly INLINE_WS = 130;
135
- static readonly AFTER_IN_LINE_COMMENT = 131;
136
- static readonly AFTER_IN_MULTILINE_COMMENT = 132;
137
- static readonly AFTER_IN_WS = 133;
138
- static readonly IN_EXPR_FALLBACK = 134;
139
- static readonly JOIN = 135;
140
- static readonly USING = 136;
141
- static readonly JOIN_LINE_COMMENT = 137;
142
- static readonly JOIN_MULTILINE_COMMENT = 138;
143
- static readonly JOIN_WS = 139;
144
- static readonly LOOKUP_LINE_COMMENT = 140;
145
- static readonly LOOKUP_MULTILINE_COMMENT = 141;
146
- static readonly LOOKUP_WS = 142;
147
- static readonly LOOKUP_FIELD_LINE_COMMENT = 143;
148
- static readonly LOOKUP_FIELD_MULTILINE_COMMENT = 144;
149
- static readonly LOOKUP_FIELD_WS = 145;
150
- static readonly MMR_LIMIT = 146;
151
- static readonly MMR_LINE_COMMENT = 147;
152
- static readonly MMR_MULTILINE_COMMENT = 148;
153
- static readonly MMR_WS = 149;
154
- static readonly MVEXPAND_LINE_COMMENT = 150;
155
- static readonly MVEXPAND_MULTILINE_COMMENT = 151;
156
- static readonly MVEXPAND_WS = 152;
157
- static readonly ID_PATTERN = 153;
158
- static readonly PROJECT_LINE_COMMENT = 154;
159
- static readonly PROJECT_MULTILINE_COMMENT = 155;
160
- static readonly PROJECT_WS = 156;
161
- static readonly PROMQL_PARAMS_LINE_COMMENT = 157;
162
- static readonly PROMQL_PARAMS_MULTILINE_COMMENT = 158;
163
- static readonly PROMQL_PARAMS_WS = 159;
164
- static readonly PROMQL_QUERY_COMMENT = 160;
165
- static readonly PROMQL_SINGLE_QUOTED_STRING = 161;
166
- static readonly PROMQL_OTHER_QUERY_CONTENT = 162;
167
- static readonly AS = 163;
168
- static readonly RENAME_LINE_COMMENT = 164;
169
- static readonly RENAME_MULTILINE_COMMENT = 165;
170
- static readonly RENAME_WS = 166;
171
- static readonly SET_LINE_COMMENT = 167;
172
- static readonly SET_MULTILINE_COMMENT = 168;
173
- static readonly SET_WS = 169;
174
- static readonly INFO = 170;
175
- static readonly SHOW_LINE_COMMENT = 171;
176
- static readonly SHOW_MULTILINE_COMMENT = 172;
177
- static readonly SHOW_WS = 173;
9
+ static readonly DEV_DEDUP = 5;
10
+ static readonly ENRICH = 6;
11
+ static readonly DEV_EXPLAIN = 7;
12
+ static readonly COMPLETION = 8;
13
+ static readonly DISSECT = 9;
14
+ static readonly EVAL = 10;
15
+ static readonly GROK = 11;
16
+ static readonly LIMIT = 12;
17
+ static readonly RERANK = 13;
18
+ static readonly ROW = 14;
19
+ static readonly SAMPLE = 15;
20
+ static readonly SORT = 16;
21
+ static readonly STATS = 17;
22
+ static readonly WHERE = 18;
23
+ static readonly URI_PARTS = 19;
24
+ static readonly METRICS_INFO = 20;
25
+ static readonly REGISTERED_DOMAIN = 21;
26
+ static readonly TS_INFO = 22;
27
+ static readonly USER_AGENT = 23;
28
+ static readonly TS_COLLAPSE = 24;
29
+ static readonly FROM = 25;
30
+ static readonly TS = 26;
31
+ static readonly DEV_EXTERNAL = 27;
32
+ static readonly FORK = 28;
33
+ static readonly FUSE = 29;
34
+ static readonly INLINE = 30;
35
+ static readonly INLINESTATS = 31;
36
+ static readonly JOIN_LOOKUP = 32;
37
+ static readonly DEV_JOIN_FULL = 33;
38
+ static readonly DEV_JOIN_LEFT = 34;
39
+ static readonly DEV_JOIN_RIGHT = 35;
40
+ static readonly DEV_LOOKUP = 36;
41
+ static readonly MMR = 37;
42
+ static readonly MV_EXPAND = 38;
43
+ static readonly DROP = 39;
44
+ static readonly KEEP = 40;
45
+ static readonly DEV_INSIST = 41;
46
+ static readonly PROMQL = 42;
47
+ static readonly RENAME = 43;
48
+ static readonly SET = 44;
49
+ static readonly SHOW = 45;
50
+ static readonly UNKNOWN_CMD = 46;
51
+ static readonly CHANGE_POINT_LINE_COMMENT = 47;
52
+ static readonly CHANGE_POINT_MULTILINE_COMMENT = 48;
53
+ static readonly CHANGE_POINT_WS = 49;
54
+ static readonly ENRICH_POLICY_NAME = 50;
55
+ static readonly ENRICH_LINE_COMMENT = 51;
56
+ static readonly ENRICH_MULTILINE_COMMENT = 52;
57
+ static readonly ENRICH_WS = 53;
58
+ static readonly ENRICH_FIELD_LINE_COMMENT = 54;
59
+ static readonly ENRICH_FIELD_MULTILINE_COMMENT = 55;
60
+ static readonly ENRICH_FIELD_WS = 56;
61
+ static readonly EXPLAIN_WS = 57;
62
+ static readonly EXPLAIN_LINE_COMMENT = 58;
63
+ static readonly EXPLAIN_MULTILINE_COMMENT = 59;
64
+ static readonly PIPE = 60;
65
+ static readonly QUOTED_STRING = 61;
66
+ static readonly INTEGER_LITERAL = 62;
67
+ static readonly DECIMAL_LITERAL = 63;
68
+ static readonly AND = 64;
69
+ static readonly ASC = 65;
70
+ static readonly ASSIGN = 66;
71
+ static readonly BY = 67;
72
+ static readonly CAST_OP = 68;
73
+ static readonly COLON = 69;
74
+ static readonly SEMICOLON = 70;
75
+ static readonly COMMA = 71;
76
+ static readonly DESC = 72;
77
+ static readonly DOT = 73;
78
+ static readonly FALSE = 74;
79
+ static readonly FIRST = 75;
80
+ static readonly IN = 76;
81
+ static readonly IS = 77;
82
+ static readonly LAST = 78;
83
+ static readonly LIKE = 79;
84
+ static readonly NOT = 80;
85
+ static readonly NULL = 81;
86
+ static readonly NULLS = 82;
87
+ static readonly ON = 83;
88
+ static readonly OR = 84;
89
+ static readonly PARAM = 85;
90
+ static readonly RLIKE = 86;
91
+ static readonly TRUE = 87;
92
+ static readonly WITH = 88;
93
+ static readonly EQ = 89;
94
+ static readonly CIEQ = 90;
95
+ static readonly NEQ = 91;
96
+ static readonly LT = 92;
97
+ static readonly LTE = 93;
98
+ static readonly GT = 94;
99
+ static readonly GTE = 95;
100
+ static readonly PLUS = 96;
101
+ static readonly MINUS = 97;
102
+ static readonly ASTERISK = 98;
103
+ static readonly SLASH = 99;
104
+ static readonly PERCENT = 100;
105
+ static readonly LEFT_BRACES = 101;
106
+ static readonly RIGHT_BRACES = 102;
107
+ static readonly DOUBLE_PARAMS = 103;
108
+ static readonly NAMED_OR_POSITIONAL_PARAM = 104;
109
+ static readonly NAMED_OR_POSITIONAL_DOUBLE_PARAMS = 105;
110
+ static readonly OPENING_BRACKET = 106;
111
+ static readonly CLOSING_BRACKET = 107;
112
+ static readonly LP = 108;
113
+ static readonly RP = 109;
114
+ static readonly UNQUOTED_IDENTIFIER = 110;
115
+ static readonly QUOTED_IDENTIFIER = 111;
116
+ static readonly EXPR_LINE_COMMENT = 112;
117
+ static readonly EXPR_MULTILINE_COMMENT = 113;
118
+ static readonly EXPR_WS = 114;
119
+ static readonly METADATA = 115;
120
+ static readonly UNQUOTED_SOURCE = 116;
121
+ static readonly FROM_LINE_COMMENT = 117;
122
+ static readonly FROM_MULTILINE_COMMENT = 118;
123
+ static readonly FROM_WS = 119;
124
+ static readonly FORK_WS = 120;
125
+ static readonly FORK_LINE_COMMENT = 121;
126
+ static readonly FORK_MULTILINE_COMMENT = 122;
127
+ static readonly GROUP = 123;
128
+ static readonly SCORE = 124;
129
+ static readonly KEY = 125;
130
+ static readonly FUSE_LINE_COMMENT = 126;
131
+ static readonly FUSE_MULTILINE_COMMENT = 127;
132
+ static readonly FUSE_WS = 128;
133
+ static readonly INLINE_STATS = 129;
134
+ static readonly INLINE_LINE_COMMENT = 130;
135
+ static readonly INLINE_MULTILINE_COMMENT = 131;
136
+ static readonly INLINE_WS = 132;
137
+ static readonly AFTER_IN_LINE_COMMENT = 133;
138
+ static readonly AFTER_IN_MULTILINE_COMMENT = 134;
139
+ static readonly AFTER_IN_WS = 135;
140
+ static readonly IN_EXPR_FALLBACK = 136;
141
+ static readonly JOIN = 137;
142
+ static readonly USING = 138;
143
+ static readonly JOIN_LINE_COMMENT = 139;
144
+ static readonly JOIN_MULTILINE_COMMENT = 140;
145
+ static readonly JOIN_WS = 141;
146
+ static readonly LOOKUP_LINE_COMMENT = 142;
147
+ static readonly LOOKUP_MULTILINE_COMMENT = 143;
148
+ static readonly LOOKUP_WS = 144;
149
+ static readonly LOOKUP_FIELD_LINE_COMMENT = 145;
150
+ static readonly LOOKUP_FIELD_MULTILINE_COMMENT = 146;
151
+ static readonly LOOKUP_FIELD_WS = 147;
152
+ static readonly MMR_LIMIT = 148;
153
+ static readonly MMR_LINE_COMMENT = 149;
154
+ static readonly MMR_MULTILINE_COMMENT = 150;
155
+ static readonly MMR_WS = 151;
156
+ static readonly MVEXPAND_LINE_COMMENT = 152;
157
+ static readonly MVEXPAND_MULTILINE_COMMENT = 153;
158
+ static readonly MVEXPAND_WS = 154;
159
+ static readonly ID_PATTERN = 155;
160
+ static readonly PROJECT_LINE_COMMENT = 156;
161
+ static readonly PROJECT_MULTILINE_COMMENT = 157;
162
+ static readonly PROJECT_WS = 158;
163
+ static readonly PROMQL_PARAMS_LINE_COMMENT = 159;
164
+ static readonly PROMQL_PARAMS_MULTILINE_COMMENT = 160;
165
+ static readonly PROMQL_PARAMS_WS = 161;
166
+ static readonly PROMQL_QUERY_COMMENT = 162;
167
+ static readonly PROMQL_SINGLE_QUOTED_STRING = 163;
168
+ static readonly PROMQL_OTHER_QUERY_CONTENT = 164;
169
+ static readonly AS = 165;
170
+ static readonly RENAME_LINE_COMMENT = 166;
171
+ static readonly RENAME_MULTILINE_COMMENT = 167;
172
+ static readonly RENAME_WS = 168;
173
+ static readonly SET_LINE_COMMENT = 169;
174
+ static readonly SET_MULTILINE_COMMENT = 170;
175
+ static readonly SET_WS = 171;
176
+ static readonly INFO = 172;
177
+ static readonly SHOW_LINE_COMMENT = 173;
178
+ static readonly SHOW_MULTILINE_COMMENT = 174;
179
+ static readonly SHOW_WS = 175;
178
180
  static readonly EOF: number;
179
181
  static readonly RULE_statements = 0;
180
182
  static readonly RULE_singleStatement = 1;
@@ -192,104 +194,107 @@ export default class esql_parser extends parser_config {
192
194
  static readonly RULE_indexPatternAndMetadataFields = 13;
193
195
  static readonly RULE_indexPatternOrSubquery = 14;
194
196
  static readonly RULE_subquery = 15;
195
- static readonly RULE_indexPattern = 16;
196
- static readonly RULE_clusterString = 17;
197
- static readonly RULE_selectorString = 18;
198
- static readonly RULE_unquotedIndexString = 19;
199
- static readonly RULE_indexString = 20;
200
- static readonly RULE_metadata = 21;
201
- static readonly RULE_evalCommand = 22;
202
- static readonly RULE_statsCommand = 23;
203
- static readonly RULE_aggFields = 24;
204
- static readonly RULE_aggField = 25;
205
- static readonly RULE_qualifiedName = 26;
206
- static readonly RULE_fieldName = 27;
207
- static readonly RULE_qualifiedNamePattern = 28;
208
- static readonly RULE_fieldNamePattern = 29;
209
- static readonly RULE_qualifiedNamePatterns = 30;
210
- static readonly RULE_identifier = 31;
211
- static readonly RULE_identifierPattern = 32;
212
- static readonly RULE_parameter = 33;
213
- static readonly RULE_doubleParameter = 34;
214
- static readonly RULE_identifierOrParameter = 35;
215
- static readonly RULE_stringOrParameter = 36;
216
- static readonly RULE_limitCommand = 37;
217
- static readonly RULE_limitByGroupKey = 38;
218
- static readonly RULE_sortCommand = 39;
219
- static readonly RULE_orderExpression = 40;
220
- static readonly RULE_keepCommand = 41;
221
- static readonly RULE_dropCommand = 42;
222
- static readonly RULE_renameCommand = 43;
223
- static readonly RULE_renameClause = 44;
224
- static readonly RULE_dissectCommand = 45;
225
- static readonly RULE_dissectCommandOptions = 46;
226
- static readonly RULE_dissectCommandOption = 47;
227
- static readonly RULE_commandNamedParameters = 48;
228
- static readonly RULE_grokCommand = 49;
229
- static readonly RULE_mvExpandCommand = 50;
230
- static readonly RULE_explainCommand = 51;
231
- static readonly RULE_subqueryExpression = 52;
232
- static readonly RULE_showCommand = 53;
233
- static readonly RULE_enrichCommand = 54;
234
- static readonly RULE_enrichPolicyName = 55;
235
- static readonly RULE_enrichWithClause = 56;
236
- static readonly RULE_sampleCommand = 57;
237
- static readonly RULE_changePointCommand = 58;
238
- static readonly RULE_forkCommand = 59;
239
- static readonly RULE_forkSubQueries = 60;
240
- static readonly RULE_forkSubQuery = 61;
241
- static readonly RULE_forkSubQueryCommand = 62;
242
- static readonly RULE_forkSubQueryProcessingCommand = 63;
243
- static readonly RULE_rerankCommand = 64;
244
- static readonly RULE_completionCommand = 65;
245
- static readonly RULE_inlineStatsCommand = 66;
246
- static readonly RULE_fuseCommand = 67;
247
- static readonly RULE_fuseConfiguration = 68;
248
- static readonly RULE_fuseKeyByFields = 69;
249
- static readonly RULE_metricsInfoCommand = 70;
250
- static readonly RULE_tsInfoCommand = 71;
251
- static readonly RULE_lookupCommand = 72;
252
- static readonly RULE_insistCommand = 73;
253
- static readonly RULE_uriPartsCommand = 74;
254
- static readonly RULE_registeredDomainCommand = 75;
255
- static readonly RULE_userAgentCommand = 76;
256
- static readonly RULE_setCommand = 77;
257
- static readonly RULE_setField = 78;
258
- static readonly RULE_mmrCommand = 79;
259
- static readonly RULE_mmrQueryVectorParams = 80;
260
- static readonly RULE_booleanExpression = 81;
261
- static readonly RULE_regexBooleanExpression = 82;
262
- static readonly RULE_matchBooleanExpression = 83;
263
- static readonly RULE_valueExpression = 84;
264
- static readonly RULE_operatorExpression = 85;
265
- static readonly RULE_primaryExpression = 86;
266
- static readonly RULE_functionExpression = 87;
267
- static readonly RULE_functionName = 88;
268
- static readonly RULE_mapExpression = 89;
269
- static readonly RULE_entryExpression = 90;
270
- static readonly RULE_mapValue = 91;
271
- static readonly RULE_constant = 92;
272
- static readonly RULE_booleanValue = 93;
273
- static readonly RULE_numericValue = 94;
274
- static readonly RULE_decimalValue = 95;
275
- static readonly RULE_integerValue = 96;
276
- static readonly RULE_string = 97;
277
- static readonly RULE_comparisonOperator = 98;
278
- static readonly RULE_joinCommand = 99;
279
- static readonly RULE_joinTarget = 100;
280
- static readonly RULE_joinCondition = 101;
281
- static readonly RULE_promqlCommand = 102;
282
- static readonly RULE_valueName = 103;
283
- static readonly RULE_promqlParam = 104;
284
- static readonly RULE_promqlParamName = 105;
285
- static readonly RULE_promqlParamValue = 106;
286
- static readonly RULE_promqlQueryContent = 107;
287
- static readonly RULE_promqlQueryPart = 108;
288
- static readonly RULE_promqlIndexPattern = 109;
289
- static readonly RULE_promqlClusterString = 110;
290
- static readonly RULE_promqlSelectorString = 111;
291
- static readonly RULE_promqlUnquotedIndexString = 112;
292
- static readonly RULE_promqlIndexString = 113;
197
+ static readonly RULE_subquerySourceCommand = 16;
198
+ static readonly RULE_indexPattern = 17;
199
+ static readonly RULE_clusterString = 18;
200
+ static readonly RULE_selectorString = 19;
201
+ static readonly RULE_unquotedIndexString = 20;
202
+ static readonly RULE_indexString = 21;
203
+ static readonly RULE_metadata = 22;
204
+ static readonly RULE_evalCommand = 23;
205
+ static readonly RULE_statsCommand = 24;
206
+ static readonly RULE_aggFields = 25;
207
+ static readonly RULE_aggField = 26;
208
+ static readonly RULE_qualifiedName = 27;
209
+ static readonly RULE_fieldName = 28;
210
+ static readonly RULE_qualifiedNamePattern = 29;
211
+ static readonly RULE_fieldNamePattern = 30;
212
+ static readonly RULE_qualifiedNamePatterns = 31;
213
+ static readonly RULE_identifier = 32;
214
+ static readonly RULE_identifierPattern = 33;
215
+ static readonly RULE_parameter = 34;
216
+ static readonly RULE_doubleParameter = 35;
217
+ static readonly RULE_identifierOrParameter = 36;
218
+ static readonly RULE_stringOrParameter = 37;
219
+ static readonly RULE_limitCommand = 38;
220
+ static readonly RULE_limitByGroupKey = 39;
221
+ static readonly RULE_sortCommand = 40;
222
+ static readonly RULE_orderExpression = 41;
223
+ static readonly RULE_keepCommand = 42;
224
+ static readonly RULE_dropCommand = 43;
225
+ static readonly RULE_renameCommand = 44;
226
+ static readonly RULE_renameClause = 45;
227
+ static readonly RULE_dissectCommand = 46;
228
+ static readonly RULE_dissectCommandOptions = 47;
229
+ static readonly RULE_dissectCommandOption = 48;
230
+ static readonly RULE_commandNamedParameters = 49;
231
+ static readonly RULE_grokCommand = 50;
232
+ static readonly RULE_mvExpandCommand = 51;
233
+ static readonly RULE_explainCommand = 52;
234
+ static readonly RULE_subqueryExpression = 53;
235
+ static readonly RULE_showCommand = 54;
236
+ static readonly RULE_enrichCommand = 55;
237
+ static readonly RULE_enrichPolicyName = 56;
238
+ static readonly RULE_enrichWithClause = 57;
239
+ static readonly RULE_sampleCommand = 58;
240
+ static readonly RULE_changePointCommand = 59;
241
+ static readonly RULE_forkCommand = 60;
242
+ static readonly RULE_forkSubQueries = 61;
243
+ static readonly RULE_forkSubQuery = 62;
244
+ static readonly RULE_forkSubQueryCommand = 63;
245
+ static readonly RULE_forkSubQueryProcessingCommand = 64;
246
+ static readonly RULE_rerankCommand = 65;
247
+ static readonly RULE_completionCommand = 66;
248
+ static readonly RULE_inlineStatsCommand = 67;
249
+ static readonly RULE_fuseCommand = 68;
250
+ static readonly RULE_fuseConfiguration = 69;
251
+ static readonly RULE_fuseKeyByFields = 70;
252
+ static readonly RULE_metricsInfoCommand = 71;
253
+ static readonly RULE_tsInfoCommand = 72;
254
+ static readonly RULE_tsCollapseCommand = 73;
255
+ static readonly RULE_lookupCommand = 74;
256
+ static readonly RULE_insistCommand = 75;
257
+ static readonly RULE_dedupCommand = 76;
258
+ static readonly RULE_uriPartsCommand = 77;
259
+ static readonly RULE_registeredDomainCommand = 78;
260
+ static readonly RULE_userAgentCommand = 79;
261
+ static readonly RULE_setCommand = 80;
262
+ static readonly RULE_setField = 81;
263
+ static readonly RULE_mmrCommand = 82;
264
+ static readonly RULE_mmrQueryVectorParams = 83;
265
+ static readonly RULE_booleanExpression = 84;
266
+ static readonly RULE_regexBooleanExpression = 85;
267
+ static readonly RULE_matchBooleanExpression = 86;
268
+ static readonly RULE_valueExpression = 87;
269
+ static readonly RULE_operatorExpression = 88;
270
+ static readonly RULE_primaryExpression = 89;
271
+ static readonly RULE_functionExpression = 90;
272
+ static readonly RULE_functionName = 91;
273
+ static readonly RULE_mapExpression = 92;
274
+ static readonly RULE_entryExpression = 93;
275
+ static readonly RULE_mapValue = 94;
276
+ static readonly RULE_constant = 95;
277
+ static readonly RULE_booleanValue = 96;
278
+ static readonly RULE_numericValue = 97;
279
+ static readonly RULE_decimalValue = 98;
280
+ static readonly RULE_integerValue = 99;
281
+ static readonly RULE_string = 100;
282
+ static readonly RULE_comparisonOperator = 101;
283
+ static readonly RULE_joinCommand = 102;
284
+ static readonly RULE_joinTarget = 103;
285
+ static readonly RULE_joinCondition = 104;
286
+ static readonly RULE_promqlCommand = 105;
287
+ static readonly RULE_valueName = 106;
288
+ static readonly RULE_promqlParam = 107;
289
+ static readonly RULE_promqlParamName = 108;
290
+ static readonly RULE_promqlParamValue = 109;
291
+ static readonly RULE_promqlQueryContent = 110;
292
+ static readonly RULE_promqlQueryPart = 111;
293
+ static readonly RULE_promqlIndexPattern = 112;
294
+ static readonly RULE_promqlClusterString = 113;
295
+ static readonly RULE_promqlSelectorString = 114;
296
+ static readonly RULE_promqlUnquotedIndexString = 115;
297
+ static readonly RULE_promqlIndexString = 116;
293
298
  static readonly literalNames: (string | null)[];
294
299
  static readonly symbolicNames: (string | null)[];
295
300
  static readonly ruleNames: string[];
@@ -317,6 +322,7 @@ export default class esql_parser extends parser_config {
317
322
  indexPatternAndMetadataFields(): IndexPatternAndMetadataFieldsContext;
318
323
  indexPatternOrSubquery(): IndexPatternOrSubqueryContext;
319
324
  subquery(): SubqueryContext;
325
+ subquerySourceCommand(): SubquerySourceCommandContext;
320
326
  indexPattern(): IndexPatternContext;
321
327
  clusterString(): ClusterStringContext;
322
328
  selectorString(): SelectorStringContext;
@@ -374,8 +380,10 @@ export default class esql_parser extends parser_config {
374
380
  fuseKeyByFields(): FuseKeyByFieldsContext;
375
381
  metricsInfoCommand(): MetricsInfoCommandContext;
376
382
  tsInfoCommand(): TsInfoCommandContext;
383
+ tsCollapseCommand(): TsCollapseCommandContext;
377
384
  lookupCommand(): LookupCommandContext;
378
385
  insistCommand(): InsistCommandContext;
386
+ dedupCommand(): DedupCommandContext;
379
387
  uriPartsCommand(): UriPartsCommandContext;
380
388
  registeredDomainCommand(): RegisteredDomainCommandContext;
381
389
  userAgentCommand(): UserAgentCommandContext;
@@ -423,6 +431,7 @@ export default class esql_parser extends parser_config {
423
431
  private query_sempred;
424
432
  private sourceCommand_sempred;
425
433
  private processingCommand_sempred;
434
+ private subquerySourceCommand_sempred;
426
435
  private qualifiedName_sempred;
427
436
  private qualifiedNamePattern_sempred;
428
437
  private forkSubQueryCommand_sempred;
@@ -512,9 +521,11 @@ export declare class ProcessingCommandContext extends ParserRuleContext {
512
521
  registeredDomainCommand(): RegisteredDomainCommandContext;
513
522
  tsInfoCommand(): TsInfoCommandContext;
514
523
  userAgentCommand(): UserAgentCommandContext;
524
+ tsCollapseCommand(): TsCollapseCommandContext;
515
525
  mmrCommand(): MmrCommandContext;
516
526
  lookupCommand(): LookupCommandContext;
517
527
  insistCommand(): InsistCommandContext;
528
+ dedupCommand(): DedupCommandContext;
518
529
  get ruleIndex(): number;
519
530
  enterRule(listener: esql_parserListener): void;
520
531
  exitRule(listener: esql_parserListener): void;
@@ -612,7 +623,7 @@ export declare class IndexPatternOrSubqueryContext extends ParserRuleContext {
612
623
  export declare class SubqueryContext extends ParserRuleContext {
613
624
  constructor(parser?: esql_parser, parent?: ParserRuleContext, invokingState?: number);
614
625
  LP(): TerminalNode;
615
- fromCommand(): FromCommandContext;
626
+ subquerySourceCommand(): SubquerySourceCommandContext;
616
627
  RP(): TerminalNode;
617
628
  PIPE_list(): TerminalNode[];
618
629
  PIPE(i: number): TerminalNode;
@@ -622,6 +633,14 @@ export declare class SubqueryContext extends ParserRuleContext {
622
633
  enterRule(listener: esql_parserListener): void;
623
634
  exitRule(listener: esql_parserListener): void;
624
635
  }
636
+ export declare class SubquerySourceCommandContext extends ParserRuleContext {
637
+ constructor(parser?: esql_parser, parent?: ParserRuleContext, invokingState?: number);
638
+ fromCommand(): FromCommandContext;
639
+ rowCommand(): RowCommandContext;
640
+ get ruleIndex(): number;
641
+ enterRule(listener: esql_parserListener): void;
642
+ exitRule(listener: esql_parserListener): void;
643
+ }
625
644
  export declare class IndexPatternContext extends ParserRuleContext {
626
645
  constructor(parser?: esql_parser, parent?: ParserRuleContext, invokingState?: number);
627
646
  unquotedIndexString(): UnquotedIndexStringContext;
@@ -1225,6 +1244,13 @@ export declare class TsInfoCommandContext extends ParserRuleContext {
1225
1244
  enterRule(listener: esql_parserListener): void;
1226
1245
  exitRule(listener: esql_parserListener): void;
1227
1246
  }
1247
+ export declare class TsCollapseCommandContext extends ParserRuleContext {
1248
+ constructor(parser?: esql_parser, parent?: ParserRuleContext, invokingState?: number);
1249
+ TS_COLLAPSE(): TerminalNode;
1250
+ get ruleIndex(): number;
1251
+ enterRule(listener: esql_parserListener): void;
1252
+ exitRule(listener: esql_parserListener): void;
1253
+ }
1228
1254
  export declare class LookupCommandContext extends ParserRuleContext {
1229
1255
  _tableName: IndexPatternContext;
1230
1256
  _matchFields: QualifiedNamePatternsContext;
@@ -1245,6 +1271,13 @@ export declare class InsistCommandContext extends ParserRuleContext {
1245
1271
  enterRule(listener: esql_parserListener): void;
1246
1272
  exitRule(listener: esql_parserListener): void;
1247
1273
  }
1274
+ export declare class DedupCommandContext extends ParserRuleContext {
1275
+ constructor(parser?: esql_parser, parent?: ParserRuleContext, invokingState?: number);
1276
+ DEV_DEDUP(): TerminalNode;
1277
+ get ruleIndex(): number;
1278
+ enterRule(listener: esql_parserListener): void;
1279
+ exitRule(listener: esql_parserListener): void;
1280
+ }
1248
1281
  export declare class UriPartsCommandContext extends ParserRuleContext {
1249
1282
  constructor(parser?: esql_parser, parent?: ParserRuleContext, invokingState?: number);
1250
1283
  URI_PARTS(): TerminalNode;