@elastic/esql 1.0.0 → 1.0.2

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.
@@ -21,153 +21,154 @@ export default class esql_parser extends parser_config {
21
21
  static readonly WHERE = 17;
22
22
  static readonly URI_PARTS = 18;
23
23
  static readonly METRICS_INFO = 19;
24
- static readonly FROM = 20;
25
- static readonly TS = 21;
26
- static readonly EXTERNAL = 22;
27
- static readonly FORK = 23;
28
- static readonly FUSE = 24;
29
- static readonly INLINE = 25;
30
- static readonly INLINESTATS = 26;
31
- static readonly JOIN_LOOKUP = 27;
32
- static readonly DEV_JOIN_FULL = 28;
33
- static readonly DEV_JOIN_LEFT = 29;
34
- static readonly DEV_JOIN_RIGHT = 30;
35
- static readonly DEV_LOOKUP = 31;
36
- static readonly DEV_MMR = 32;
37
- static readonly MV_EXPAND = 33;
38
- static readonly DROP = 34;
39
- static readonly KEEP = 35;
40
- static readonly DEV_INSIST = 36;
41
- static readonly PROMQL = 37;
42
- static readonly RENAME = 38;
43
- static readonly SET = 39;
44
- static readonly SHOW = 40;
45
- static readonly UNKNOWN_CMD = 41;
46
- static readonly CHANGE_POINT_LINE_COMMENT = 42;
47
- static readonly CHANGE_POINT_MULTILINE_COMMENT = 43;
48
- static readonly CHANGE_POINT_WS = 44;
49
- static readonly ENRICH_POLICY_NAME = 45;
50
- static readonly ENRICH_LINE_COMMENT = 46;
51
- static readonly ENRICH_MULTILINE_COMMENT = 47;
52
- static readonly ENRICH_WS = 48;
53
- static readonly ENRICH_FIELD_LINE_COMMENT = 49;
54
- static readonly ENRICH_FIELD_MULTILINE_COMMENT = 50;
55
- static readonly ENRICH_FIELD_WS = 51;
56
- static readonly EXPLAIN_WS = 52;
57
- static readonly EXPLAIN_LINE_COMMENT = 53;
58
- static readonly EXPLAIN_MULTILINE_COMMENT = 54;
59
- static readonly PIPE = 55;
60
- static readonly QUOTED_STRING = 56;
61
- static readonly INTEGER_LITERAL = 57;
62
- static readonly DECIMAL_LITERAL = 58;
63
- static readonly AND = 59;
64
- static readonly ASC = 60;
65
- static readonly ASSIGN = 61;
66
- static readonly BY = 62;
67
- static readonly CAST_OP = 63;
68
- static readonly COLON = 64;
69
- static readonly SEMICOLON = 65;
70
- static readonly COMMA = 66;
71
- static readonly DESC = 67;
72
- static readonly DOT = 68;
73
- static readonly FALSE = 69;
74
- static readonly FIRST = 70;
75
- static readonly IN = 71;
76
- static readonly IS = 72;
77
- static readonly LAST = 73;
78
- static readonly LIKE = 74;
79
- static readonly NOT = 75;
80
- static readonly NULL = 76;
81
- static readonly NULLS = 77;
82
- static readonly ON = 78;
83
- static readonly OR = 79;
84
- static readonly PARAM = 80;
85
- static readonly RLIKE = 81;
86
- static readonly TRUE = 82;
87
- static readonly WITH = 83;
88
- static readonly EQ = 84;
89
- static readonly CIEQ = 85;
90
- static readonly NEQ = 86;
91
- static readonly LT = 87;
92
- static readonly LTE = 88;
93
- static readonly GT = 89;
94
- static readonly GTE = 90;
95
- static readonly PLUS = 91;
96
- static readonly MINUS = 92;
97
- static readonly ASTERISK = 93;
98
- static readonly SLASH = 94;
99
- static readonly PERCENT = 95;
100
- static readonly LEFT_BRACES = 96;
101
- static readonly RIGHT_BRACES = 97;
102
- static readonly DOUBLE_PARAMS = 98;
103
- static readonly NAMED_OR_POSITIONAL_PARAM = 99;
104
- static readonly NAMED_OR_POSITIONAL_DOUBLE_PARAMS = 100;
105
- static readonly OPENING_BRACKET = 101;
106
- static readonly CLOSING_BRACKET = 102;
107
- static readonly LP = 103;
108
- static readonly RP = 104;
109
- static readonly UNQUOTED_IDENTIFIER = 105;
110
- static readonly QUOTED_IDENTIFIER = 106;
111
- static readonly EXPR_LINE_COMMENT = 107;
112
- static readonly EXPR_MULTILINE_COMMENT = 108;
113
- static readonly EXPR_WS = 109;
114
- static readonly METADATA = 110;
115
- static readonly UNQUOTED_SOURCE = 111;
116
- static readonly FROM_LINE_COMMENT = 112;
117
- static readonly FROM_MULTILINE_COMMENT = 113;
118
- static readonly FROM_WS = 114;
119
- static readonly FORK_WS = 115;
120
- static readonly FORK_LINE_COMMENT = 116;
121
- static readonly FORK_MULTILINE_COMMENT = 117;
122
- static readonly GROUP = 118;
123
- static readonly SCORE = 119;
124
- static readonly KEY = 120;
125
- static readonly FUSE_LINE_COMMENT = 121;
126
- static readonly FUSE_MULTILINE_COMMENT = 122;
127
- static readonly FUSE_WS = 123;
128
- static readonly INLINE_STATS = 124;
129
- static readonly INLINE_LINE_COMMENT = 125;
130
- static readonly INLINE_MULTILINE_COMMENT = 126;
131
- static readonly INLINE_WS = 127;
132
- static readonly JOIN = 128;
133
- static readonly USING = 129;
134
- static readonly JOIN_LINE_COMMENT = 130;
135
- static readonly JOIN_MULTILINE_COMMENT = 131;
136
- static readonly JOIN_WS = 132;
137
- static readonly LOOKUP_LINE_COMMENT = 133;
138
- static readonly LOOKUP_MULTILINE_COMMENT = 134;
139
- static readonly LOOKUP_WS = 135;
140
- static readonly LOOKUP_FIELD_LINE_COMMENT = 136;
141
- static readonly LOOKUP_FIELD_MULTILINE_COMMENT = 137;
142
- static readonly LOOKUP_FIELD_WS = 138;
143
- static readonly MMR_LIMIT = 139;
144
- static readonly MMR_LINE_COMMENT = 140;
145
- static readonly MMR_MULTILINE_COMMENT = 141;
146
- static readonly MMR_WS = 142;
147
- static readonly MVEXPAND_LINE_COMMENT = 143;
148
- static readonly MVEXPAND_MULTILINE_COMMENT = 144;
149
- static readonly MVEXPAND_WS = 145;
150
- static readonly ID_PATTERN = 146;
151
- static readonly PROJECT_LINE_COMMENT = 147;
152
- static readonly PROJECT_MULTILINE_COMMENT = 148;
153
- static readonly PROJECT_WS = 149;
154
- static readonly PROMQL_PARAMS_LINE_COMMENT = 150;
155
- static readonly PROMQL_PARAMS_MULTILINE_COMMENT = 151;
156
- static readonly PROMQL_PARAMS_WS = 152;
157
- static readonly PROMQL_QUERY_COMMENT = 153;
158
- static readonly PROMQL_SINGLE_QUOTED_STRING = 154;
159
- static readonly PROMQL_OTHER_QUERY_CONTENT = 155;
160
- static readonly AS = 156;
161
- static readonly RENAME_LINE_COMMENT = 157;
162
- static readonly RENAME_MULTILINE_COMMENT = 158;
163
- static readonly RENAME_WS = 159;
164
- static readonly SET_LINE_COMMENT = 160;
165
- static readonly SET_MULTILINE_COMMENT = 161;
166
- static readonly SET_WS = 162;
167
- static readonly INFO = 163;
168
- static readonly SHOW_LINE_COMMENT = 164;
169
- static readonly SHOW_MULTILINE_COMMENT = 165;
170
- static readonly SHOW_WS = 166;
24
+ static readonly REGISTERED_DOMAIN = 20;
25
+ static readonly FROM = 21;
26
+ static readonly TS = 22;
27
+ static readonly DEV_EXTERNAL = 23;
28
+ static readonly FORK = 24;
29
+ static readonly FUSE = 25;
30
+ static readonly INLINE = 26;
31
+ static readonly INLINESTATS = 27;
32
+ static readonly JOIN_LOOKUP = 28;
33
+ static readonly DEV_JOIN_FULL = 29;
34
+ static readonly DEV_JOIN_LEFT = 30;
35
+ static readonly DEV_JOIN_RIGHT = 31;
36
+ static readonly DEV_LOOKUP = 32;
37
+ static readonly DEV_MMR = 33;
38
+ static readonly MV_EXPAND = 34;
39
+ static readonly DROP = 35;
40
+ static readonly KEEP = 36;
41
+ static readonly DEV_INSIST = 37;
42
+ static readonly PROMQL = 38;
43
+ static readonly RENAME = 39;
44
+ static readonly SET = 40;
45
+ static readonly SHOW = 41;
46
+ static readonly UNKNOWN_CMD = 42;
47
+ static readonly CHANGE_POINT_LINE_COMMENT = 43;
48
+ static readonly CHANGE_POINT_MULTILINE_COMMENT = 44;
49
+ static readonly CHANGE_POINT_WS = 45;
50
+ static readonly ENRICH_POLICY_NAME = 46;
51
+ static readonly ENRICH_LINE_COMMENT = 47;
52
+ static readonly ENRICH_MULTILINE_COMMENT = 48;
53
+ static readonly ENRICH_WS = 49;
54
+ static readonly ENRICH_FIELD_LINE_COMMENT = 50;
55
+ static readonly ENRICH_FIELD_MULTILINE_COMMENT = 51;
56
+ static readonly ENRICH_FIELD_WS = 52;
57
+ static readonly EXPLAIN_WS = 53;
58
+ static readonly EXPLAIN_LINE_COMMENT = 54;
59
+ static readonly EXPLAIN_MULTILINE_COMMENT = 55;
60
+ static readonly PIPE = 56;
61
+ static readonly QUOTED_STRING = 57;
62
+ static readonly INTEGER_LITERAL = 58;
63
+ static readonly DECIMAL_LITERAL = 59;
64
+ static readonly AND = 60;
65
+ static readonly ASC = 61;
66
+ static readonly ASSIGN = 62;
67
+ static readonly BY = 63;
68
+ static readonly CAST_OP = 64;
69
+ static readonly COLON = 65;
70
+ static readonly SEMICOLON = 66;
71
+ static readonly COMMA = 67;
72
+ static readonly DESC = 68;
73
+ static readonly DOT = 69;
74
+ static readonly FALSE = 70;
75
+ static readonly FIRST = 71;
76
+ static readonly IN = 72;
77
+ static readonly IS = 73;
78
+ static readonly LAST = 74;
79
+ static readonly LIKE = 75;
80
+ static readonly NOT = 76;
81
+ static readonly NULL = 77;
82
+ static readonly NULLS = 78;
83
+ static readonly ON = 79;
84
+ static readonly OR = 80;
85
+ static readonly PARAM = 81;
86
+ static readonly RLIKE = 82;
87
+ static readonly TRUE = 83;
88
+ static readonly WITH = 84;
89
+ static readonly EQ = 85;
90
+ static readonly CIEQ = 86;
91
+ static readonly NEQ = 87;
92
+ static readonly LT = 88;
93
+ static readonly LTE = 89;
94
+ static readonly GT = 90;
95
+ static readonly GTE = 91;
96
+ static readonly PLUS = 92;
97
+ static readonly MINUS = 93;
98
+ static readonly ASTERISK = 94;
99
+ static readonly SLASH = 95;
100
+ static readonly PERCENT = 96;
101
+ static readonly LEFT_BRACES = 97;
102
+ static readonly RIGHT_BRACES = 98;
103
+ static readonly DOUBLE_PARAMS = 99;
104
+ static readonly NAMED_OR_POSITIONAL_PARAM = 100;
105
+ static readonly NAMED_OR_POSITIONAL_DOUBLE_PARAMS = 101;
106
+ static readonly OPENING_BRACKET = 102;
107
+ static readonly CLOSING_BRACKET = 103;
108
+ static readonly LP = 104;
109
+ static readonly RP = 105;
110
+ static readonly UNQUOTED_IDENTIFIER = 106;
111
+ static readonly QUOTED_IDENTIFIER = 107;
112
+ static readonly EXPR_LINE_COMMENT = 108;
113
+ static readonly EXPR_MULTILINE_COMMENT = 109;
114
+ static readonly EXPR_WS = 110;
115
+ static readonly METADATA = 111;
116
+ static readonly UNQUOTED_SOURCE = 112;
117
+ static readonly FROM_LINE_COMMENT = 113;
118
+ static readonly FROM_MULTILINE_COMMENT = 114;
119
+ static readonly FROM_WS = 115;
120
+ static readonly FORK_WS = 116;
121
+ static readonly FORK_LINE_COMMENT = 117;
122
+ static readonly FORK_MULTILINE_COMMENT = 118;
123
+ static readonly GROUP = 119;
124
+ static readonly SCORE = 120;
125
+ static readonly KEY = 121;
126
+ static readonly FUSE_LINE_COMMENT = 122;
127
+ static readonly FUSE_MULTILINE_COMMENT = 123;
128
+ static readonly FUSE_WS = 124;
129
+ static readonly INLINE_STATS = 125;
130
+ static readonly INLINE_LINE_COMMENT = 126;
131
+ static readonly INLINE_MULTILINE_COMMENT = 127;
132
+ static readonly INLINE_WS = 128;
133
+ static readonly JOIN = 129;
134
+ static readonly USING = 130;
135
+ static readonly JOIN_LINE_COMMENT = 131;
136
+ static readonly JOIN_MULTILINE_COMMENT = 132;
137
+ static readonly JOIN_WS = 133;
138
+ static readonly LOOKUP_LINE_COMMENT = 134;
139
+ static readonly LOOKUP_MULTILINE_COMMENT = 135;
140
+ static readonly LOOKUP_WS = 136;
141
+ static readonly LOOKUP_FIELD_LINE_COMMENT = 137;
142
+ static readonly LOOKUP_FIELD_MULTILINE_COMMENT = 138;
143
+ static readonly LOOKUP_FIELD_WS = 139;
144
+ static readonly MMR_LIMIT = 140;
145
+ static readonly MMR_LINE_COMMENT = 141;
146
+ static readonly MMR_MULTILINE_COMMENT = 142;
147
+ static readonly MMR_WS = 143;
148
+ static readonly MVEXPAND_LINE_COMMENT = 144;
149
+ static readonly MVEXPAND_MULTILINE_COMMENT = 145;
150
+ static readonly MVEXPAND_WS = 146;
151
+ static readonly ID_PATTERN = 147;
152
+ static readonly PROJECT_LINE_COMMENT = 148;
153
+ static readonly PROJECT_MULTILINE_COMMENT = 149;
154
+ static readonly PROJECT_WS = 150;
155
+ static readonly PROMQL_PARAMS_LINE_COMMENT = 151;
156
+ static readonly PROMQL_PARAMS_MULTILINE_COMMENT = 152;
157
+ static readonly PROMQL_PARAMS_WS = 153;
158
+ static readonly PROMQL_QUERY_COMMENT = 154;
159
+ static readonly PROMQL_SINGLE_QUOTED_STRING = 155;
160
+ static readonly PROMQL_OTHER_QUERY_CONTENT = 156;
161
+ static readonly AS = 157;
162
+ static readonly RENAME_LINE_COMMENT = 158;
163
+ static readonly RENAME_MULTILINE_COMMENT = 159;
164
+ static readonly RENAME_WS = 160;
165
+ static readonly SET_LINE_COMMENT = 161;
166
+ static readonly SET_MULTILINE_COMMENT = 162;
167
+ static readonly SET_WS = 163;
168
+ static readonly INFO = 164;
169
+ static readonly SHOW_LINE_COMMENT = 165;
170
+ static readonly SHOW_MULTILINE_COMMENT = 166;
171
+ static readonly SHOW_WS = 167;
171
172
  static readonly EOF: number;
172
173
  static readonly RULE_statements = 0;
173
174
  static readonly RULE_singleStatement = 1;
@@ -242,43 +243,44 @@ export default class esql_parser extends parser_config {
242
243
  static readonly RULE_lookupCommand = 70;
243
244
  static readonly RULE_insistCommand = 71;
244
245
  static readonly RULE_uriPartsCommand = 72;
245
- static readonly RULE_setCommand = 73;
246
- static readonly RULE_setField = 74;
247
- static readonly RULE_mmrCommand = 75;
248
- static readonly RULE_mmrQueryVectorParams = 76;
249
- static readonly RULE_booleanExpression = 77;
250
- static readonly RULE_regexBooleanExpression = 78;
251
- static readonly RULE_matchBooleanExpression = 79;
252
- static readonly RULE_valueExpression = 80;
253
- static readonly RULE_operatorExpression = 81;
254
- static readonly RULE_primaryExpression = 82;
255
- static readonly RULE_functionExpression = 83;
256
- static readonly RULE_functionName = 84;
257
- static readonly RULE_mapExpression = 85;
258
- static readonly RULE_entryExpression = 86;
259
- static readonly RULE_mapValue = 87;
260
- static readonly RULE_constant = 88;
261
- static readonly RULE_booleanValue = 89;
262
- static readonly RULE_numericValue = 90;
263
- static readonly RULE_decimalValue = 91;
264
- static readonly RULE_integerValue = 92;
265
- static readonly RULE_string = 93;
266
- static readonly RULE_comparisonOperator = 94;
267
- static readonly RULE_joinCommand = 95;
268
- static readonly RULE_joinTarget = 96;
269
- static readonly RULE_joinCondition = 97;
270
- static readonly RULE_promqlCommand = 98;
271
- static readonly RULE_valueName = 99;
272
- static readonly RULE_promqlParam = 100;
273
- static readonly RULE_promqlParamName = 101;
274
- static readonly RULE_promqlParamValue = 102;
275
- static readonly RULE_promqlQueryContent = 103;
276
- static readonly RULE_promqlQueryPart = 104;
277
- static readonly RULE_promqlIndexPattern = 105;
278
- static readonly RULE_promqlClusterString = 106;
279
- static readonly RULE_promqlSelectorString = 107;
280
- static readonly RULE_promqlUnquotedIndexString = 108;
281
- static readonly RULE_promqlIndexString = 109;
246
+ static readonly RULE_registeredDomainCommand = 73;
247
+ static readonly RULE_setCommand = 74;
248
+ static readonly RULE_setField = 75;
249
+ static readonly RULE_mmrCommand = 76;
250
+ static readonly RULE_mmrQueryVectorParams = 77;
251
+ static readonly RULE_booleanExpression = 78;
252
+ static readonly RULE_regexBooleanExpression = 79;
253
+ static readonly RULE_matchBooleanExpression = 80;
254
+ static readonly RULE_valueExpression = 81;
255
+ static readonly RULE_operatorExpression = 82;
256
+ static readonly RULE_primaryExpression = 83;
257
+ static readonly RULE_functionExpression = 84;
258
+ static readonly RULE_functionName = 85;
259
+ static readonly RULE_mapExpression = 86;
260
+ static readonly RULE_entryExpression = 87;
261
+ static readonly RULE_mapValue = 88;
262
+ static readonly RULE_constant = 89;
263
+ static readonly RULE_booleanValue = 90;
264
+ static readonly RULE_numericValue = 91;
265
+ static readonly RULE_decimalValue = 92;
266
+ static readonly RULE_integerValue = 93;
267
+ static readonly RULE_string = 94;
268
+ static readonly RULE_comparisonOperator = 95;
269
+ static readonly RULE_joinCommand = 96;
270
+ static readonly RULE_joinTarget = 97;
271
+ static readonly RULE_joinCondition = 98;
272
+ static readonly RULE_promqlCommand = 99;
273
+ static readonly RULE_valueName = 100;
274
+ static readonly RULE_promqlParam = 101;
275
+ static readonly RULE_promqlParamName = 102;
276
+ static readonly RULE_promqlParamValue = 103;
277
+ static readonly RULE_promqlQueryContent = 104;
278
+ static readonly RULE_promqlQueryPart = 105;
279
+ static readonly RULE_promqlIndexPattern = 106;
280
+ static readonly RULE_promqlClusterString = 107;
281
+ static readonly RULE_promqlSelectorString = 108;
282
+ static readonly RULE_promqlUnquotedIndexString = 109;
283
+ static readonly RULE_promqlIndexString = 110;
282
284
  static readonly literalNames: (string | null)[];
283
285
  static readonly symbolicNames: (string | null)[];
284
286
  static readonly ruleNames: string[];
@@ -364,6 +366,7 @@ export default class esql_parser extends parser_config {
364
366
  lookupCommand(): LookupCommandContext;
365
367
  insistCommand(): InsistCommandContext;
366
368
  uriPartsCommand(): UriPartsCommandContext;
369
+ registeredDomainCommand(): RegisteredDomainCommandContext;
367
370
  setCommand(): SetCommandContext;
368
371
  setField(): SetFieldContext;
369
372
  mmrCommand(): MmrCommandContext;
@@ -495,6 +498,7 @@ export declare class ProcessingCommandContext extends ParserRuleContext {
495
498
  fuseCommand(): FuseCommandContext;
496
499
  uriPartsCommand(): UriPartsCommandContext;
497
500
  metricsInfoCommand(): MetricsInfoCommandContext;
501
+ registeredDomainCommand(): RegisteredDomainCommandContext;
498
502
  lookupCommand(): LookupCommandContext;
499
503
  insistCommand(): InsistCommandContext;
500
504
  mmrCommand(): MmrCommandContext;
@@ -566,7 +570,7 @@ export declare class TimeSeriesCommandContext extends ParserRuleContext {
566
570
  }
567
571
  export declare class ExternalCommandContext extends ParserRuleContext {
568
572
  constructor(parser?: esql_parser, parent?: ParserRuleContext, invokingState?: number);
569
- EXTERNAL(): TerminalNode;
573
+ DEV_EXTERNAL(): TerminalNode;
570
574
  stringOrParameter(): StringOrParameterContext;
571
575
  commandNamedParameters(): CommandNamedParametersContext;
572
576
  get ruleIndex(): number;
@@ -1213,6 +1217,16 @@ export declare class UriPartsCommandContext extends ParserRuleContext {
1213
1217
  enterRule(listener: esql_parserListener): void;
1214
1218
  exitRule(listener: esql_parserListener): void;
1215
1219
  }
1220
+ export declare class RegisteredDomainCommandContext extends ParserRuleContext {
1221
+ constructor(parser?: esql_parser, parent?: ParserRuleContext, invokingState?: number);
1222
+ REGISTERED_DOMAIN(): TerminalNode;
1223
+ qualifiedName(): QualifiedNameContext;
1224
+ ASSIGN(): TerminalNode;
1225
+ primaryExpression(): PrimaryExpressionContext;
1226
+ get ruleIndex(): number;
1227
+ enterRule(listener: esql_parserListener): void;
1228
+ exitRule(listener: esql_parserListener): void;
1229
+ }
1216
1230
  export declare class SetCommandContext extends ParserRuleContext {
1217
1231
  constructor(parser?: esql_parser, parent?: ParserRuleContext, invokingState?: number);
1218
1232
  SET(): TerminalNode;