@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.
- package/lib/index.js +9544 -9304
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +9544 -9304
- package/lib/index.mjs.map +1 -1
- package/lib/parser/antlr/esql_lexer.d.ts +148 -147
- package/lib/parser/antlr/esql_lexer.d.ts.map +1 -1
- package/lib/parser/antlr/esql_parser.d.ts +199 -186
- package/lib/parser/antlr/esql_parser.d.ts.map +1 -1
- package/lib/parser/antlr/esql_parser_listener.d.ts +11 -0
- package/lib/parser/antlr/esql_parser_listener.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -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
|
|
27
|
-
static readonly
|
|
28
|
-
static readonly
|
|
29
|
-
static readonly
|
|
30
|
-
static readonly
|
|
31
|
-
static readonly
|
|
32
|
-
static readonly
|
|
33
|
-
static readonly
|
|
34
|
-
static readonly
|
|
35
|
-
static readonly
|
|
36
|
-
static readonly
|
|
37
|
-
static readonly
|
|
38
|
-
static readonly
|
|
39
|
-
static readonly
|
|
40
|
-
static readonly
|
|
41
|
-
static readonly
|
|
42
|
-
static readonly
|
|
43
|
-
static readonly
|
|
44
|
-
static readonly
|
|
45
|
-
static readonly
|
|
46
|
-
static readonly
|
|
47
|
-
static readonly
|
|
48
|
-
static readonly
|
|
49
|
-
static readonly
|
|
50
|
-
static readonly
|
|
51
|
-
static readonly
|
|
52
|
-
static readonly
|
|
53
|
-
static readonly
|
|
54
|
-
static readonly
|
|
55
|
-
static readonly
|
|
56
|
-
static readonly
|
|
57
|
-
static readonly
|
|
58
|
-
static readonly
|
|
59
|
-
static readonly
|
|
60
|
-
static readonly
|
|
61
|
-
static readonly
|
|
62
|
-
static readonly
|
|
63
|
-
static readonly
|
|
64
|
-
static readonly
|
|
65
|
-
static readonly
|
|
66
|
-
static readonly
|
|
67
|
-
static readonly
|
|
68
|
-
static readonly
|
|
69
|
-
static readonly
|
|
70
|
-
static readonly
|
|
71
|
-
static readonly
|
|
72
|
-
static readonly
|
|
73
|
-
static readonly
|
|
74
|
-
static readonly
|
|
75
|
-
static readonly
|
|
76
|
-
static readonly
|
|
77
|
-
static readonly
|
|
78
|
-
static readonly
|
|
79
|
-
static readonly
|
|
80
|
-
static readonly
|
|
81
|
-
static readonly
|
|
82
|
-
static readonly
|
|
83
|
-
static readonly
|
|
84
|
-
static readonly
|
|
85
|
-
static readonly
|
|
86
|
-
static readonly
|
|
87
|
-
static readonly
|
|
88
|
-
static readonly
|
|
89
|
-
static readonly
|
|
90
|
-
static readonly
|
|
91
|
-
static readonly
|
|
92
|
-
static readonly
|
|
93
|
-
static readonly
|
|
94
|
-
static readonly
|
|
95
|
-
static readonly
|
|
96
|
-
static readonly
|
|
97
|
-
static readonly
|
|
98
|
-
static readonly
|
|
99
|
-
static readonly
|
|
100
|
-
static readonly
|
|
101
|
-
static readonly
|
|
102
|
-
static readonly
|
|
103
|
-
static readonly
|
|
104
|
-
static readonly
|
|
105
|
-
static readonly
|
|
106
|
-
static readonly
|
|
107
|
-
static readonly
|
|
108
|
-
static readonly
|
|
109
|
-
static readonly
|
|
110
|
-
static readonly
|
|
111
|
-
static readonly
|
|
112
|
-
static readonly
|
|
113
|
-
static readonly
|
|
114
|
-
static readonly
|
|
115
|
-
static readonly
|
|
116
|
-
static readonly
|
|
117
|
-
static readonly
|
|
118
|
-
static readonly
|
|
119
|
-
static readonly
|
|
120
|
-
static readonly
|
|
121
|
-
static readonly
|
|
122
|
-
static readonly
|
|
123
|
-
static readonly
|
|
124
|
-
static readonly
|
|
125
|
-
static readonly
|
|
126
|
-
static readonly
|
|
127
|
-
static readonly
|
|
128
|
-
static readonly
|
|
129
|
-
static readonly
|
|
130
|
-
static readonly
|
|
131
|
-
static readonly
|
|
132
|
-
static readonly
|
|
133
|
-
static readonly
|
|
134
|
-
static readonly
|
|
135
|
-
static readonly
|
|
136
|
-
static readonly
|
|
137
|
-
static readonly
|
|
138
|
-
static readonly
|
|
139
|
-
static readonly
|
|
140
|
-
static readonly
|
|
141
|
-
static readonly
|
|
142
|
-
static readonly
|
|
143
|
-
static readonly
|
|
144
|
-
static readonly
|
|
145
|
-
static readonly
|
|
146
|
-
static readonly
|
|
147
|
-
static readonly
|
|
148
|
-
static readonly
|
|
149
|
-
static readonly
|
|
150
|
-
static readonly
|
|
151
|
-
static readonly
|
|
152
|
-
static readonly
|
|
153
|
-
static readonly
|
|
154
|
-
static readonly
|
|
155
|
-
static readonly
|
|
156
|
-
static readonly
|
|
157
|
-
static readonly
|
|
158
|
-
static readonly
|
|
159
|
-
static readonly
|
|
160
|
-
static readonly
|
|
161
|
-
static readonly
|
|
162
|
-
static readonly
|
|
163
|
-
static readonly
|
|
164
|
-
static readonly
|
|
165
|
-
static readonly
|
|
166
|
-
static readonly
|
|
167
|
-
static readonly
|
|
168
|
-
static readonly
|
|
169
|
-
static readonly
|
|
170
|
-
static readonly
|
|
171
|
-
static readonly
|
|
172
|
-
static readonly
|
|
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
|
|
252
|
-
static readonly
|
|
253
|
-
static readonly
|
|
254
|
-
static readonly
|
|
255
|
-
static readonly
|
|
256
|
-
static readonly
|
|
257
|
-
static readonly
|
|
258
|
-
static readonly
|
|
259
|
-
static readonly
|
|
260
|
-
static readonly
|
|
261
|
-
static readonly
|
|
262
|
-
static readonly
|
|
263
|
-
static readonly
|
|
264
|
-
static readonly
|
|
265
|
-
static readonly
|
|
266
|
-
static readonly
|
|
267
|
-
static readonly
|
|
268
|
-
static readonly
|
|
269
|
-
static readonly
|
|
270
|
-
static readonly
|
|
271
|
-
static readonly
|
|
272
|
-
static readonly
|
|
273
|
-
static readonly
|
|
274
|
-
static readonly
|
|
275
|
-
static readonly
|
|
276
|
-
static readonly
|
|
277
|
-
static readonly
|
|
278
|
-
static readonly
|
|
279
|
-
static readonly
|
|
280
|
-
static readonly
|
|
281
|
-
static readonly
|
|
282
|
-
static readonly
|
|
283
|
-
static readonly
|
|
284
|
-
static readonly
|
|
285
|
-
static readonly
|
|
286
|
-
static readonly
|
|
287
|
-
static readonly
|
|
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;
|