@elastic/esql 1.7.0 → 1.7.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.
@@ -23,153 +23,154 @@ export default class esql_parser extends parser_config {
23
23
  static readonly METRICS_INFO = 19;
24
24
  static readonly REGISTERED_DOMAIN = 20;
25
25
  static readonly TS_INFO = 21;
26
- static readonly FROM = 22;
27
- static readonly TS = 23;
28
- static readonly DEV_EXTERNAL = 24;
29
- static readonly FORK = 25;
30
- static readonly FUSE = 26;
31
- static readonly INLINE = 27;
32
- static readonly INLINESTATS = 28;
33
- static readonly JOIN_LOOKUP = 29;
34
- static readonly DEV_JOIN_FULL = 30;
35
- static readonly DEV_JOIN_LEFT = 31;
36
- static readonly DEV_JOIN_RIGHT = 32;
37
- static readonly DEV_LOOKUP = 33;
38
- static readonly MMR = 34;
39
- static readonly MV_EXPAND = 35;
40
- static readonly DROP = 36;
41
- static readonly KEEP = 37;
42
- static readonly DEV_INSIST = 38;
43
- static readonly PROMQL = 39;
44
- static readonly RENAME = 40;
45
- static readonly SET = 41;
46
- static readonly SHOW = 42;
47
- static readonly UNKNOWN_CMD = 43;
48
- static readonly CHANGE_POINT_LINE_COMMENT = 44;
49
- static readonly CHANGE_POINT_MULTILINE_COMMENT = 45;
50
- static readonly CHANGE_POINT_WS = 46;
51
- static readonly ENRICH_POLICY_NAME = 47;
52
- static readonly ENRICH_LINE_COMMENT = 48;
53
- static readonly ENRICH_MULTILINE_COMMENT = 49;
54
- static readonly ENRICH_WS = 50;
55
- static readonly ENRICH_FIELD_LINE_COMMENT = 51;
56
- static readonly ENRICH_FIELD_MULTILINE_COMMENT = 52;
57
- static readonly ENRICH_FIELD_WS = 53;
58
- static readonly EXPLAIN_WS = 54;
59
- static readonly EXPLAIN_LINE_COMMENT = 55;
60
- static readonly EXPLAIN_MULTILINE_COMMENT = 56;
61
- static readonly PIPE = 57;
62
- static readonly QUOTED_STRING = 58;
63
- static readonly INTEGER_LITERAL = 59;
64
- static readonly DECIMAL_LITERAL = 60;
65
- static readonly AND = 61;
66
- static readonly ASC = 62;
67
- static readonly ASSIGN = 63;
68
- static readonly BY = 64;
69
- static readonly CAST_OP = 65;
70
- static readonly COLON = 66;
71
- static readonly SEMICOLON = 67;
72
- static readonly COMMA = 68;
73
- static readonly DESC = 69;
74
- static readonly DOT = 70;
75
- static readonly FALSE = 71;
76
- static readonly FIRST = 72;
77
- static readonly IN = 73;
78
- static readonly IS = 74;
79
- static readonly LAST = 75;
80
- static readonly LIKE = 76;
81
- static readonly NOT = 77;
82
- static readonly NULL = 78;
83
- static readonly NULLS = 79;
84
- static readonly ON = 80;
85
- static readonly OR = 81;
86
- static readonly PARAM = 82;
87
- static readonly RLIKE = 83;
88
- static readonly TRUE = 84;
89
- static readonly WITH = 85;
90
- static readonly EQ = 86;
91
- static readonly CIEQ = 87;
92
- static readonly NEQ = 88;
93
- static readonly LT = 89;
94
- static readonly LTE = 90;
95
- static readonly GT = 91;
96
- static readonly GTE = 92;
97
- static readonly PLUS = 93;
98
- static readonly MINUS = 94;
99
- static readonly ASTERISK = 95;
100
- static readonly SLASH = 96;
101
- static readonly PERCENT = 97;
102
- static readonly LEFT_BRACES = 98;
103
- static readonly RIGHT_BRACES = 99;
104
- static readonly DOUBLE_PARAMS = 100;
105
- static readonly NAMED_OR_POSITIONAL_PARAM = 101;
106
- static readonly NAMED_OR_POSITIONAL_DOUBLE_PARAMS = 102;
107
- static readonly OPENING_BRACKET = 103;
108
- static readonly CLOSING_BRACKET = 104;
109
- static readonly LP = 105;
110
- static readonly RP = 106;
111
- static readonly UNQUOTED_IDENTIFIER = 107;
112
- static readonly QUOTED_IDENTIFIER = 108;
113
- static readonly EXPR_LINE_COMMENT = 109;
114
- static readonly EXPR_MULTILINE_COMMENT = 110;
115
- static readonly EXPR_WS = 111;
116
- static readonly METADATA = 112;
117
- static readonly UNQUOTED_SOURCE = 113;
118
- static readonly FROM_LINE_COMMENT = 114;
119
- static readonly FROM_MULTILINE_COMMENT = 115;
120
- static readonly FROM_WS = 116;
121
- static readonly FORK_WS = 117;
122
- static readonly FORK_LINE_COMMENT = 118;
123
- static readonly FORK_MULTILINE_COMMENT = 119;
124
- static readonly GROUP = 120;
125
- static readonly SCORE = 121;
126
- static readonly KEY = 122;
127
- static readonly FUSE_LINE_COMMENT = 123;
128
- static readonly FUSE_MULTILINE_COMMENT = 124;
129
- static readonly FUSE_WS = 125;
130
- static readonly INLINE_STATS = 126;
131
- static readonly INLINE_LINE_COMMENT = 127;
132
- static readonly INLINE_MULTILINE_COMMENT = 128;
133
- static readonly INLINE_WS = 129;
134
- static readonly JOIN = 130;
135
- static readonly USING = 131;
136
- static readonly JOIN_LINE_COMMENT = 132;
137
- static readonly JOIN_MULTILINE_COMMENT = 133;
138
- static readonly JOIN_WS = 134;
139
- static readonly LOOKUP_LINE_COMMENT = 135;
140
- static readonly LOOKUP_MULTILINE_COMMENT = 136;
141
- static readonly LOOKUP_WS = 137;
142
- static readonly LOOKUP_FIELD_LINE_COMMENT = 138;
143
- static readonly LOOKUP_FIELD_MULTILINE_COMMENT = 139;
144
- static readonly LOOKUP_FIELD_WS = 140;
145
- static readonly MMR_LIMIT = 141;
146
- static readonly MMR_LINE_COMMENT = 142;
147
- static readonly MMR_MULTILINE_COMMENT = 143;
148
- static readonly MMR_WS = 144;
149
- static readonly MVEXPAND_LINE_COMMENT = 145;
150
- static readonly MVEXPAND_MULTILINE_COMMENT = 146;
151
- static readonly MVEXPAND_WS = 147;
152
- static readonly ID_PATTERN = 148;
153
- static readonly PROJECT_LINE_COMMENT = 149;
154
- static readonly PROJECT_MULTILINE_COMMENT = 150;
155
- static readonly PROJECT_WS = 151;
156
- static readonly PROMQL_PARAMS_LINE_COMMENT = 152;
157
- static readonly PROMQL_PARAMS_MULTILINE_COMMENT = 153;
158
- static readonly PROMQL_PARAMS_WS = 154;
159
- static readonly PROMQL_QUERY_COMMENT = 155;
160
- static readonly PROMQL_SINGLE_QUOTED_STRING = 156;
161
- static readonly PROMQL_OTHER_QUERY_CONTENT = 157;
162
- static readonly AS = 158;
163
- static readonly RENAME_LINE_COMMENT = 159;
164
- static readonly RENAME_MULTILINE_COMMENT = 160;
165
- static readonly RENAME_WS = 161;
166
- static readonly SET_LINE_COMMENT = 162;
167
- static readonly SET_MULTILINE_COMMENT = 163;
168
- static readonly SET_WS = 164;
169
- static readonly INFO = 165;
170
- static readonly SHOW_LINE_COMMENT = 166;
171
- static readonly SHOW_MULTILINE_COMMENT = 167;
172
- static readonly SHOW_WS = 168;
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 JOIN = 131;
136
+ static readonly USING = 132;
137
+ static readonly JOIN_LINE_COMMENT = 133;
138
+ static readonly JOIN_MULTILINE_COMMENT = 134;
139
+ static readonly JOIN_WS = 135;
140
+ static readonly LOOKUP_LINE_COMMENT = 136;
141
+ static readonly LOOKUP_MULTILINE_COMMENT = 137;
142
+ static readonly LOOKUP_WS = 138;
143
+ static readonly LOOKUP_FIELD_LINE_COMMENT = 139;
144
+ static readonly LOOKUP_FIELD_MULTILINE_COMMENT = 140;
145
+ static readonly LOOKUP_FIELD_WS = 141;
146
+ static readonly MMR_LIMIT = 142;
147
+ static readonly MMR_LINE_COMMENT = 143;
148
+ static readonly MMR_MULTILINE_COMMENT = 144;
149
+ static readonly MMR_WS = 145;
150
+ static readonly MVEXPAND_LINE_COMMENT = 146;
151
+ static readonly MVEXPAND_MULTILINE_COMMENT = 147;
152
+ static readonly MVEXPAND_WS = 148;
153
+ static readonly ID_PATTERN = 149;
154
+ static readonly PROJECT_LINE_COMMENT = 150;
155
+ static readonly PROJECT_MULTILINE_COMMENT = 151;
156
+ static readonly PROJECT_WS = 152;
157
+ static readonly PROMQL_PARAMS_LINE_COMMENT = 153;
158
+ static readonly PROMQL_PARAMS_MULTILINE_COMMENT = 154;
159
+ static readonly PROMQL_PARAMS_WS = 155;
160
+ static readonly PROMQL_QUERY_COMMENT = 156;
161
+ static readonly PROMQL_SINGLE_QUOTED_STRING = 157;
162
+ static readonly PROMQL_OTHER_QUERY_CONTENT = 158;
163
+ static readonly AS = 159;
164
+ static readonly RENAME_LINE_COMMENT = 160;
165
+ static readonly RENAME_MULTILINE_COMMENT = 161;
166
+ static readonly RENAME_WS = 162;
167
+ static readonly SET_LINE_COMMENT = 163;
168
+ static readonly SET_MULTILINE_COMMENT = 164;
169
+ static readonly SET_WS = 165;
170
+ static readonly INFO = 166;
171
+ static readonly SHOW_LINE_COMMENT = 167;
172
+ static readonly SHOW_MULTILINE_COMMENT = 168;
173
+ static readonly SHOW_WS = 169;
173
174
  static readonly EOF: number;
174
175
  static readonly RULE_statements = 0;
175
176
  static readonly RULE_singleStatement = 1;
@@ -248,43 +249,44 @@ export default class esql_parser extends parser_config {
248
249
  static readonly RULE_insistCommand = 74;
249
250
  static readonly RULE_uriPartsCommand = 75;
250
251
  static readonly RULE_registeredDomainCommand = 76;
251
- static readonly RULE_setCommand = 77;
252
- static readonly RULE_setField = 78;
253
- static readonly RULE_mmrCommand = 79;
254
- static readonly RULE_mmrQueryVectorParams = 80;
255
- static readonly RULE_booleanExpression = 81;
256
- static readonly RULE_regexBooleanExpression = 82;
257
- static readonly RULE_matchBooleanExpression = 83;
258
- static readonly RULE_valueExpression = 84;
259
- static readonly RULE_operatorExpression = 85;
260
- static readonly RULE_primaryExpression = 86;
261
- static readonly RULE_functionExpression = 87;
262
- static readonly RULE_functionName = 88;
263
- static readonly RULE_mapExpression = 89;
264
- static readonly RULE_entryExpression = 90;
265
- static readonly RULE_mapValue = 91;
266
- static readonly RULE_constant = 92;
267
- static readonly RULE_booleanValue = 93;
268
- static readonly RULE_numericValue = 94;
269
- static readonly RULE_decimalValue = 95;
270
- static readonly RULE_integerValue = 96;
271
- static readonly RULE_string = 97;
272
- static readonly RULE_comparisonOperator = 98;
273
- static readonly RULE_joinCommand = 99;
274
- static readonly RULE_joinTarget = 100;
275
- static readonly RULE_joinCondition = 101;
276
- static readonly RULE_promqlCommand = 102;
277
- static readonly RULE_valueName = 103;
278
- static readonly RULE_promqlParam = 104;
279
- static readonly RULE_promqlParamName = 105;
280
- static readonly RULE_promqlParamValue = 106;
281
- static readonly RULE_promqlQueryContent = 107;
282
- static readonly RULE_promqlQueryPart = 108;
283
- static readonly RULE_promqlIndexPattern = 109;
284
- static readonly RULE_promqlClusterString = 110;
285
- static readonly RULE_promqlSelectorString = 111;
286
- static readonly RULE_promqlUnquotedIndexString = 112;
287
- static readonly RULE_promqlIndexString = 113;
252
+ static readonly RULE_userAgentCommand = 77;
253
+ static readonly RULE_setCommand = 78;
254
+ static readonly RULE_setField = 79;
255
+ static readonly RULE_mmrCommand = 80;
256
+ static readonly RULE_mmrQueryVectorParams = 81;
257
+ static readonly RULE_booleanExpression = 82;
258
+ static readonly RULE_regexBooleanExpression = 83;
259
+ static readonly RULE_matchBooleanExpression = 84;
260
+ static readonly RULE_valueExpression = 85;
261
+ static readonly RULE_operatorExpression = 86;
262
+ static readonly RULE_primaryExpression = 87;
263
+ static readonly RULE_functionExpression = 88;
264
+ static readonly RULE_functionName = 89;
265
+ static readonly RULE_mapExpression = 90;
266
+ static readonly RULE_entryExpression = 91;
267
+ static readonly RULE_mapValue = 92;
268
+ static readonly RULE_constant = 93;
269
+ static readonly RULE_booleanValue = 94;
270
+ static readonly RULE_numericValue = 95;
271
+ static readonly RULE_decimalValue = 96;
272
+ static readonly RULE_integerValue = 97;
273
+ static readonly RULE_string = 98;
274
+ static readonly RULE_comparisonOperator = 99;
275
+ static readonly RULE_joinCommand = 100;
276
+ static readonly RULE_joinTarget = 101;
277
+ static readonly RULE_joinCondition = 102;
278
+ static readonly RULE_promqlCommand = 103;
279
+ static readonly RULE_valueName = 104;
280
+ static readonly RULE_promqlParam = 105;
281
+ static readonly RULE_promqlParamName = 106;
282
+ static readonly RULE_promqlParamValue = 107;
283
+ static readonly RULE_promqlQueryContent = 108;
284
+ static readonly RULE_promqlQueryPart = 109;
285
+ static readonly RULE_promqlIndexPattern = 110;
286
+ static readonly RULE_promqlClusterString = 111;
287
+ static readonly RULE_promqlSelectorString = 112;
288
+ static readonly RULE_promqlUnquotedIndexString = 113;
289
+ static readonly RULE_promqlIndexString = 114;
288
290
  static readonly literalNames: (string | null)[];
289
291
  static readonly symbolicNames: (string | null)[];
290
292
  static readonly ruleNames: string[];
@@ -374,6 +376,7 @@ export default class esql_parser extends parser_config {
374
376
  insistCommand(): InsistCommandContext;
375
377
  uriPartsCommand(): UriPartsCommandContext;
376
378
  registeredDomainCommand(): RegisteredDomainCommandContext;
379
+ userAgentCommand(): UserAgentCommandContext;
377
380
  setCommand(): SetCommandContext;
378
381
  setField(): SetFieldContext;
379
382
  mmrCommand(): MmrCommandContext;
@@ -418,10 +421,8 @@ export default class esql_parser extends parser_config {
418
421
  private query_sempred;
419
422
  private sourceCommand_sempred;
420
423
  private processingCommand_sempred;
421
- private indexPatternOrSubquery_sempred;
422
424
  private qualifiedName_sempred;
423
425
  private qualifiedNamePattern_sempred;
424
- private limitByGroupKey_sempred;
425
426
  private forkSubQueryCommand_sempred;
426
427
  private booleanExpression_sempred;
427
428
  private operatorExpression_sempred;
@@ -508,6 +509,7 @@ export declare class ProcessingCommandContext extends ParserRuleContext {
508
509
  metricsInfoCommand(): MetricsInfoCommandContext;
509
510
  registeredDomainCommand(): RegisteredDomainCommandContext;
510
511
  tsInfoCommand(): TsInfoCommandContext;
512
+ userAgentCommand(): UserAgentCommandContext;
511
513
  mmrCommand(): MmrCommandContext;
512
514
  lookupCommand(): LookupCommandContext;
513
515
  insistCommand(): InsistCommandContext;
@@ -1264,6 +1266,17 @@ export declare class RegisteredDomainCommandContext extends ParserRuleContext {
1264
1266
  enterRule(listener: esql_parserListener): void;
1265
1267
  exitRule(listener: esql_parserListener): void;
1266
1268
  }
1269
+ export declare class UserAgentCommandContext extends ParserRuleContext {
1270
+ constructor(parser?: esql_parser, parent?: ParserRuleContext, invokingState?: number);
1271
+ USER_AGENT(): TerminalNode;
1272
+ qualifiedName(): QualifiedNameContext;
1273
+ ASSIGN(): TerminalNode;
1274
+ primaryExpression(): PrimaryExpressionContext;
1275
+ commandNamedParameters(): CommandNamedParametersContext;
1276
+ get ruleIndex(): number;
1277
+ enterRule(listener: esql_parserListener): void;
1278
+ exitRule(listener: esql_parserListener): void;
1279
+ }
1267
1280
  export declare class SetCommandContext extends ParserRuleContext {
1268
1281
  constructor(parser?: esql_parser, parent?: ParserRuleContext, invokingState?: number);
1269
1282
  SET(): TerminalNode;