@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.mjs CHANGED
@@ -33722,9 +33722,9 @@ var esql_parser = class _esql_parser extends parser_config {
33722
33722
  let _la;
33723
33723
  try {
33724
33724
  let _alt;
33725
- this.state = 1067;
33725
+ this.state = 1095;
33726
33726
  this._errHandler.sync(this);
33727
- switch (this._interp.adaptivePredict(this._input, 103, this._ctx)) {
33727
+ switch (this._interp.adaptivePredict(this._input, 107, this._ctx)) {
33728
33728
  case 1:
33729
33729
  this.enterOuterAlt(localctx, 1);
33730
33730
  {
@@ -33759,46 +33759,122 @@ var esql_parser = class _esql_parser extends parser_config {
33759
33759
  }
33760
33760
  this.state = 1047;
33761
33761
  this.match(_esql_parser.LP);
33762
+ this.state = 1048;
33763
+ this.match(_esql_parser.NAMED_OR_POSITIONAL_PARAM);
33762
33764
  this.state = 1049;
33765
+ this.match(_esql_parser.RP);
33766
+ }
33767
+ break;
33768
+ case 2:
33769
+ this.enterOuterAlt(localctx, 2);
33770
+ {
33771
+ this.state = 1050;
33772
+ this.match(_esql_parser.PROMQL);
33773
+ this.state = 1054;
33774
+ this._errHandler.sync(this);
33775
+ _alt = this._interp.adaptivePredict(this._input, 100, this._ctx);
33776
+ while (_alt !== 2 && _alt !== ATN2.INVALID_ALT_NUMBER) {
33777
+ if (_alt === 1) {
33778
+ {
33779
+ {
33780
+ this.state = 1051;
33781
+ this.promqlParam();
33782
+ }
33783
+ }
33784
+ }
33785
+ this.state = 1056;
33786
+ this._errHandler.sync(this);
33787
+ _alt = this._interp.adaptivePredict(this._input, 100, this._ctx);
33788
+ }
33789
+ this.state = 1060;
33790
+ this._errHandler.sync(this);
33791
+ _la = this._input.LA(1);
33792
+ if (_la === 107 || _la === 108) {
33793
+ {
33794
+ this.state = 1057;
33795
+ this.valueName();
33796
+ this.state = 1058;
33797
+ this.match(_esql_parser.ASSIGN);
33798
+ }
33799
+ }
33800
+ this.state = 1062;
33801
+ this.match(_esql_parser.NAMED_OR_POSITIONAL_PARAM);
33802
+ }
33803
+ break;
33804
+ case 3:
33805
+ this.enterOuterAlt(localctx, 3);
33806
+ {
33807
+ this.state = 1063;
33808
+ this.match(_esql_parser.PROMQL);
33809
+ this.state = 1067;
33810
+ this._errHandler.sync(this);
33811
+ _alt = this._interp.adaptivePredict(this._input, 102, this._ctx);
33812
+ while (_alt !== 2 && _alt !== ATN2.INVALID_ALT_NUMBER) {
33813
+ if (_alt === 1) {
33814
+ {
33815
+ {
33816
+ this.state = 1064;
33817
+ this.promqlParam();
33818
+ }
33819
+ }
33820
+ }
33821
+ this.state = 1069;
33822
+ this._errHandler.sync(this);
33823
+ _alt = this._interp.adaptivePredict(this._input, 102, this._ctx);
33824
+ }
33825
+ this.state = 1073;
33826
+ this._errHandler.sync(this);
33827
+ _la = this._input.LA(1);
33828
+ if (_la === 107 || _la === 108) {
33829
+ {
33830
+ this.state = 1070;
33831
+ this.valueName();
33832
+ this.state = 1071;
33833
+ this.match(_esql_parser.ASSIGN);
33834
+ }
33835
+ }
33836
+ this.state = 1075;
33837
+ this.match(_esql_parser.LP);
33838
+ this.state = 1077;
33763
33839
  this._errHandler.sync(this);
33764
33840
  _la = this._input.LA(1);
33765
33841
  do {
33766
33842
  {
33767
33843
  {
33768
- this.state = 1048;
33844
+ this.state = 1076;
33769
33845
  this.promqlQueryPart();
33770
33846
  }
33771
33847
  }
33772
- this.state = 1051;
33848
+ this.state = 1079;
33773
33849
  this._errHandler.sync(this);
33774
33850
  _la = this._input.LA(1);
33775
33851
  } 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);
33776
- this.state = 1053;
33852
+ this.state = 1081;
33777
33853
  this.match(_esql_parser.RP);
33778
33854
  }
33779
33855
  break;
33780
- case 2:
33781
- this.enterOuterAlt(localctx, 2);
33856
+ case 4:
33857
+ this.enterOuterAlt(localctx, 4);
33782
33858
  {
33783
- this.state = 1055;
33859
+ this.state = 1083;
33784
33860
  this.match(_esql_parser.PROMQL);
33785
- this.state = 1059;
33861
+ this.state = 1087;
33786
33862
  this._errHandler.sync(this);
33787
- _alt = this._interp.adaptivePredict(this._input, 101, this._ctx);
33863
+ _alt = this._interp.adaptivePredict(this._input, 105, this._ctx);
33788
33864
  while (_alt !== 2 && _alt !== ATN2.INVALID_ALT_NUMBER) {
33789
33865
  if (_alt === 1) {
33790
33866
  {
33791
33867
  {
33792
- this.state = 1056;
33868
+ this.state = 1084;
33793
33869
  this.promqlParam();
33794
33870
  }
33795
33871
  }
33796
33872
  }
33797
- this.state = 1061;
33873
+ this.state = 1089;
33798
33874
  this._errHandler.sync(this);
33799
- _alt = this._interp.adaptivePredict(this._input, 101, this._ctx);
33875
+ _alt = this._interp.adaptivePredict(this._input, 105, this._ctx);
33800
33876
  }
33801
- this.state = 1063;
33877
+ this.state = 1091;
33802
33878
  this._errHandler.sync(this);
33803
33879
  _alt = 1;
33804
33880
  do {
@@ -33806,7 +33882,7 @@ var esql_parser = class _esql_parser extends parser_config {
33806
33882
  case 1:
33807
33883
  {
33808
33884
  {
33809
- this.state = 1062;
33885
+ this.state = 1090;
33810
33886
  this.promqlQueryPart();
33811
33887
  }
33812
33888
  }
@@ -33814,9 +33890,9 @@ var esql_parser = class _esql_parser extends parser_config {
33814
33890
  default:
33815
33891
  throw new NoViableAltException(this);
33816
33892
  }
33817
- this.state = 1065;
33893
+ this.state = 1093;
33818
33894
  this._errHandler.sync(this);
33819
- _alt = this._interp.adaptivePredict(this._input, 102, this._ctx);
33895
+ _alt = this._interp.adaptivePredict(this._input, 106, this._ctx);
33820
33896
  } while (_alt !== 2 && _alt !== ATN2.INVALID_ALT_NUMBER);
33821
33897
  }
33822
33898
  break;
@@ -33842,7 +33918,7 @@ var esql_parser = class _esql_parser extends parser_config {
33842
33918
  try {
33843
33919
  this.enterOuterAlt(localctx, 1);
33844
33920
  {
33845
- this.state = 1069;
33921
+ this.state = 1097;
33846
33922
  _la = this._input.LA(1);
33847
33923
  if (!(_la === 107 || _la === 108)) {
33848
33924
  this._errHandler.recoverInline(this);
@@ -33871,11 +33947,11 @@ var esql_parser = class _esql_parser extends parser_config {
33871
33947
  try {
33872
33948
  this.enterOuterAlt(localctx, 1);
33873
33949
  {
33874
- this.state = 1071;
33950
+ this.state = 1099;
33875
33951
  localctx._name = this.promqlParamName();
33876
- this.state = 1072;
33952
+ this.state = 1100;
33877
33953
  this.match(_esql_parser.ASSIGN);
33878
- this.state = 1073;
33954
+ this.state = 1101;
33879
33955
  localctx._value = this.promqlParamValue();
33880
33956
  }
33881
33957
  } catch (re) {
@@ -33899,7 +33975,7 @@ var esql_parser = class _esql_parser extends parser_config {
33899
33975
  try {
33900
33976
  this.enterOuterAlt(localctx, 1);
33901
33977
  {
33902
- this.state = 1075;
33978
+ this.state = 1103;
33903
33979
  _la = this._input.LA(1);
33904
33980
  if (!(_la === 58 || (_la - 101 & ~31) === 0 && (1 << _la - 101 & 193) !== 0)) {
33905
33981
  this._errHandler.recoverInline(this);
@@ -33927,7 +34003,7 @@ var esql_parser = class _esql_parser extends parser_config {
33927
34003
  this.enterRule(localctx, 210, _esql_parser.RULE_promqlParamValue);
33928
34004
  try {
33929
34005
  let _alt;
33930
- this.state = 1087;
34006
+ this.state = 1115;
33931
34007
  this._errHandler.sync(this);
33932
34008
  switch (this._input.LA(1)) {
33933
34009
  case 58:
@@ -33935,39 +34011,39 @@ var esql_parser = class _esql_parser extends parser_config {
33935
34011
  case 113:
33936
34012
  this.enterOuterAlt(localctx, 1);
33937
34013
  {
33938
- this.state = 1077;
34014
+ this.state = 1105;
33939
34015
  this.promqlIndexPattern();
33940
- this.state = 1082;
34016
+ this.state = 1110;
33941
34017
  this._errHandler.sync(this);
33942
- _alt = this._interp.adaptivePredict(this._input, 104, this._ctx);
34018
+ _alt = this._interp.adaptivePredict(this._input, 108, this._ctx);
33943
34019
  while (_alt !== 2 && _alt !== ATN2.INVALID_ALT_NUMBER) {
33944
34020
  if (_alt === 1) {
33945
34021
  {
33946
34022
  {
33947
- this.state = 1078;
34023
+ this.state = 1106;
33948
34024
  this.match(_esql_parser.COMMA);
33949
- this.state = 1079;
34025
+ this.state = 1107;
33950
34026
  this.promqlIndexPattern();
33951
34027
  }
33952
34028
  }
33953
34029
  }
33954
- this.state = 1084;
34030
+ this.state = 1112;
33955
34031
  this._errHandler.sync(this);
33956
- _alt = this._interp.adaptivePredict(this._input, 104, this._ctx);
34032
+ _alt = this._interp.adaptivePredict(this._input, 108, this._ctx);
33957
34033
  }
33958
34034
  }
33959
34035
  break;
33960
34036
  case 108:
33961
34037
  this.enterOuterAlt(localctx, 2);
33962
34038
  {
33963
- this.state = 1085;
34039
+ this.state = 1113;
33964
34040
  this.match(_esql_parser.QUOTED_IDENTIFIER);
33965
34041
  }
33966
34042
  break;
33967
34043
  case 101:
33968
34044
  this.enterOuterAlt(localctx, 3);
33969
34045
  {
33970
- this.state = 1086;
34046
+ this.state = 1114;
33971
34047
  this.match(_esql_parser.NAMED_OR_POSITIONAL_PARAM);
33972
34048
  }
33973
34049
  break;
@@ -33995,7 +34071,7 @@ var esql_parser = class _esql_parser extends parser_config {
33995
34071
  try {
33996
34072
  this.enterOuterAlt(localctx, 1);
33997
34073
  {
33998
- this.state = 1089;
34074
+ this.state = 1117;
33999
34075
  _la = this._input.LA(1);
34000
34076
  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)) {
34001
34077
  this._errHandler.recoverInline(this);
@@ -34024,7 +34100,7 @@ var esql_parser = class _esql_parser extends parser_config {
34024
34100
  let _la;
34025
34101
  try {
34026
34102
  let _alt;
34027
- this.state = 1104;
34103
+ this.state = 1132;
34028
34104
  this._errHandler.sync(this);
34029
34105
  switch (this._input.LA(1)) {
34030
34106
  case 58:
@@ -34041,7 +34117,7 @@ var esql_parser = class _esql_parser extends parser_config {
34041
34117
  case 157:
34042
34118
  this.enterOuterAlt(localctx, 1);
34043
34119
  {
34044
- this.state = 1092;
34120
+ this.state = 1120;
34045
34121
  this._errHandler.sync(this);
34046
34122
  _alt = 1;
34047
34123
  do {
@@ -34049,7 +34125,7 @@ var esql_parser = class _esql_parser extends parser_config {
34049
34125
  case 1:
34050
34126
  {
34051
34127
  {
34052
- this.state = 1091;
34128
+ this.state = 1119;
34053
34129
  this.promqlQueryContent();
34054
34130
  }
34055
34131
  }
@@ -34057,32 +34133,32 @@ var esql_parser = class _esql_parser extends parser_config {
34057
34133
  default:
34058
34134
  throw new NoViableAltException(this);
34059
34135
  }
34060
- this.state = 1094;
34136
+ this.state = 1122;
34061
34137
  this._errHandler.sync(this);
34062
- _alt = this._interp.adaptivePredict(this._input, 106, this._ctx);
34138
+ _alt = this._interp.adaptivePredict(this._input, 110, this._ctx);
34063
34139
  } while (_alt !== 2 && _alt !== ATN2.INVALID_ALT_NUMBER);
34064
34140
  }
34065
34141
  break;
34066
34142
  case 105:
34067
34143
  this.enterOuterAlt(localctx, 2);
34068
34144
  {
34069
- this.state = 1096;
34145
+ this.state = 1124;
34070
34146
  this.match(_esql_parser.LP);
34071
- this.state = 1100;
34147
+ this.state = 1128;
34072
34148
  this._errHandler.sync(this);
34073
34149
  _la = this._input.LA(1);
34074
34150
  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) {
34075
34151
  {
34076
34152
  {
34077
- this.state = 1097;
34153
+ this.state = 1125;
34078
34154
  this.promqlQueryPart();
34079
34155
  }
34080
34156
  }
34081
- this.state = 1102;
34157
+ this.state = 1130;
34082
34158
  this._errHandler.sync(this);
34083
34159
  _la = this._input.LA(1);
34084
34160
  }
34085
- this.state = 1103;
34161
+ this.state = 1131;
34086
34162
  this.match(_esql_parser.RP);
34087
34163
  }
34088
34164
  break;
@@ -34107,35 +34183,35 @@ var esql_parser = class _esql_parser extends parser_config {
34107
34183
  let localctx = new PromqlIndexPatternContext(this, this._ctx, this.state);
34108
34184
  this.enterRule(localctx, 216, _esql_parser.RULE_promqlIndexPattern);
34109
34185
  try {
34110
- this.state = 1115;
34186
+ this.state = 1143;
34111
34187
  this._errHandler.sync(this);
34112
- switch (this._interp.adaptivePredict(this._input, 109, this._ctx)) {
34188
+ switch (this._interp.adaptivePredict(this._input, 113, this._ctx)) {
34113
34189
  case 1:
34114
34190
  this.enterOuterAlt(localctx, 1);
34115
34191
  {
34116
- this.state = 1106;
34192
+ this.state = 1134;
34117
34193
  this.promqlClusterString();
34118
- this.state = 1107;
34194
+ this.state = 1135;
34119
34195
  this.match(_esql_parser.COLON);
34120
- this.state = 1108;
34196
+ this.state = 1136;
34121
34197
  this.promqlUnquotedIndexString();
34122
34198
  }
34123
34199
  break;
34124
34200
  case 2:
34125
34201
  this.enterOuterAlt(localctx, 2);
34126
34202
  {
34127
- this.state = 1110;
34203
+ this.state = 1138;
34128
34204
  this.promqlUnquotedIndexString();
34129
- this.state = 1111;
34205
+ this.state = 1139;
34130
34206
  this.match(_esql_parser.CAST_OP);
34131
- this.state = 1112;
34207
+ this.state = 1140;
34132
34208
  this.promqlSelectorString();
34133
34209
  }
34134
34210
  break;
34135
34211
  case 3:
34136
34212
  this.enterOuterAlt(localctx, 3);
34137
34213
  {
34138
- this.state = 1114;
34214
+ this.state = 1142;
34139
34215
  this.promqlIndexString();
34140
34216
  }
34141
34217
  break;
@@ -34161,7 +34237,7 @@ var esql_parser = class _esql_parser extends parser_config {
34161
34237
  try {
34162
34238
  this.enterOuterAlt(localctx, 1);
34163
34239
  {
34164
- this.state = 1117;
34240
+ this.state = 1145;
34165
34241
  _la = this._input.LA(1);
34166
34242
  if (!(_la === 107 || _la === 113)) {
34167
34243
  this._errHandler.recoverInline(this);
@@ -34191,7 +34267,7 @@ var esql_parser = class _esql_parser extends parser_config {
34191
34267
  try {
34192
34268
  this.enterOuterAlt(localctx, 1);
34193
34269
  {
34194
- this.state = 1119;
34270
+ this.state = 1147;
34195
34271
  _la = this._input.LA(1);
34196
34272
  if (!(_la === 107 || _la === 113)) {
34197
34273
  this._errHandler.recoverInline(this);
@@ -34221,7 +34297,7 @@ var esql_parser = class _esql_parser extends parser_config {
34221
34297
  try {
34222
34298
  this.enterOuterAlt(localctx, 1);
34223
34299
  {
34224
- this.state = 1121;
34300
+ this.state = 1149;
34225
34301
  _la = this._input.LA(1);
34226
34302
  if (!(_la === 107 || _la === 113)) {
34227
34303
  this._errHandler.recoverInline(this);
@@ -34251,7 +34327,7 @@ var esql_parser = class _esql_parser extends parser_config {
34251
34327
  try {
34252
34328
  this.enterOuterAlt(localctx, 1);
34253
34329
  {
34254
- this.state = 1123;
34330
+ this.state = 1151;
34255
34331
  _la = this._input.LA(1);
34256
34332
  if (!(_la === 58 || _la === 107 || _la === 113)) {
34257
34333
  this._errHandler.recoverInline(this);
@@ -34398,7 +34474,7 @@ var esql_parser = class _esql_parser extends parser_config {
34398
34474
  4,
34399
34475
  1,
34400
34476
  168,
34401
- 1126,
34477
+ 1154,
34402
34478
  2,
34403
34479
  0,
34404
34480
  7,
@@ -36628,16 +36704,78 @@ var esql_parser = class _esql_parser extends parser_config {
36628
36704
  101,
36629
36705
  1,
36630
36706
  101,
36707
+ 1,
36708
+ 101,
36709
+ 1,
36710
+ 101,
36711
+ 1,
36712
+ 101,
36713
+ 5,
36714
+ 101,
36715
+ 1053,
36716
+ 8,
36717
+ 101,
36718
+ 10,
36719
+ 101,
36720
+ 12,
36721
+ 101,
36722
+ 1056,
36723
+ 9,
36724
+ 101,
36725
+ 1,
36726
+ 101,
36727
+ 1,
36728
+ 101,
36729
+ 1,
36730
+ 101,
36731
+ 3,
36732
+ 101,
36733
+ 1061,
36734
+ 8,
36735
+ 101,
36736
+ 1,
36737
+ 101,
36738
+ 1,
36739
+ 101,
36740
+ 1,
36741
+ 101,
36742
+ 5,
36743
+ 101,
36744
+ 1066,
36745
+ 8,
36746
+ 101,
36747
+ 10,
36748
+ 101,
36749
+ 12,
36750
+ 101,
36751
+ 1069,
36752
+ 9,
36753
+ 101,
36754
+ 1,
36755
+ 101,
36756
+ 1,
36757
+ 101,
36758
+ 1,
36759
+ 101,
36760
+ 3,
36761
+ 101,
36762
+ 1074,
36763
+ 8,
36764
+ 101,
36765
+ 1,
36766
+ 101,
36767
+ 1,
36768
+ 101,
36631
36769
  4,
36632
36770
  101,
36633
- 1050,
36771
+ 1078,
36634
36772
  8,
36635
36773
  101,
36636
36774
  11,
36637
36775
  101,
36638
36776
  12,
36639
36777
  101,
36640
- 1051,
36778
+ 1079,
36641
36779
  1,
36642
36780
  101,
36643
36781
  1,
@@ -36648,31 +36786,31 @@ var esql_parser = class _esql_parser extends parser_config {
36648
36786
  101,
36649
36787
  5,
36650
36788
  101,
36651
- 1058,
36789
+ 1086,
36652
36790
  8,
36653
36791
  101,
36654
36792
  10,
36655
36793
  101,
36656
36794
  12,
36657
36795
  101,
36658
- 1061,
36796
+ 1089,
36659
36797
  9,
36660
36798
  101,
36661
36799
  1,
36662
36800
  101,
36663
36801
  4,
36664
36802
  101,
36665
- 1064,
36803
+ 1092,
36666
36804
  8,
36667
36805
  101,
36668
36806
  11,
36669
36807
  101,
36670
36808
  12,
36671
36809
  101,
36672
- 1065,
36810
+ 1093,
36673
36811
  3,
36674
36812
  101,
36675
- 1068,
36813
+ 1096,
36676
36814
  8,
36677
36815
  101,
36678
36816
  1,
@@ -36699,14 +36837,14 @@ var esql_parser = class _esql_parser extends parser_config {
36699
36837
  105,
36700
36838
  5,
36701
36839
  105,
36702
- 1081,
36840
+ 1109,
36703
36841
  8,
36704
36842
  105,
36705
36843
  10,
36706
36844
  105,
36707
36845
  12,
36708
36846
  105,
36709
- 1084,
36847
+ 1112,
36710
36848
  9,
36711
36849
  105,
36712
36850
  1,
@@ -36715,7 +36853,7 @@ var esql_parser = class _esql_parser extends parser_config {
36715
36853
  105,
36716
36854
  3,
36717
36855
  105,
36718
- 1088,
36856
+ 1116,
36719
36857
  8,
36720
36858
  105,
36721
36859
  1,
@@ -36726,35 +36864,35 @@ var esql_parser = class _esql_parser extends parser_config {
36726
36864
  107,
36727
36865
  4,
36728
36866
  107,
36729
- 1093,
36867
+ 1121,
36730
36868
  8,
36731
36869
  107,
36732
36870
  11,
36733
36871
  107,
36734
36872
  12,
36735
36873
  107,
36736
- 1094,
36874
+ 1122,
36737
36875
  1,
36738
36876
  107,
36739
36877
  1,
36740
36878
  107,
36741
36879
  5,
36742
36880
  107,
36743
- 1099,
36881
+ 1127,
36744
36882
  8,
36745
36883
  107,
36746
36884
  10,
36747
36885
  107,
36748
36886
  12,
36749
36887
  107,
36750
- 1102,
36888
+ 1130,
36751
36889
  9,
36752
36890
  107,
36753
36891
  1,
36754
36892
  107,
36755
36893
  3,
36756
36894
  107,
36757
- 1105,
36895
+ 1133,
36758
36896
  8,
36759
36897
  107,
36760
36898
  1,
@@ -36777,7 +36915,7 @@ var esql_parser = class _esql_parser extends parser_config {
36777
36915
  108,
36778
36916
  3,
36779
36917
  108,
36780
- 1116,
36918
+ 1144,
36781
36919
  8,
36782
36920
  108,
36783
36921
  1,
@@ -37015,7 +37153,7 @@ var esql_parser = class _esql_parser extends parser_config {
37015
37153
  107,
37016
37154
  113,
37017
37155
  113,
37018
- 1176,
37156
+ 1210,
37019
37157
  0,
37020
37158
  229,
37021
37159
  1,
@@ -37623,73 +37761,73 @@ var esql_parser = class _esql_parser extends parser_config {
37623
37761
  0,
37624
37762
  0,
37625
37763
  202,
37626
- 1067,
37764
+ 1095,
37627
37765
  1,
37628
37766
  0,
37629
37767
  0,
37630
37768
  0,
37631
37769
  204,
37632
- 1069,
37770
+ 1097,
37633
37771
  1,
37634
37772
  0,
37635
37773
  0,
37636
37774
  0,
37637
37775
  206,
37638
- 1071,
37776
+ 1099,
37639
37777
  1,
37640
37778
  0,
37641
37779
  0,
37642
37780
  0,
37643
37781
  208,
37644
- 1075,
37782
+ 1103,
37645
37783
  1,
37646
37784
  0,
37647
37785
  0,
37648
37786
  0,
37649
37787
  210,
37650
- 1087,
37788
+ 1115,
37651
37789
  1,
37652
37790
  0,
37653
37791
  0,
37654
37792
  0,
37655
37793
  212,
37656
- 1089,
37794
+ 1117,
37657
37795
  1,
37658
37796
  0,
37659
37797
  0,
37660
37798
  0,
37661
37799
  214,
37662
- 1104,
37800
+ 1132,
37663
37801
  1,
37664
37802
  0,
37665
37803
  0,
37666
37804
  0,
37667
37805
  216,
37668
- 1115,
37806
+ 1143,
37669
37807
  1,
37670
37808
  0,
37671
37809
  0,
37672
37810
  0,
37673
37811
  218,
37674
- 1117,
37812
+ 1145,
37675
37813
  1,
37676
37814
  0,
37677
37815
  0,
37678
37816
  0,
37679
37817
  220,
37680
- 1119,
37818
+ 1147,
37681
37819
  1,
37682
37820
  0,
37683
37821
  0,
37684
37822
  0,
37685
37823
  222,
37686
- 1121,
37824
+ 1149,
37687
37825
  1,
37688
37826
  0,
37689
37827
  0,
37690
37828
  0,
37691
37829
  224,
37692
- 1123,
37830
+ 1151,
37693
37831
  1,
37694
37832
  0,
37695
37833
  0,
@@ -43533,546 +43671,750 @@ var esql_parser = class _esql_parser extends parser_config {
43533
43671
  0,
43534
43672
  0,
43535
43673
  1047,
43536
- 1049,
43674
+ 1048,
43537
43675
  5,
43538
43676
  105,
43539
43677
  0,
43540
43678
  0,
43541
43679
  1048,
43680
+ 1049,
43681
+ 5,
43682
+ 101,
43683
+ 0,
43684
+ 0,
43685
+ 1049,
43686
+ 1096,
43687
+ 5,
43688
+ 106,
43689
+ 0,
43690
+ 0,
43542
43691
  1050,
43692
+ 1054,
43693
+ 5,
43694
+ 39,
43695
+ 0,
43696
+ 0,
43697
+ 1051,
43698
+ 1053,
43699
+ 3,
43700
+ 206,
43701
+ 103,
43702
+ 0,
43703
+ 1052,
43704
+ 1051,
43705
+ 1,
43706
+ 0,
43707
+ 0,
43708
+ 0,
43709
+ 1053,
43710
+ 1056,
43711
+ 1,
43712
+ 0,
43713
+ 0,
43714
+ 0,
43715
+ 1054,
43716
+ 1052,
43717
+ 1,
43718
+ 0,
43719
+ 0,
43720
+ 0,
43721
+ 1054,
43722
+ 1055,
43723
+ 1,
43724
+ 0,
43725
+ 0,
43726
+ 0,
43727
+ 1055,
43728
+ 1060,
43729
+ 1,
43730
+ 0,
43731
+ 0,
43732
+ 0,
43733
+ 1056,
43734
+ 1054,
43735
+ 1,
43736
+ 0,
43737
+ 0,
43738
+ 0,
43739
+ 1057,
43740
+ 1058,
43741
+ 3,
43742
+ 204,
43743
+ 102,
43744
+ 0,
43745
+ 1058,
43746
+ 1059,
43747
+ 5,
43748
+ 63,
43749
+ 0,
43750
+ 0,
43751
+ 1059,
43752
+ 1061,
43753
+ 1,
43754
+ 0,
43755
+ 0,
43756
+ 0,
43757
+ 1060,
43758
+ 1057,
43759
+ 1,
43760
+ 0,
43761
+ 0,
43762
+ 0,
43763
+ 1060,
43764
+ 1061,
43765
+ 1,
43766
+ 0,
43767
+ 0,
43768
+ 0,
43769
+ 1061,
43770
+ 1062,
43771
+ 1,
43772
+ 0,
43773
+ 0,
43774
+ 0,
43775
+ 1062,
43776
+ 1096,
43777
+ 5,
43778
+ 101,
43779
+ 0,
43780
+ 0,
43781
+ 1063,
43782
+ 1067,
43783
+ 5,
43784
+ 39,
43785
+ 0,
43786
+ 0,
43787
+ 1064,
43788
+ 1066,
43789
+ 3,
43790
+ 206,
43791
+ 103,
43792
+ 0,
43793
+ 1065,
43794
+ 1064,
43795
+ 1,
43796
+ 0,
43797
+ 0,
43798
+ 0,
43799
+ 1066,
43800
+ 1069,
43801
+ 1,
43802
+ 0,
43803
+ 0,
43804
+ 0,
43805
+ 1067,
43806
+ 1065,
43807
+ 1,
43808
+ 0,
43809
+ 0,
43810
+ 0,
43811
+ 1067,
43812
+ 1068,
43813
+ 1,
43814
+ 0,
43815
+ 0,
43816
+ 0,
43817
+ 1068,
43818
+ 1073,
43819
+ 1,
43820
+ 0,
43821
+ 0,
43822
+ 0,
43823
+ 1069,
43824
+ 1067,
43825
+ 1,
43826
+ 0,
43827
+ 0,
43828
+ 0,
43829
+ 1070,
43830
+ 1071,
43831
+ 3,
43832
+ 204,
43833
+ 102,
43834
+ 0,
43835
+ 1071,
43836
+ 1072,
43837
+ 5,
43838
+ 63,
43839
+ 0,
43840
+ 0,
43841
+ 1072,
43842
+ 1074,
43843
+ 1,
43844
+ 0,
43845
+ 0,
43846
+ 0,
43847
+ 1073,
43848
+ 1070,
43849
+ 1,
43850
+ 0,
43851
+ 0,
43852
+ 0,
43853
+ 1073,
43854
+ 1074,
43855
+ 1,
43856
+ 0,
43857
+ 0,
43858
+ 0,
43859
+ 1074,
43860
+ 1075,
43861
+ 1,
43862
+ 0,
43863
+ 0,
43864
+ 0,
43865
+ 1075,
43866
+ 1077,
43867
+ 5,
43868
+ 105,
43869
+ 0,
43870
+ 0,
43871
+ 1076,
43872
+ 1078,
43543
43873
  3,
43544
43874
  214,
43545
43875
  107,
43546
43876
  0,
43547
- 1049,
43548
- 1048,
43877
+ 1077,
43878
+ 1076,
43549
43879
  1,
43550
43880
  0,
43551
43881
  0,
43552
43882
  0,
43553
- 1050,
43554
- 1051,
43883
+ 1078,
43884
+ 1079,
43555
43885
  1,
43556
43886
  0,
43557
43887
  0,
43558
43888
  0,
43559
- 1051,
43560
- 1049,
43889
+ 1079,
43890
+ 1077,
43561
43891
  1,
43562
43892
  0,
43563
43893
  0,
43564
43894
  0,
43565
- 1051,
43566
- 1052,
43895
+ 1079,
43896
+ 1080,
43567
43897
  1,
43568
43898
  0,
43569
43899
  0,
43570
43900
  0,
43571
- 1052,
43572
- 1053,
43901
+ 1080,
43902
+ 1081,
43573
43903
  1,
43574
43904
  0,
43575
43905
  0,
43576
43906
  0,
43577
- 1053,
43578
- 1054,
43907
+ 1081,
43908
+ 1082,
43579
43909
  5,
43580
43910
  106,
43581
43911
  0,
43582
43912
  0,
43583
- 1054,
43584
- 1068,
43913
+ 1082,
43914
+ 1096,
43585
43915
  1,
43586
43916
  0,
43587
43917
  0,
43588
43918
  0,
43589
- 1055,
43590
- 1059,
43919
+ 1083,
43920
+ 1087,
43591
43921
  5,
43592
43922
  39,
43593
43923
  0,
43594
43924
  0,
43595
- 1056,
43596
- 1058,
43925
+ 1084,
43926
+ 1086,
43597
43927
  3,
43598
43928
  206,
43599
43929
  103,
43600
43930
  0,
43601
- 1057,
43602
- 1056,
43931
+ 1085,
43932
+ 1084,
43603
43933
  1,
43604
43934
  0,
43605
43935
  0,
43606
43936
  0,
43607
- 1058,
43608
- 1061,
43937
+ 1086,
43938
+ 1089,
43609
43939
  1,
43610
43940
  0,
43611
43941
  0,
43612
43942
  0,
43613
- 1059,
43614
- 1057,
43943
+ 1087,
43944
+ 1085,
43615
43945
  1,
43616
43946
  0,
43617
43947
  0,
43618
43948
  0,
43619
- 1059,
43620
- 1060,
43949
+ 1087,
43950
+ 1088,
43621
43951
  1,
43622
43952
  0,
43623
43953
  0,
43624
43954
  0,
43625
- 1060,
43626
- 1063,
43955
+ 1088,
43956
+ 1091,
43627
43957
  1,
43628
43958
  0,
43629
43959
  0,
43630
43960
  0,
43631
- 1061,
43632
- 1059,
43961
+ 1089,
43962
+ 1087,
43633
43963
  1,
43634
43964
  0,
43635
43965
  0,
43636
43966
  0,
43637
- 1062,
43638
- 1064,
43967
+ 1090,
43968
+ 1092,
43639
43969
  3,
43640
43970
  214,
43641
43971
  107,
43642
43972
  0,
43643
- 1063,
43644
- 1062,
43973
+ 1091,
43974
+ 1090,
43645
43975
  1,
43646
43976
  0,
43647
43977
  0,
43648
43978
  0,
43649
- 1064,
43650
- 1065,
43979
+ 1092,
43980
+ 1093,
43651
43981
  1,
43652
43982
  0,
43653
43983
  0,
43654
43984
  0,
43655
- 1065,
43656
- 1063,
43985
+ 1093,
43986
+ 1091,
43657
43987
  1,
43658
43988
  0,
43659
43989
  0,
43660
43990
  0,
43661
- 1065,
43662
- 1066,
43991
+ 1093,
43992
+ 1094,
43663
43993
  1,
43664
43994
  0,
43665
43995
  0,
43666
43996
  0,
43667
- 1066,
43668
- 1068,
43997
+ 1094,
43998
+ 1096,
43669
43999
  1,
43670
44000
  0,
43671
44001
  0,
43672
44002
  0,
43673
- 1067,
44003
+ 1095,
43674
44004
  1035,
43675
44005
  1,
43676
44006
  0,
43677
44007
  0,
43678
44008
  0,
43679
- 1067,
43680
- 1055,
44009
+ 1095,
44010
+ 1050,
43681
44011
  1,
43682
44012
  0,
43683
44013
  0,
43684
44014
  0,
43685
- 1068,
44015
+ 1095,
44016
+ 1063,
44017
+ 1,
44018
+ 0,
44019
+ 0,
44020
+ 0,
44021
+ 1095,
44022
+ 1083,
44023
+ 1,
44024
+ 0,
44025
+ 0,
44026
+ 0,
44027
+ 1096,
43686
44028
  203,
43687
44029
  1,
43688
44030
  0,
43689
44031
  0,
43690
44032
  0,
43691
- 1069,
43692
- 1070,
44033
+ 1097,
44034
+ 1098,
43693
44035
  7,
43694
44036
  1,
43695
44037
  0,
43696
44038
  0,
43697
- 1070,
44039
+ 1098,
43698
44040
  205,
43699
44041
  1,
43700
44042
  0,
43701
44043
  0,
43702
44044
  0,
43703
- 1071,
43704
- 1072,
44045
+ 1099,
44046
+ 1100,
43705
44047
  3,
43706
44048
  208,
43707
44049
  104,
43708
44050
  0,
43709
- 1072,
43710
- 1073,
44051
+ 1100,
44052
+ 1101,
43711
44053
  5,
43712
44054
  63,
43713
44055
  0,
43714
44056
  0,
43715
- 1073,
43716
- 1074,
44057
+ 1101,
44058
+ 1102,
43717
44059
  3,
43718
44060
  210,
43719
44061
  105,
43720
44062
  0,
43721
- 1074,
44063
+ 1102,
43722
44064
  207,
43723
44065
  1,
43724
44066
  0,
43725
44067
  0,
43726
44068
  0,
43727
- 1075,
43728
- 1076,
44069
+ 1103,
44070
+ 1104,
43729
44071
  7,
43730
44072
  10,
43731
44073
  0,
43732
44074
  0,
43733
- 1076,
44075
+ 1104,
43734
44076
  209,
43735
44077
  1,
43736
44078
  0,
43737
44079
  0,
43738
44080
  0,
43739
- 1077,
43740
- 1082,
44081
+ 1105,
44082
+ 1110,
43741
44083
  3,
43742
44084
  216,
43743
44085
  108,
43744
44086
  0,
43745
- 1078,
43746
- 1079,
44087
+ 1106,
44088
+ 1107,
43747
44089
  5,
43748
44090
  68,
43749
44091
  0,
43750
44092
  0,
43751
- 1079,
43752
- 1081,
44093
+ 1107,
44094
+ 1109,
43753
44095
  3,
43754
44096
  216,
43755
44097
  108,
43756
44098
  0,
43757
- 1080,
43758
- 1078,
44099
+ 1108,
44100
+ 1106,
43759
44101
  1,
43760
44102
  0,
43761
44103
  0,
43762
44104
  0,
43763
- 1081,
43764
- 1084,
44105
+ 1109,
44106
+ 1112,
43765
44107
  1,
43766
44108
  0,
43767
44109
  0,
43768
44110
  0,
43769
- 1082,
43770
- 1080,
44111
+ 1110,
44112
+ 1108,
43771
44113
  1,
43772
44114
  0,
43773
44115
  0,
43774
44116
  0,
43775
- 1082,
43776
- 1083,
44117
+ 1110,
44118
+ 1111,
43777
44119
  1,
43778
44120
  0,
43779
44121
  0,
43780
44122
  0,
43781
- 1083,
43782
- 1088,
44123
+ 1111,
44124
+ 1116,
43783
44125
  1,
43784
44126
  0,
43785
44127
  0,
43786
44128
  0,
43787
- 1084,
43788
- 1082,
44129
+ 1112,
44130
+ 1110,
43789
44131
  1,
43790
44132
  0,
43791
44133
  0,
43792
44134
  0,
43793
- 1085,
43794
- 1088,
44135
+ 1113,
44136
+ 1116,
43795
44137
  5,
43796
44138
  108,
43797
44139
  0,
43798
44140
  0,
43799
- 1086,
43800
- 1088,
44141
+ 1114,
44142
+ 1116,
43801
44143
  5,
43802
44144
  101,
43803
44145
  0,
43804
44146
  0,
43805
- 1087,
43806
- 1077,
44147
+ 1115,
44148
+ 1105,
43807
44149
  1,
43808
44150
  0,
43809
44151
  0,
43810
44152
  0,
43811
- 1087,
43812
- 1085,
44153
+ 1115,
44154
+ 1113,
43813
44155
  1,
43814
44156
  0,
43815
44157
  0,
43816
44158
  0,
43817
- 1087,
43818
- 1086,
44159
+ 1115,
44160
+ 1114,
43819
44161
  1,
43820
44162
  0,
43821
44163
  0,
43822
44164
  0,
43823
- 1088,
44165
+ 1116,
43824
44166
  211,
43825
44167
  1,
43826
44168
  0,
43827
44169
  0,
43828
44170
  0,
43829
- 1089,
43830
- 1090,
44171
+ 1117,
44172
+ 1118,
43831
44173
  7,
43832
44174
  11,
43833
44175
  0,
43834
44176
  0,
43835
- 1090,
44177
+ 1118,
43836
44178
  213,
43837
44179
  1,
43838
44180
  0,
43839
44181
  0,
43840
44182
  0,
43841
- 1091,
43842
- 1093,
44183
+ 1119,
44184
+ 1121,
43843
44185
  3,
43844
44186
  212,
43845
44187
  106,
43846
44188
  0,
43847
- 1092,
43848
- 1091,
44189
+ 1120,
44190
+ 1119,
43849
44191
  1,
43850
44192
  0,
43851
44193
  0,
43852
44194
  0,
43853
- 1093,
43854
- 1094,
44195
+ 1121,
44196
+ 1122,
43855
44197
  1,
43856
44198
  0,
43857
44199
  0,
43858
44200
  0,
43859
- 1094,
43860
- 1092,
44201
+ 1122,
44202
+ 1120,
43861
44203
  1,
43862
44204
  0,
43863
44205
  0,
43864
44206
  0,
43865
- 1094,
43866
- 1095,
44207
+ 1122,
44208
+ 1123,
43867
44209
  1,
43868
44210
  0,
43869
44211
  0,
43870
44212
  0,
43871
- 1095,
43872
- 1105,
44213
+ 1123,
44214
+ 1133,
43873
44215
  1,
43874
44216
  0,
43875
44217
  0,
43876
44218
  0,
43877
- 1096,
43878
- 1100,
44219
+ 1124,
44220
+ 1128,
43879
44221
  5,
43880
44222
  105,
43881
44223
  0,
43882
44224
  0,
43883
- 1097,
43884
- 1099,
44225
+ 1125,
44226
+ 1127,
43885
44227
  3,
43886
44228
  214,
43887
44229
  107,
43888
44230
  0,
43889
- 1098,
43890
- 1097,
44231
+ 1126,
44232
+ 1125,
43891
44233
  1,
43892
44234
  0,
43893
44235
  0,
43894
44236
  0,
43895
- 1099,
43896
- 1102,
44237
+ 1127,
44238
+ 1130,
43897
44239
  1,
43898
44240
  0,
43899
44241
  0,
43900
44242
  0,
43901
- 1100,
43902
- 1098,
44243
+ 1128,
44244
+ 1126,
43903
44245
  1,
43904
44246
  0,
43905
44247
  0,
43906
44248
  0,
43907
- 1100,
43908
- 1101,
44249
+ 1128,
44250
+ 1129,
43909
44251
  1,
43910
44252
  0,
43911
44253
  0,
43912
44254
  0,
43913
- 1101,
43914
- 1103,
44255
+ 1129,
44256
+ 1131,
43915
44257
  1,
43916
44258
  0,
43917
44259
  0,
43918
44260
  0,
43919
- 1102,
43920
- 1100,
44261
+ 1130,
44262
+ 1128,
43921
44263
  1,
43922
44264
  0,
43923
44265
  0,
43924
44266
  0,
43925
- 1103,
43926
- 1105,
44267
+ 1131,
44268
+ 1133,
43927
44269
  5,
43928
44270
  106,
43929
44271
  0,
43930
44272
  0,
43931
- 1104,
43932
- 1092,
44273
+ 1132,
44274
+ 1120,
43933
44275
  1,
43934
44276
  0,
43935
44277
  0,
43936
44278
  0,
43937
- 1104,
43938
- 1096,
44279
+ 1132,
44280
+ 1124,
43939
44281
  1,
43940
44282
  0,
43941
44283
  0,
43942
44284
  0,
43943
- 1105,
44285
+ 1133,
43944
44286
  215,
43945
44287
  1,
43946
44288
  0,
43947
44289
  0,
43948
44290
  0,
43949
- 1106,
43950
- 1107,
44291
+ 1134,
44292
+ 1135,
43951
44293
  3,
43952
44294
  218,
43953
44295
  109,
43954
44296
  0,
43955
- 1107,
43956
- 1108,
44297
+ 1135,
44298
+ 1136,
43957
44299
  5,
43958
44300
  66,
43959
44301
  0,
43960
44302
  0,
43961
- 1108,
43962
- 1109,
44303
+ 1136,
44304
+ 1137,
43963
44305
  3,
43964
44306
  222,
43965
44307
  111,
43966
44308
  0,
43967
- 1109,
43968
- 1116,
44309
+ 1137,
44310
+ 1144,
43969
44311
  1,
43970
44312
  0,
43971
44313
  0,
43972
44314
  0,
43973
- 1110,
43974
- 1111,
44315
+ 1138,
44316
+ 1139,
43975
44317
  3,
43976
44318
  222,
43977
44319
  111,
43978
44320
  0,
43979
- 1111,
43980
- 1112,
44321
+ 1139,
44322
+ 1140,
43981
44323
  5,
43982
44324
  65,
43983
44325
  0,
43984
44326
  0,
43985
- 1112,
43986
- 1113,
44327
+ 1140,
44328
+ 1141,
43987
44329
  3,
43988
44330
  220,
43989
44331
  110,
43990
44332
  0,
43991
- 1113,
43992
- 1116,
44333
+ 1141,
44334
+ 1144,
43993
44335
  1,
43994
44336
  0,
43995
44337
  0,
43996
44338
  0,
43997
- 1114,
43998
- 1116,
44339
+ 1142,
44340
+ 1144,
43999
44341
  3,
44000
44342
  224,
44001
44343
  112,
44002
44344
  0,
44003
- 1115,
44004
- 1106,
44345
+ 1143,
44346
+ 1134,
44005
44347
  1,
44006
44348
  0,
44007
44349
  0,
44008
44350
  0,
44009
- 1115,
44010
- 1110,
44351
+ 1143,
44352
+ 1138,
44011
44353
  1,
44012
44354
  0,
44013
44355
  0,
44014
44356
  0,
44015
- 1115,
44016
- 1114,
44357
+ 1143,
44358
+ 1142,
44017
44359
  1,
44018
44360
  0,
44019
44361
  0,
44020
44362
  0,
44021
- 1116,
44363
+ 1144,
44022
44364
  217,
44023
44365
  1,
44024
44366
  0,
44025
44367
  0,
44026
44368
  0,
44027
- 1117,
44028
- 1118,
44369
+ 1145,
44370
+ 1146,
44029
44371
  7,
44030
44372
  12,
44031
44373
  0,
44032
44374
  0,
44033
- 1118,
44375
+ 1146,
44034
44376
  219,
44035
44377
  1,
44036
44378
  0,
44037
44379
  0,
44038
44380
  0,
44039
- 1119,
44040
- 1120,
44381
+ 1147,
44382
+ 1148,
44041
44383
  7,
44042
44384
  12,
44043
44385
  0,
44044
44386
  0,
44045
- 1120,
44387
+ 1148,
44046
44388
  221,
44047
44389
  1,
44048
44390
  0,
44049
44391
  0,
44050
44392
  0,
44051
- 1121,
44052
- 1122,
44393
+ 1149,
44394
+ 1150,
44053
44395
  7,
44054
44396
  12,
44055
44397
  0,
44056
44398
  0,
44057
- 1122,
44399
+ 1150,
44058
44400
  223,
44059
44401
  1,
44060
44402
  0,
44061
44403
  0,
44062
44404
  0,
44063
- 1123,
44064
- 1124,
44405
+ 1151,
44406
+ 1152,
44065
44407
  7,
44066
44408
  13,
44067
44409
  0,
44068
44410
  0,
44069
- 1124,
44411
+ 1152,
44070
44412
  225,
44071
44413
  1,
44072
44414
  0,
44073
44415
  0,
44074
44416
  0,
44075
- 110,
44417
+ 114,
44076
44418
  229,
44077
44419
  246,
44078
44420
  258,
@@ -44173,16 +44515,20 @@ var esql_parser = class _esql_parser extends parser_config {
44173
44515
  1032,
44174
44516
  1039,
44175
44517
  1045,
44176
- 1051,
44177
- 1059,
44178
- 1065,
44518
+ 1054,
44519
+ 1060,
44179
44520
  1067,
44180
- 1082,
44521
+ 1073,
44522
+ 1079,
44181
44523
  1087,
44182
- 1094,
44183
- 1100,
44184
- 1104,
44185
- 1115
44524
+ 1093,
44525
+ 1095,
44526
+ 1110,
44527
+ 1115,
44528
+ 1122,
44529
+ 1128,
44530
+ 1132,
44531
+ 1143
44186
44532
  ];
44187
44533
  static __ATN;
44188
44534
  static get _ATN() {
@@ -48159,6 +48505,9 @@ var PromqlCommandContext = class extends ParserRuleContext {
48159
48505
  LP() {
48160
48506
  return this.getToken(esql_parser.LP, 0);
48161
48507
  }
48508
+ NAMED_OR_POSITIONAL_PARAM() {
48509
+ return this.getToken(esql_parser.NAMED_OR_POSITIONAL_PARAM, 0);
48510
+ }
48162
48511
  RP() {
48163
48512
  return this.getToken(esql_parser.RP, 0);
48164
48513
  }
@@ -60883,20 +61232,30 @@ var CstToAstConverter = class {
60883
61232
  const lp = ctx.LP();
60884
61233
  const rp = ctx.RP();
60885
61234
  const valueNameCtx = ctx.valueName();
60886
- let node = this.fromPromqlQueryParts(queryPartCtxs);
61235
+ let node;
61236
+ const namedParam = ctx.NAMED_OR_POSITIONAL_PARAM();
61237
+ if (namedParam) {
61238
+ const text2 = namedParam.getText();
61239
+ const paramValue = text2.slice(1);
61240
+ const valueAsNumber = Number(paramValue);
61241
+ const isPositional = String(valueAsNumber) === paramValue;
61242
+ const parserFields = this.getParserFields(ctx);
61243
+ node = isPositional ? Builder.param.positional({ value: valueAsNumber }, parserFields) : Builder.param.named({ value: paramValue }, parserFields);
61244
+ } else {
61245
+ node = this.fromPromqlQueryParts(queryPartCtxs);
61246
+ }
60887
61247
  if (!node) {
60888
61248
  return void 0;
60889
61249
  }
60890
- if (!lp) {
60891
- return node;
61250
+ if (lp) {
61251
+ const closeParenText = rp?.getText() ?? "";
61252
+ const hasCloseParen = rp && !/<missing /.test(closeParenText);
61253
+ const parensLocation = getPosition(lp.symbol, hasCloseParen ? rp.symbol : ctx.stop);
61254
+ node = Builder.expression.parens(node, {
61255
+ location: parensLocation,
61256
+ incomplete: !hasCloseParen || node.incomplete
61257
+ });
60892
61258
  }
60893
- const closeParenText = rp?.getText() ?? "";
60894
- const hasCloseParen = rp && !/<missing /.test(closeParenText);
60895
- const parensLocation = getPosition(lp.symbol, hasCloseParen ? rp.symbol : ctx.stop);
60896
- node = Builder.expression.parens(node, {
60897
- location: parensLocation,
60898
- incomplete: !hasCloseParen || node.incomplete
60899
- });
60900
61259
  if (valueNameCtx) {
60901
61260
  const valueNameId = this.fromIdentifier(valueNameCtx);
60902
61261
  node = Builder.expression.func.binary(
@@ -60904,7 +61263,7 @@ var CstToAstConverter = class {
60904
61263
  [valueNameId, node],
60905
61264
  {},
60906
61265
  {
60907
- location: getPosition(valueNameCtx.start, hasCloseParen ? rp.symbol : ctx.stop),
61266
+ location: getPosition(valueNameCtx.start, ctx.stop),
60908
61267
  incomplete: node.incomplete
60909
61268
  }
60910
61269
  );