@elastic/esql 1.5.0 → 1.6.0

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 CHANGED
@@ -33859,9 +33859,9 @@ var esql_parser = class _esql_parser extends parser_config {
33859
33859
  let _la;
33860
33860
  try {
33861
33861
  let _alt;
33862
- this.state = 1067;
33862
+ this.state = 1095;
33863
33863
  this._errHandler.sync(this);
33864
- switch (this._interp.adaptivePredict(this._input, 103, this._ctx)) {
33864
+ switch (this._interp.adaptivePredict(this._input, 107, this._ctx)) {
33865
33865
  case 1:
33866
33866
  this.enterOuterAlt(localctx, 1);
33867
33867
  {
@@ -33896,46 +33896,122 @@ var esql_parser = class _esql_parser extends parser_config {
33896
33896
  }
33897
33897
  this.state = 1047;
33898
33898
  this.match(_esql_parser.LP);
33899
+ this.state = 1048;
33900
+ this.match(_esql_parser.NAMED_OR_POSITIONAL_PARAM);
33899
33901
  this.state = 1049;
33902
+ this.match(_esql_parser.RP);
33903
+ }
33904
+ break;
33905
+ case 2:
33906
+ this.enterOuterAlt(localctx, 2);
33907
+ {
33908
+ this.state = 1050;
33909
+ this.match(_esql_parser.PROMQL);
33910
+ this.state = 1054;
33911
+ this._errHandler.sync(this);
33912
+ _alt = this._interp.adaptivePredict(this._input, 100, this._ctx);
33913
+ while (_alt !== 2 && _alt !== import_antlr45.ATN.INVALID_ALT_NUMBER) {
33914
+ if (_alt === 1) {
33915
+ {
33916
+ {
33917
+ this.state = 1051;
33918
+ this.promqlParam();
33919
+ }
33920
+ }
33921
+ }
33922
+ this.state = 1056;
33923
+ this._errHandler.sync(this);
33924
+ _alt = this._interp.adaptivePredict(this._input, 100, this._ctx);
33925
+ }
33926
+ this.state = 1060;
33927
+ this._errHandler.sync(this);
33928
+ _la = this._input.LA(1);
33929
+ if (_la === 107 || _la === 108) {
33930
+ {
33931
+ this.state = 1057;
33932
+ this.valueName();
33933
+ this.state = 1058;
33934
+ this.match(_esql_parser.ASSIGN);
33935
+ }
33936
+ }
33937
+ this.state = 1062;
33938
+ this.match(_esql_parser.NAMED_OR_POSITIONAL_PARAM);
33939
+ }
33940
+ break;
33941
+ case 3:
33942
+ this.enterOuterAlt(localctx, 3);
33943
+ {
33944
+ this.state = 1063;
33945
+ this.match(_esql_parser.PROMQL);
33946
+ this.state = 1067;
33947
+ this._errHandler.sync(this);
33948
+ _alt = this._interp.adaptivePredict(this._input, 102, this._ctx);
33949
+ while (_alt !== 2 && _alt !== import_antlr45.ATN.INVALID_ALT_NUMBER) {
33950
+ if (_alt === 1) {
33951
+ {
33952
+ {
33953
+ this.state = 1064;
33954
+ this.promqlParam();
33955
+ }
33956
+ }
33957
+ }
33958
+ this.state = 1069;
33959
+ this._errHandler.sync(this);
33960
+ _alt = this._interp.adaptivePredict(this._input, 102, this._ctx);
33961
+ }
33962
+ this.state = 1073;
33963
+ this._errHandler.sync(this);
33964
+ _la = this._input.LA(1);
33965
+ if (_la === 107 || _la === 108) {
33966
+ {
33967
+ this.state = 1070;
33968
+ this.valueName();
33969
+ this.state = 1071;
33970
+ this.match(_esql_parser.ASSIGN);
33971
+ }
33972
+ }
33973
+ this.state = 1075;
33974
+ this.match(_esql_parser.LP);
33975
+ this.state = 1077;
33900
33976
  this._errHandler.sync(this);
33901
33977
  _la = this._input.LA(1);
33902
33978
  do {
33903
33979
  {
33904
33980
  {
33905
- this.state = 1048;
33981
+ this.state = 1076;
33906
33982
  this.promqlQueryPart();
33907
33983
  }
33908
33984
  }
33909
- this.state = 1051;
33985
+ this.state = 1079;
33910
33986
  this._errHandler.sync(this);
33911
33987
  _la = this._input.LA(1);
33912
33988
  } while ((_la - 58 & ~31) === 0 && (1 << _la - 58 & 1441) !== 0 || (_la - 101 & ~31) === 0 && (1 << _la - 101 & 4305) !== 0 || (_la - 155 & ~31) === 0 && (1 << _la - 155 & 7) !== 0);
33913
- this.state = 1053;
33989
+ this.state = 1081;
33914
33990
  this.match(_esql_parser.RP);
33915
33991
  }
33916
33992
  break;
33917
- case 2:
33918
- this.enterOuterAlt(localctx, 2);
33993
+ case 4:
33994
+ this.enterOuterAlt(localctx, 4);
33919
33995
  {
33920
- this.state = 1055;
33996
+ this.state = 1083;
33921
33997
  this.match(_esql_parser.PROMQL);
33922
- this.state = 1059;
33998
+ this.state = 1087;
33923
33999
  this._errHandler.sync(this);
33924
- _alt = this._interp.adaptivePredict(this._input, 101, this._ctx);
34000
+ _alt = this._interp.adaptivePredict(this._input, 105, this._ctx);
33925
34001
  while (_alt !== 2 && _alt !== import_antlr45.ATN.INVALID_ALT_NUMBER) {
33926
34002
  if (_alt === 1) {
33927
34003
  {
33928
34004
  {
33929
- this.state = 1056;
34005
+ this.state = 1084;
33930
34006
  this.promqlParam();
33931
34007
  }
33932
34008
  }
33933
34009
  }
33934
- this.state = 1061;
34010
+ this.state = 1089;
33935
34011
  this._errHandler.sync(this);
33936
- _alt = this._interp.adaptivePredict(this._input, 101, this._ctx);
34012
+ _alt = this._interp.adaptivePredict(this._input, 105, this._ctx);
33937
34013
  }
33938
- this.state = 1063;
34014
+ this.state = 1091;
33939
34015
  this._errHandler.sync(this);
33940
34016
  _alt = 1;
33941
34017
  do {
@@ -33943,7 +34019,7 @@ var esql_parser = class _esql_parser extends parser_config {
33943
34019
  case 1:
33944
34020
  {
33945
34021
  {
33946
- this.state = 1062;
34022
+ this.state = 1090;
33947
34023
  this.promqlQueryPart();
33948
34024
  }
33949
34025
  }
@@ -33951,9 +34027,9 @@ var esql_parser = class _esql_parser extends parser_config {
33951
34027
  default:
33952
34028
  throw new import_antlr45.NoViableAltException(this);
33953
34029
  }
33954
- this.state = 1065;
34030
+ this.state = 1093;
33955
34031
  this._errHandler.sync(this);
33956
- _alt = this._interp.adaptivePredict(this._input, 102, this._ctx);
34032
+ _alt = this._interp.adaptivePredict(this._input, 106, this._ctx);
33957
34033
  } while (_alt !== 2 && _alt !== import_antlr45.ATN.INVALID_ALT_NUMBER);
33958
34034
  }
33959
34035
  break;
@@ -33979,7 +34055,7 @@ var esql_parser = class _esql_parser extends parser_config {
33979
34055
  try {
33980
34056
  this.enterOuterAlt(localctx, 1);
33981
34057
  {
33982
- this.state = 1069;
34058
+ this.state = 1097;
33983
34059
  _la = this._input.LA(1);
33984
34060
  if (!(_la === 107 || _la === 108)) {
33985
34061
  this._errHandler.recoverInline(this);
@@ -34008,11 +34084,11 @@ var esql_parser = class _esql_parser extends parser_config {
34008
34084
  try {
34009
34085
  this.enterOuterAlt(localctx, 1);
34010
34086
  {
34011
- this.state = 1071;
34087
+ this.state = 1099;
34012
34088
  localctx._name = this.promqlParamName();
34013
- this.state = 1072;
34089
+ this.state = 1100;
34014
34090
  this.match(_esql_parser.ASSIGN);
34015
- this.state = 1073;
34091
+ this.state = 1101;
34016
34092
  localctx._value = this.promqlParamValue();
34017
34093
  }
34018
34094
  } catch (re) {
@@ -34036,7 +34112,7 @@ var esql_parser = class _esql_parser extends parser_config {
34036
34112
  try {
34037
34113
  this.enterOuterAlt(localctx, 1);
34038
34114
  {
34039
- this.state = 1075;
34115
+ this.state = 1103;
34040
34116
  _la = this._input.LA(1);
34041
34117
  if (!(_la === 58 || (_la - 101 & ~31) === 0 && (1 << _la - 101 & 193) !== 0)) {
34042
34118
  this._errHandler.recoverInline(this);
@@ -34064,7 +34140,7 @@ var esql_parser = class _esql_parser extends parser_config {
34064
34140
  this.enterRule(localctx, 210, _esql_parser.RULE_promqlParamValue);
34065
34141
  try {
34066
34142
  let _alt;
34067
- this.state = 1087;
34143
+ this.state = 1115;
34068
34144
  this._errHandler.sync(this);
34069
34145
  switch (this._input.LA(1)) {
34070
34146
  case 58:
@@ -34072,39 +34148,39 @@ var esql_parser = class _esql_parser extends parser_config {
34072
34148
  case 113:
34073
34149
  this.enterOuterAlt(localctx, 1);
34074
34150
  {
34075
- this.state = 1077;
34151
+ this.state = 1105;
34076
34152
  this.promqlIndexPattern();
34077
- this.state = 1082;
34153
+ this.state = 1110;
34078
34154
  this._errHandler.sync(this);
34079
- _alt = this._interp.adaptivePredict(this._input, 104, this._ctx);
34155
+ _alt = this._interp.adaptivePredict(this._input, 108, this._ctx);
34080
34156
  while (_alt !== 2 && _alt !== import_antlr45.ATN.INVALID_ALT_NUMBER) {
34081
34157
  if (_alt === 1) {
34082
34158
  {
34083
34159
  {
34084
- this.state = 1078;
34160
+ this.state = 1106;
34085
34161
  this.match(_esql_parser.COMMA);
34086
- this.state = 1079;
34162
+ this.state = 1107;
34087
34163
  this.promqlIndexPattern();
34088
34164
  }
34089
34165
  }
34090
34166
  }
34091
- this.state = 1084;
34167
+ this.state = 1112;
34092
34168
  this._errHandler.sync(this);
34093
- _alt = this._interp.adaptivePredict(this._input, 104, this._ctx);
34169
+ _alt = this._interp.adaptivePredict(this._input, 108, this._ctx);
34094
34170
  }
34095
34171
  }
34096
34172
  break;
34097
34173
  case 108:
34098
34174
  this.enterOuterAlt(localctx, 2);
34099
34175
  {
34100
- this.state = 1085;
34176
+ this.state = 1113;
34101
34177
  this.match(_esql_parser.QUOTED_IDENTIFIER);
34102
34178
  }
34103
34179
  break;
34104
34180
  case 101:
34105
34181
  this.enterOuterAlt(localctx, 3);
34106
34182
  {
34107
- this.state = 1086;
34183
+ this.state = 1114;
34108
34184
  this.match(_esql_parser.NAMED_OR_POSITIONAL_PARAM);
34109
34185
  }
34110
34186
  break;
@@ -34132,7 +34208,7 @@ var esql_parser = class _esql_parser extends parser_config {
34132
34208
  try {
34133
34209
  this.enterOuterAlt(localctx, 1);
34134
34210
  {
34135
- this.state = 1089;
34211
+ this.state = 1117;
34136
34212
  _la = this._input.LA(1);
34137
34213
  if (!((_la - 58 & ~31) === 0 && (1 << _la - 58 & 1441) !== 0 || (_la - 101 & ~31) === 0 && (1 << _la - 101 & 4289) !== 0 || (_la - 155 & ~31) === 0 && (1 << _la - 155 & 7) !== 0)) {
34138
34214
  this._errHandler.recoverInline(this);
@@ -34161,7 +34237,7 @@ var esql_parser = class _esql_parser extends parser_config {
34161
34237
  let _la;
34162
34238
  try {
34163
34239
  let _alt;
34164
- this.state = 1104;
34240
+ this.state = 1132;
34165
34241
  this._errHandler.sync(this);
34166
34242
  switch (this._input.LA(1)) {
34167
34243
  case 58:
@@ -34178,7 +34254,7 @@ var esql_parser = class _esql_parser extends parser_config {
34178
34254
  case 157:
34179
34255
  this.enterOuterAlt(localctx, 1);
34180
34256
  {
34181
- this.state = 1092;
34257
+ this.state = 1120;
34182
34258
  this._errHandler.sync(this);
34183
34259
  _alt = 1;
34184
34260
  do {
@@ -34186,7 +34262,7 @@ var esql_parser = class _esql_parser extends parser_config {
34186
34262
  case 1:
34187
34263
  {
34188
34264
  {
34189
- this.state = 1091;
34265
+ this.state = 1119;
34190
34266
  this.promqlQueryContent();
34191
34267
  }
34192
34268
  }
@@ -34194,32 +34270,32 @@ var esql_parser = class _esql_parser extends parser_config {
34194
34270
  default:
34195
34271
  throw new import_antlr45.NoViableAltException(this);
34196
34272
  }
34197
- this.state = 1094;
34273
+ this.state = 1122;
34198
34274
  this._errHandler.sync(this);
34199
- _alt = this._interp.adaptivePredict(this._input, 106, this._ctx);
34275
+ _alt = this._interp.adaptivePredict(this._input, 110, this._ctx);
34200
34276
  } while (_alt !== 2 && _alt !== import_antlr45.ATN.INVALID_ALT_NUMBER);
34201
34277
  }
34202
34278
  break;
34203
34279
  case 105:
34204
34280
  this.enterOuterAlt(localctx, 2);
34205
34281
  {
34206
- this.state = 1096;
34282
+ this.state = 1124;
34207
34283
  this.match(_esql_parser.LP);
34208
- this.state = 1100;
34284
+ this.state = 1128;
34209
34285
  this._errHandler.sync(this);
34210
34286
  _la = this._input.LA(1);
34211
34287
  while ((_la - 58 & ~31) === 0 && (1 << _la - 58 & 1441) !== 0 || (_la - 101 & ~31) === 0 && (1 << _la - 101 & 4305) !== 0 || (_la - 155 & ~31) === 0 && (1 << _la - 155 & 7) !== 0) {
34212
34288
  {
34213
34289
  {
34214
- this.state = 1097;
34290
+ this.state = 1125;
34215
34291
  this.promqlQueryPart();
34216
34292
  }
34217
34293
  }
34218
- this.state = 1102;
34294
+ this.state = 1130;
34219
34295
  this._errHandler.sync(this);
34220
34296
  _la = this._input.LA(1);
34221
34297
  }
34222
- this.state = 1103;
34298
+ this.state = 1131;
34223
34299
  this.match(_esql_parser.RP);
34224
34300
  }
34225
34301
  break;
@@ -34244,35 +34320,35 @@ var esql_parser = class _esql_parser extends parser_config {
34244
34320
  let localctx = new PromqlIndexPatternContext(this, this._ctx, this.state);
34245
34321
  this.enterRule(localctx, 216, _esql_parser.RULE_promqlIndexPattern);
34246
34322
  try {
34247
- this.state = 1115;
34323
+ this.state = 1143;
34248
34324
  this._errHandler.sync(this);
34249
- switch (this._interp.adaptivePredict(this._input, 109, this._ctx)) {
34325
+ switch (this._interp.adaptivePredict(this._input, 113, this._ctx)) {
34250
34326
  case 1:
34251
34327
  this.enterOuterAlt(localctx, 1);
34252
34328
  {
34253
- this.state = 1106;
34329
+ this.state = 1134;
34254
34330
  this.promqlClusterString();
34255
- this.state = 1107;
34331
+ this.state = 1135;
34256
34332
  this.match(_esql_parser.COLON);
34257
- this.state = 1108;
34333
+ this.state = 1136;
34258
34334
  this.promqlUnquotedIndexString();
34259
34335
  }
34260
34336
  break;
34261
34337
  case 2:
34262
34338
  this.enterOuterAlt(localctx, 2);
34263
34339
  {
34264
- this.state = 1110;
34340
+ this.state = 1138;
34265
34341
  this.promqlUnquotedIndexString();
34266
- this.state = 1111;
34342
+ this.state = 1139;
34267
34343
  this.match(_esql_parser.CAST_OP);
34268
- this.state = 1112;
34344
+ this.state = 1140;
34269
34345
  this.promqlSelectorString();
34270
34346
  }
34271
34347
  break;
34272
34348
  case 3:
34273
34349
  this.enterOuterAlt(localctx, 3);
34274
34350
  {
34275
- this.state = 1114;
34351
+ this.state = 1142;
34276
34352
  this.promqlIndexString();
34277
34353
  }
34278
34354
  break;
@@ -34298,7 +34374,7 @@ var esql_parser = class _esql_parser extends parser_config {
34298
34374
  try {
34299
34375
  this.enterOuterAlt(localctx, 1);
34300
34376
  {
34301
- this.state = 1117;
34377
+ this.state = 1145;
34302
34378
  _la = this._input.LA(1);
34303
34379
  if (!(_la === 107 || _la === 113)) {
34304
34380
  this._errHandler.recoverInline(this);
@@ -34328,7 +34404,7 @@ var esql_parser = class _esql_parser extends parser_config {
34328
34404
  try {
34329
34405
  this.enterOuterAlt(localctx, 1);
34330
34406
  {
34331
- this.state = 1119;
34407
+ this.state = 1147;
34332
34408
  _la = this._input.LA(1);
34333
34409
  if (!(_la === 107 || _la === 113)) {
34334
34410
  this._errHandler.recoverInline(this);
@@ -34358,7 +34434,7 @@ var esql_parser = class _esql_parser extends parser_config {
34358
34434
  try {
34359
34435
  this.enterOuterAlt(localctx, 1);
34360
34436
  {
34361
- this.state = 1121;
34437
+ this.state = 1149;
34362
34438
  _la = this._input.LA(1);
34363
34439
  if (!(_la === 107 || _la === 113)) {
34364
34440
  this._errHandler.recoverInline(this);
@@ -34388,7 +34464,7 @@ var esql_parser = class _esql_parser extends parser_config {
34388
34464
  try {
34389
34465
  this.enterOuterAlt(localctx, 1);
34390
34466
  {
34391
- this.state = 1123;
34467
+ this.state = 1151;
34392
34468
  _la = this._input.LA(1);
34393
34469
  if (!(_la === 58 || _la === 107 || _la === 113)) {
34394
34470
  this._errHandler.recoverInline(this);
@@ -34535,7 +34611,7 @@ var esql_parser = class _esql_parser extends parser_config {
34535
34611
  4,
34536
34612
  1,
34537
34613
  168,
34538
- 1126,
34614
+ 1154,
34539
34615
  2,
34540
34616
  0,
34541
34617
  7,
@@ -36765,16 +36841,78 @@ var esql_parser = class _esql_parser extends parser_config {
36765
36841
  101,
36766
36842
  1,
36767
36843
  101,
36844
+ 1,
36845
+ 101,
36846
+ 1,
36847
+ 101,
36848
+ 1,
36849
+ 101,
36850
+ 5,
36851
+ 101,
36852
+ 1053,
36853
+ 8,
36854
+ 101,
36855
+ 10,
36856
+ 101,
36857
+ 12,
36858
+ 101,
36859
+ 1056,
36860
+ 9,
36861
+ 101,
36862
+ 1,
36863
+ 101,
36864
+ 1,
36865
+ 101,
36866
+ 1,
36867
+ 101,
36868
+ 3,
36869
+ 101,
36870
+ 1061,
36871
+ 8,
36872
+ 101,
36873
+ 1,
36874
+ 101,
36875
+ 1,
36876
+ 101,
36877
+ 1,
36878
+ 101,
36879
+ 5,
36880
+ 101,
36881
+ 1066,
36882
+ 8,
36883
+ 101,
36884
+ 10,
36885
+ 101,
36886
+ 12,
36887
+ 101,
36888
+ 1069,
36889
+ 9,
36890
+ 101,
36891
+ 1,
36892
+ 101,
36893
+ 1,
36894
+ 101,
36895
+ 1,
36896
+ 101,
36897
+ 3,
36898
+ 101,
36899
+ 1074,
36900
+ 8,
36901
+ 101,
36902
+ 1,
36903
+ 101,
36904
+ 1,
36905
+ 101,
36768
36906
  4,
36769
36907
  101,
36770
- 1050,
36908
+ 1078,
36771
36909
  8,
36772
36910
  101,
36773
36911
  11,
36774
36912
  101,
36775
36913
  12,
36776
36914
  101,
36777
- 1051,
36915
+ 1079,
36778
36916
  1,
36779
36917
  101,
36780
36918
  1,
@@ -36785,31 +36923,31 @@ var esql_parser = class _esql_parser extends parser_config {
36785
36923
  101,
36786
36924
  5,
36787
36925
  101,
36788
- 1058,
36926
+ 1086,
36789
36927
  8,
36790
36928
  101,
36791
36929
  10,
36792
36930
  101,
36793
36931
  12,
36794
36932
  101,
36795
- 1061,
36933
+ 1089,
36796
36934
  9,
36797
36935
  101,
36798
36936
  1,
36799
36937
  101,
36800
36938
  4,
36801
36939
  101,
36802
- 1064,
36940
+ 1092,
36803
36941
  8,
36804
36942
  101,
36805
36943
  11,
36806
36944
  101,
36807
36945
  12,
36808
36946
  101,
36809
- 1065,
36947
+ 1093,
36810
36948
  3,
36811
36949
  101,
36812
- 1068,
36950
+ 1096,
36813
36951
  8,
36814
36952
  101,
36815
36953
  1,
@@ -36836,14 +36974,14 @@ var esql_parser = class _esql_parser extends parser_config {
36836
36974
  105,
36837
36975
  5,
36838
36976
  105,
36839
- 1081,
36977
+ 1109,
36840
36978
  8,
36841
36979
  105,
36842
36980
  10,
36843
36981
  105,
36844
36982
  12,
36845
36983
  105,
36846
- 1084,
36984
+ 1112,
36847
36985
  9,
36848
36986
  105,
36849
36987
  1,
@@ -36852,7 +36990,7 @@ var esql_parser = class _esql_parser extends parser_config {
36852
36990
  105,
36853
36991
  3,
36854
36992
  105,
36855
- 1088,
36993
+ 1116,
36856
36994
  8,
36857
36995
  105,
36858
36996
  1,
@@ -36863,35 +37001,35 @@ var esql_parser = class _esql_parser extends parser_config {
36863
37001
  107,
36864
37002
  4,
36865
37003
  107,
36866
- 1093,
37004
+ 1121,
36867
37005
  8,
36868
37006
  107,
36869
37007
  11,
36870
37008
  107,
36871
37009
  12,
36872
37010
  107,
36873
- 1094,
37011
+ 1122,
36874
37012
  1,
36875
37013
  107,
36876
37014
  1,
36877
37015
  107,
36878
37016
  5,
36879
37017
  107,
36880
- 1099,
37018
+ 1127,
36881
37019
  8,
36882
37020
  107,
36883
37021
  10,
36884
37022
  107,
36885
37023
  12,
36886
37024
  107,
36887
- 1102,
37025
+ 1130,
36888
37026
  9,
36889
37027
  107,
36890
37028
  1,
36891
37029
  107,
36892
37030
  3,
36893
37031
  107,
36894
- 1105,
37032
+ 1133,
36895
37033
  8,
36896
37034
  107,
36897
37035
  1,
@@ -36914,7 +37052,7 @@ var esql_parser = class _esql_parser extends parser_config {
36914
37052
  108,
36915
37053
  3,
36916
37054
  108,
36917
- 1116,
37055
+ 1144,
36918
37056
  8,
36919
37057
  108,
36920
37058
  1,
@@ -37152,7 +37290,7 @@ var esql_parser = class _esql_parser extends parser_config {
37152
37290
  107,
37153
37291
  113,
37154
37292
  113,
37155
- 1176,
37293
+ 1210,
37156
37294
  0,
37157
37295
  229,
37158
37296
  1,
@@ -37760,73 +37898,73 @@ var esql_parser = class _esql_parser extends parser_config {
37760
37898
  0,
37761
37899
  0,
37762
37900
  202,
37763
- 1067,
37901
+ 1095,
37764
37902
  1,
37765
37903
  0,
37766
37904
  0,
37767
37905
  0,
37768
37906
  204,
37769
- 1069,
37907
+ 1097,
37770
37908
  1,
37771
37909
  0,
37772
37910
  0,
37773
37911
  0,
37774
37912
  206,
37775
- 1071,
37913
+ 1099,
37776
37914
  1,
37777
37915
  0,
37778
37916
  0,
37779
37917
  0,
37780
37918
  208,
37781
- 1075,
37919
+ 1103,
37782
37920
  1,
37783
37921
  0,
37784
37922
  0,
37785
37923
  0,
37786
37924
  210,
37787
- 1087,
37925
+ 1115,
37788
37926
  1,
37789
37927
  0,
37790
37928
  0,
37791
37929
  0,
37792
37930
  212,
37793
- 1089,
37931
+ 1117,
37794
37932
  1,
37795
37933
  0,
37796
37934
  0,
37797
37935
  0,
37798
37936
  214,
37799
- 1104,
37937
+ 1132,
37800
37938
  1,
37801
37939
  0,
37802
37940
  0,
37803
37941
  0,
37804
37942
  216,
37805
- 1115,
37943
+ 1143,
37806
37944
  1,
37807
37945
  0,
37808
37946
  0,
37809
37947
  0,
37810
37948
  218,
37811
- 1117,
37949
+ 1145,
37812
37950
  1,
37813
37951
  0,
37814
37952
  0,
37815
37953
  0,
37816
37954
  220,
37817
- 1119,
37955
+ 1147,
37818
37956
  1,
37819
37957
  0,
37820
37958
  0,
37821
37959
  0,
37822
37960
  222,
37823
- 1121,
37961
+ 1149,
37824
37962
  1,
37825
37963
  0,
37826
37964
  0,
37827
37965
  0,
37828
37966
  224,
37829
- 1123,
37967
+ 1151,
37830
37968
  1,
37831
37969
  0,
37832
37970
  0,
@@ -43670,546 +43808,750 @@ var esql_parser = class _esql_parser extends parser_config {
43670
43808
  0,
43671
43809
  0,
43672
43810
  1047,
43673
- 1049,
43811
+ 1048,
43674
43812
  5,
43675
43813
  105,
43676
43814
  0,
43677
43815
  0,
43678
43816
  1048,
43817
+ 1049,
43818
+ 5,
43819
+ 101,
43820
+ 0,
43821
+ 0,
43822
+ 1049,
43823
+ 1096,
43824
+ 5,
43825
+ 106,
43826
+ 0,
43827
+ 0,
43679
43828
  1050,
43829
+ 1054,
43830
+ 5,
43831
+ 39,
43832
+ 0,
43833
+ 0,
43834
+ 1051,
43835
+ 1053,
43836
+ 3,
43837
+ 206,
43838
+ 103,
43839
+ 0,
43840
+ 1052,
43841
+ 1051,
43842
+ 1,
43843
+ 0,
43844
+ 0,
43845
+ 0,
43846
+ 1053,
43847
+ 1056,
43848
+ 1,
43849
+ 0,
43850
+ 0,
43851
+ 0,
43852
+ 1054,
43853
+ 1052,
43854
+ 1,
43855
+ 0,
43856
+ 0,
43857
+ 0,
43858
+ 1054,
43859
+ 1055,
43860
+ 1,
43861
+ 0,
43862
+ 0,
43863
+ 0,
43864
+ 1055,
43865
+ 1060,
43866
+ 1,
43867
+ 0,
43868
+ 0,
43869
+ 0,
43870
+ 1056,
43871
+ 1054,
43872
+ 1,
43873
+ 0,
43874
+ 0,
43875
+ 0,
43876
+ 1057,
43877
+ 1058,
43878
+ 3,
43879
+ 204,
43880
+ 102,
43881
+ 0,
43882
+ 1058,
43883
+ 1059,
43884
+ 5,
43885
+ 63,
43886
+ 0,
43887
+ 0,
43888
+ 1059,
43889
+ 1061,
43890
+ 1,
43891
+ 0,
43892
+ 0,
43893
+ 0,
43894
+ 1060,
43895
+ 1057,
43896
+ 1,
43897
+ 0,
43898
+ 0,
43899
+ 0,
43900
+ 1060,
43901
+ 1061,
43902
+ 1,
43903
+ 0,
43904
+ 0,
43905
+ 0,
43906
+ 1061,
43907
+ 1062,
43908
+ 1,
43909
+ 0,
43910
+ 0,
43911
+ 0,
43912
+ 1062,
43913
+ 1096,
43914
+ 5,
43915
+ 101,
43916
+ 0,
43917
+ 0,
43918
+ 1063,
43919
+ 1067,
43920
+ 5,
43921
+ 39,
43922
+ 0,
43923
+ 0,
43924
+ 1064,
43925
+ 1066,
43926
+ 3,
43927
+ 206,
43928
+ 103,
43929
+ 0,
43930
+ 1065,
43931
+ 1064,
43932
+ 1,
43933
+ 0,
43934
+ 0,
43935
+ 0,
43936
+ 1066,
43937
+ 1069,
43938
+ 1,
43939
+ 0,
43940
+ 0,
43941
+ 0,
43942
+ 1067,
43943
+ 1065,
43944
+ 1,
43945
+ 0,
43946
+ 0,
43947
+ 0,
43948
+ 1067,
43949
+ 1068,
43950
+ 1,
43951
+ 0,
43952
+ 0,
43953
+ 0,
43954
+ 1068,
43955
+ 1073,
43956
+ 1,
43957
+ 0,
43958
+ 0,
43959
+ 0,
43960
+ 1069,
43961
+ 1067,
43962
+ 1,
43963
+ 0,
43964
+ 0,
43965
+ 0,
43966
+ 1070,
43967
+ 1071,
43968
+ 3,
43969
+ 204,
43970
+ 102,
43971
+ 0,
43972
+ 1071,
43973
+ 1072,
43974
+ 5,
43975
+ 63,
43976
+ 0,
43977
+ 0,
43978
+ 1072,
43979
+ 1074,
43980
+ 1,
43981
+ 0,
43982
+ 0,
43983
+ 0,
43984
+ 1073,
43985
+ 1070,
43986
+ 1,
43987
+ 0,
43988
+ 0,
43989
+ 0,
43990
+ 1073,
43991
+ 1074,
43992
+ 1,
43993
+ 0,
43994
+ 0,
43995
+ 0,
43996
+ 1074,
43997
+ 1075,
43998
+ 1,
43999
+ 0,
44000
+ 0,
44001
+ 0,
44002
+ 1075,
44003
+ 1077,
44004
+ 5,
44005
+ 105,
44006
+ 0,
44007
+ 0,
44008
+ 1076,
44009
+ 1078,
43680
44010
  3,
43681
44011
  214,
43682
44012
  107,
43683
44013
  0,
43684
- 1049,
43685
- 1048,
44014
+ 1077,
44015
+ 1076,
43686
44016
  1,
43687
44017
  0,
43688
44018
  0,
43689
44019
  0,
43690
- 1050,
43691
- 1051,
44020
+ 1078,
44021
+ 1079,
43692
44022
  1,
43693
44023
  0,
43694
44024
  0,
43695
44025
  0,
43696
- 1051,
43697
- 1049,
44026
+ 1079,
44027
+ 1077,
43698
44028
  1,
43699
44029
  0,
43700
44030
  0,
43701
44031
  0,
43702
- 1051,
43703
- 1052,
44032
+ 1079,
44033
+ 1080,
43704
44034
  1,
43705
44035
  0,
43706
44036
  0,
43707
44037
  0,
43708
- 1052,
43709
- 1053,
44038
+ 1080,
44039
+ 1081,
43710
44040
  1,
43711
44041
  0,
43712
44042
  0,
43713
44043
  0,
43714
- 1053,
43715
- 1054,
44044
+ 1081,
44045
+ 1082,
43716
44046
  5,
43717
44047
  106,
43718
44048
  0,
43719
44049
  0,
43720
- 1054,
43721
- 1068,
44050
+ 1082,
44051
+ 1096,
43722
44052
  1,
43723
44053
  0,
43724
44054
  0,
43725
44055
  0,
43726
- 1055,
43727
- 1059,
44056
+ 1083,
44057
+ 1087,
43728
44058
  5,
43729
44059
  39,
43730
44060
  0,
43731
44061
  0,
43732
- 1056,
43733
- 1058,
44062
+ 1084,
44063
+ 1086,
43734
44064
  3,
43735
44065
  206,
43736
44066
  103,
43737
44067
  0,
43738
- 1057,
43739
- 1056,
44068
+ 1085,
44069
+ 1084,
43740
44070
  1,
43741
44071
  0,
43742
44072
  0,
43743
44073
  0,
43744
- 1058,
43745
- 1061,
44074
+ 1086,
44075
+ 1089,
43746
44076
  1,
43747
44077
  0,
43748
44078
  0,
43749
44079
  0,
43750
- 1059,
43751
- 1057,
44080
+ 1087,
44081
+ 1085,
43752
44082
  1,
43753
44083
  0,
43754
44084
  0,
43755
44085
  0,
43756
- 1059,
43757
- 1060,
44086
+ 1087,
44087
+ 1088,
43758
44088
  1,
43759
44089
  0,
43760
44090
  0,
43761
44091
  0,
43762
- 1060,
43763
- 1063,
44092
+ 1088,
44093
+ 1091,
43764
44094
  1,
43765
44095
  0,
43766
44096
  0,
43767
44097
  0,
43768
- 1061,
43769
- 1059,
44098
+ 1089,
44099
+ 1087,
43770
44100
  1,
43771
44101
  0,
43772
44102
  0,
43773
44103
  0,
43774
- 1062,
43775
- 1064,
44104
+ 1090,
44105
+ 1092,
43776
44106
  3,
43777
44107
  214,
43778
44108
  107,
43779
44109
  0,
43780
- 1063,
43781
- 1062,
44110
+ 1091,
44111
+ 1090,
43782
44112
  1,
43783
44113
  0,
43784
44114
  0,
43785
44115
  0,
43786
- 1064,
43787
- 1065,
44116
+ 1092,
44117
+ 1093,
43788
44118
  1,
43789
44119
  0,
43790
44120
  0,
43791
44121
  0,
43792
- 1065,
43793
- 1063,
44122
+ 1093,
44123
+ 1091,
43794
44124
  1,
43795
44125
  0,
43796
44126
  0,
43797
44127
  0,
43798
- 1065,
43799
- 1066,
44128
+ 1093,
44129
+ 1094,
43800
44130
  1,
43801
44131
  0,
43802
44132
  0,
43803
44133
  0,
43804
- 1066,
43805
- 1068,
44134
+ 1094,
44135
+ 1096,
43806
44136
  1,
43807
44137
  0,
43808
44138
  0,
43809
44139
  0,
43810
- 1067,
44140
+ 1095,
43811
44141
  1035,
43812
44142
  1,
43813
44143
  0,
43814
44144
  0,
43815
44145
  0,
43816
- 1067,
43817
- 1055,
44146
+ 1095,
44147
+ 1050,
43818
44148
  1,
43819
44149
  0,
43820
44150
  0,
43821
44151
  0,
43822
- 1068,
44152
+ 1095,
44153
+ 1063,
44154
+ 1,
44155
+ 0,
44156
+ 0,
44157
+ 0,
44158
+ 1095,
44159
+ 1083,
44160
+ 1,
44161
+ 0,
44162
+ 0,
44163
+ 0,
44164
+ 1096,
43823
44165
  203,
43824
44166
  1,
43825
44167
  0,
43826
44168
  0,
43827
44169
  0,
43828
- 1069,
43829
- 1070,
44170
+ 1097,
44171
+ 1098,
43830
44172
  7,
43831
44173
  1,
43832
44174
  0,
43833
44175
  0,
43834
- 1070,
44176
+ 1098,
43835
44177
  205,
43836
44178
  1,
43837
44179
  0,
43838
44180
  0,
43839
44181
  0,
43840
- 1071,
43841
- 1072,
44182
+ 1099,
44183
+ 1100,
43842
44184
  3,
43843
44185
  208,
43844
44186
  104,
43845
44187
  0,
43846
- 1072,
43847
- 1073,
44188
+ 1100,
44189
+ 1101,
43848
44190
  5,
43849
44191
  63,
43850
44192
  0,
43851
44193
  0,
43852
- 1073,
43853
- 1074,
44194
+ 1101,
44195
+ 1102,
43854
44196
  3,
43855
44197
  210,
43856
44198
  105,
43857
44199
  0,
43858
- 1074,
44200
+ 1102,
43859
44201
  207,
43860
44202
  1,
43861
44203
  0,
43862
44204
  0,
43863
44205
  0,
43864
- 1075,
43865
- 1076,
44206
+ 1103,
44207
+ 1104,
43866
44208
  7,
43867
44209
  10,
43868
44210
  0,
43869
44211
  0,
43870
- 1076,
44212
+ 1104,
43871
44213
  209,
43872
44214
  1,
43873
44215
  0,
43874
44216
  0,
43875
44217
  0,
43876
- 1077,
43877
- 1082,
44218
+ 1105,
44219
+ 1110,
43878
44220
  3,
43879
44221
  216,
43880
44222
  108,
43881
44223
  0,
43882
- 1078,
43883
- 1079,
44224
+ 1106,
44225
+ 1107,
43884
44226
  5,
43885
44227
  68,
43886
44228
  0,
43887
44229
  0,
43888
- 1079,
43889
- 1081,
44230
+ 1107,
44231
+ 1109,
43890
44232
  3,
43891
44233
  216,
43892
44234
  108,
43893
44235
  0,
43894
- 1080,
43895
- 1078,
44236
+ 1108,
44237
+ 1106,
43896
44238
  1,
43897
44239
  0,
43898
44240
  0,
43899
44241
  0,
43900
- 1081,
43901
- 1084,
44242
+ 1109,
44243
+ 1112,
43902
44244
  1,
43903
44245
  0,
43904
44246
  0,
43905
44247
  0,
43906
- 1082,
43907
- 1080,
44248
+ 1110,
44249
+ 1108,
43908
44250
  1,
43909
44251
  0,
43910
44252
  0,
43911
44253
  0,
43912
- 1082,
43913
- 1083,
44254
+ 1110,
44255
+ 1111,
43914
44256
  1,
43915
44257
  0,
43916
44258
  0,
43917
44259
  0,
43918
- 1083,
43919
- 1088,
44260
+ 1111,
44261
+ 1116,
43920
44262
  1,
43921
44263
  0,
43922
44264
  0,
43923
44265
  0,
43924
- 1084,
43925
- 1082,
44266
+ 1112,
44267
+ 1110,
43926
44268
  1,
43927
44269
  0,
43928
44270
  0,
43929
44271
  0,
43930
- 1085,
43931
- 1088,
44272
+ 1113,
44273
+ 1116,
43932
44274
  5,
43933
44275
  108,
43934
44276
  0,
43935
44277
  0,
43936
- 1086,
43937
- 1088,
44278
+ 1114,
44279
+ 1116,
43938
44280
  5,
43939
44281
  101,
43940
44282
  0,
43941
44283
  0,
43942
- 1087,
43943
- 1077,
44284
+ 1115,
44285
+ 1105,
43944
44286
  1,
43945
44287
  0,
43946
44288
  0,
43947
44289
  0,
43948
- 1087,
43949
- 1085,
44290
+ 1115,
44291
+ 1113,
43950
44292
  1,
43951
44293
  0,
43952
44294
  0,
43953
44295
  0,
43954
- 1087,
43955
- 1086,
44296
+ 1115,
44297
+ 1114,
43956
44298
  1,
43957
44299
  0,
43958
44300
  0,
43959
44301
  0,
43960
- 1088,
44302
+ 1116,
43961
44303
  211,
43962
44304
  1,
43963
44305
  0,
43964
44306
  0,
43965
44307
  0,
43966
- 1089,
43967
- 1090,
44308
+ 1117,
44309
+ 1118,
43968
44310
  7,
43969
44311
  11,
43970
44312
  0,
43971
44313
  0,
43972
- 1090,
44314
+ 1118,
43973
44315
  213,
43974
44316
  1,
43975
44317
  0,
43976
44318
  0,
43977
44319
  0,
43978
- 1091,
43979
- 1093,
44320
+ 1119,
44321
+ 1121,
43980
44322
  3,
43981
44323
  212,
43982
44324
  106,
43983
44325
  0,
43984
- 1092,
43985
- 1091,
44326
+ 1120,
44327
+ 1119,
43986
44328
  1,
43987
44329
  0,
43988
44330
  0,
43989
44331
  0,
43990
- 1093,
43991
- 1094,
44332
+ 1121,
44333
+ 1122,
43992
44334
  1,
43993
44335
  0,
43994
44336
  0,
43995
44337
  0,
43996
- 1094,
43997
- 1092,
44338
+ 1122,
44339
+ 1120,
43998
44340
  1,
43999
44341
  0,
44000
44342
  0,
44001
44343
  0,
44002
- 1094,
44003
- 1095,
44344
+ 1122,
44345
+ 1123,
44004
44346
  1,
44005
44347
  0,
44006
44348
  0,
44007
44349
  0,
44008
- 1095,
44009
- 1105,
44350
+ 1123,
44351
+ 1133,
44010
44352
  1,
44011
44353
  0,
44012
44354
  0,
44013
44355
  0,
44014
- 1096,
44015
- 1100,
44356
+ 1124,
44357
+ 1128,
44016
44358
  5,
44017
44359
  105,
44018
44360
  0,
44019
44361
  0,
44020
- 1097,
44021
- 1099,
44362
+ 1125,
44363
+ 1127,
44022
44364
  3,
44023
44365
  214,
44024
44366
  107,
44025
44367
  0,
44026
- 1098,
44027
- 1097,
44368
+ 1126,
44369
+ 1125,
44028
44370
  1,
44029
44371
  0,
44030
44372
  0,
44031
44373
  0,
44032
- 1099,
44033
- 1102,
44374
+ 1127,
44375
+ 1130,
44034
44376
  1,
44035
44377
  0,
44036
44378
  0,
44037
44379
  0,
44038
- 1100,
44039
- 1098,
44380
+ 1128,
44381
+ 1126,
44040
44382
  1,
44041
44383
  0,
44042
44384
  0,
44043
44385
  0,
44044
- 1100,
44045
- 1101,
44386
+ 1128,
44387
+ 1129,
44046
44388
  1,
44047
44389
  0,
44048
44390
  0,
44049
44391
  0,
44050
- 1101,
44051
- 1103,
44392
+ 1129,
44393
+ 1131,
44052
44394
  1,
44053
44395
  0,
44054
44396
  0,
44055
44397
  0,
44056
- 1102,
44057
- 1100,
44398
+ 1130,
44399
+ 1128,
44058
44400
  1,
44059
44401
  0,
44060
44402
  0,
44061
44403
  0,
44062
- 1103,
44063
- 1105,
44404
+ 1131,
44405
+ 1133,
44064
44406
  5,
44065
44407
  106,
44066
44408
  0,
44067
44409
  0,
44068
- 1104,
44069
- 1092,
44410
+ 1132,
44411
+ 1120,
44070
44412
  1,
44071
44413
  0,
44072
44414
  0,
44073
44415
  0,
44074
- 1104,
44075
- 1096,
44416
+ 1132,
44417
+ 1124,
44076
44418
  1,
44077
44419
  0,
44078
44420
  0,
44079
44421
  0,
44080
- 1105,
44422
+ 1133,
44081
44423
  215,
44082
44424
  1,
44083
44425
  0,
44084
44426
  0,
44085
44427
  0,
44086
- 1106,
44087
- 1107,
44428
+ 1134,
44429
+ 1135,
44088
44430
  3,
44089
44431
  218,
44090
44432
  109,
44091
44433
  0,
44092
- 1107,
44093
- 1108,
44434
+ 1135,
44435
+ 1136,
44094
44436
  5,
44095
44437
  66,
44096
44438
  0,
44097
44439
  0,
44098
- 1108,
44099
- 1109,
44440
+ 1136,
44441
+ 1137,
44100
44442
  3,
44101
44443
  222,
44102
44444
  111,
44103
44445
  0,
44104
- 1109,
44105
- 1116,
44446
+ 1137,
44447
+ 1144,
44106
44448
  1,
44107
44449
  0,
44108
44450
  0,
44109
44451
  0,
44110
- 1110,
44111
- 1111,
44452
+ 1138,
44453
+ 1139,
44112
44454
  3,
44113
44455
  222,
44114
44456
  111,
44115
44457
  0,
44116
- 1111,
44117
- 1112,
44458
+ 1139,
44459
+ 1140,
44118
44460
  5,
44119
44461
  65,
44120
44462
  0,
44121
44463
  0,
44122
- 1112,
44123
- 1113,
44464
+ 1140,
44465
+ 1141,
44124
44466
  3,
44125
44467
  220,
44126
44468
  110,
44127
44469
  0,
44128
- 1113,
44129
- 1116,
44470
+ 1141,
44471
+ 1144,
44130
44472
  1,
44131
44473
  0,
44132
44474
  0,
44133
44475
  0,
44134
- 1114,
44135
- 1116,
44476
+ 1142,
44477
+ 1144,
44136
44478
  3,
44137
44479
  224,
44138
44480
  112,
44139
44481
  0,
44140
- 1115,
44141
- 1106,
44482
+ 1143,
44483
+ 1134,
44142
44484
  1,
44143
44485
  0,
44144
44486
  0,
44145
44487
  0,
44146
- 1115,
44147
- 1110,
44488
+ 1143,
44489
+ 1138,
44148
44490
  1,
44149
44491
  0,
44150
44492
  0,
44151
44493
  0,
44152
- 1115,
44153
- 1114,
44494
+ 1143,
44495
+ 1142,
44154
44496
  1,
44155
44497
  0,
44156
44498
  0,
44157
44499
  0,
44158
- 1116,
44500
+ 1144,
44159
44501
  217,
44160
44502
  1,
44161
44503
  0,
44162
44504
  0,
44163
44505
  0,
44164
- 1117,
44165
- 1118,
44506
+ 1145,
44507
+ 1146,
44166
44508
  7,
44167
44509
  12,
44168
44510
  0,
44169
44511
  0,
44170
- 1118,
44512
+ 1146,
44171
44513
  219,
44172
44514
  1,
44173
44515
  0,
44174
44516
  0,
44175
44517
  0,
44176
- 1119,
44177
- 1120,
44518
+ 1147,
44519
+ 1148,
44178
44520
  7,
44179
44521
  12,
44180
44522
  0,
44181
44523
  0,
44182
- 1120,
44524
+ 1148,
44183
44525
  221,
44184
44526
  1,
44185
44527
  0,
44186
44528
  0,
44187
44529
  0,
44188
- 1121,
44189
- 1122,
44530
+ 1149,
44531
+ 1150,
44190
44532
  7,
44191
44533
  12,
44192
44534
  0,
44193
44535
  0,
44194
- 1122,
44536
+ 1150,
44195
44537
  223,
44196
44538
  1,
44197
44539
  0,
44198
44540
  0,
44199
44541
  0,
44200
- 1123,
44201
- 1124,
44542
+ 1151,
44543
+ 1152,
44202
44544
  7,
44203
44545
  13,
44204
44546
  0,
44205
44547
  0,
44206
- 1124,
44548
+ 1152,
44207
44549
  225,
44208
44550
  1,
44209
44551
  0,
44210
44552
  0,
44211
44553
  0,
44212
- 110,
44554
+ 114,
44213
44555
  229,
44214
44556
  246,
44215
44557
  258,
@@ -44310,16 +44652,20 @@ var esql_parser = class _esql_parser extends parser_config {
44310
44652
  1032,
44311
44653
  1039,
44312
44654
  1045,
44313
- 1051,
44314
- 1059,
44315
- 1065,
44655
+ 1054,
44656
+ 1060,
44316
44657
  1067,
44317
- 1082,
44658
+ 1073,
44659
+ 1079,
44318
44660
  1087,
44319
- 1094,
44320
- 1100,
44321
- 1104,
44322
- 1115
44661
+ 1093,
44662
+ 1095,
44663
+ 1110,
44664
+ 1115,
44665
+ 1122,
44666
+ 1128,
44667
+ 1132,
44668
+ 1143
44323
44669
  ];
44324
44670
  static __ATN;
44325
44671
  static get _ATN() {
@@ -48296,6 +48642,9 @@ var PromqlCommandContext = class extends import_antlr45.ParserRuleContext {
48296
48642
  LP() {
48297
48643
  return this.getToken(esql_parser.LP, 0);
48298
48644
  }
48645
+ NAMED_OR_POSITIONAL_PARAM() {
48646
+ return this.getToken(esql_parser.NAMED_OR_POSITIONAL_PARAM, 0);
48647
+ }
48299
48648
  RP() {
48300
48649
  return this.getToken(esql_parser.RP, 0);
48301
48650
  }
@@ -61003,20 +61352,30 @@ var CstToAstConverter = class {
61003
61352
  const lp = ctx.LP();
61004
61353
  const rp = ctx.RP();
61005
61354
  const valueNameCtx = ctx.valueName();
61006
- let node = this.fromPromqlQueryParts(queryPartCtxs);
61355
+ let node;
61356
+ const namedParam = ctx.NAMED_OR_POSITIONAL_PARAM();
61357
+ if (namedParam) {
61358
+ const text2 = namedParam.getText();
61359
+ const paramValue = text2.slice(1);
61360
+ const valueAsNumber = Number(paramValue);
61361
+ const isPositional = String(valueAsNumber) === paramValue;
61362
+ const parserFields = this.getParserFields(ctx);
61363
+ node = isPositional ? Builder.param.positional({ value: valueAsNumber }, parserFields) : Builder.param.named({ value: paramValue }, parserFields);
61364
+ } else {
61365
+ node = this.fromPromqlQueryParts(queryPartCtxs);
61366
+ }
61007
61367
  if (!node) {
61008
61368
  return void 0;
61009
61369
  }
61010
- if (!lp) {
61011
- return node;
61370
+ if (lp) {
61371
+ const closeParenText = rp?.getText() ?? "";
61372
+ const hasCloseParen = rp && !/<missing /.test(closeParenText);
61373
+ const parensLocation = getPosition(lp.symbol, hasCloseParen ? rp.symbol : ctx.stop);
61374
+ node = Builder.expression.parens(node, {
61375
+ location: parensLocation,
61376
+ incomplete: !hasCloseParen || node.incomplete
61377
+ });
61012
61378
  }
61013
- const closeParenText = rp?.getText() ?? "";
61014
- const hasCloseParen = rp && !/<missing /.test(closeParenText);
61015
- const parensLocation = getPosition(lp.symbol, hasCloseParen ? rp.symbol : ctx.stop);
61016
- node = Builder.expression.parens(node, {
61017
- location: parensLocation,
61018
- incomplete: !hasCloseParen || node.incomplete
61019
- });
61020
61379
  if (valueNameCtx) {
61021
61380
  const valueNameId = this.fromIdentifier(valueNameCtx);
61022
61381
  node = Builder.expression.func.binary(
@@ -61024,7 +61383,7 @@ var CstToAstConverter = class {
61024
61383
  [valueNameId, node],
61025
61384
  {},
61026
61385
  {
61027
- location: getPosition(valueNameCtx.start, hasCloseParen ? rp.symbol : ctx.stop),
61386
+ location: getPosition(valueNameCtx.start, ctx.stop),
61028
61387
  incomplete: node.incomplete
61029
61388
  }
61030
61389
  );