Skip to content

Commit 06840ba

Browse files
authored
ESQL: Remove historical features (#116966)
Our friends working on cluster features are looking to remove the infrastructure for historical features. In `main` all historical features are always enabled because historical features weren't allowed to support versions before 8.a_long_time_ago. All of ours are certainly enabled for versions `main` is wire compatible with.
1 parent 7dc2cc6 commit 06840ba

File tree

14 files changed

+11
-137
lines changed

14 files changed

+11
-137
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/resources/boolean.csv-spec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ avg(salary):double | always_false:boolean
6363

6464

6565
in
66-
required_capability: mv_warn
6766

6867
from employees | keep emp_no, is_rehired, still_hired | where is_rehired in (still_hired, true) | where is_rehired != still_hired;
6968
ignoreOrder:true

x-pack/plugin/esql/qa/testFixtures/src/main/resources/date.csv-spec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ string:keyword |datetime:date
216216
;
217217

218218
convertFromUnsignedLong
219-
required_capability: convert_warn
220219

221220
row ul = [9223372036854775808, 520128000000] | eval dt = to_datetime(ul);
222221
warningRegex:Line 1:58: evaluation of \[to_datetime\(ul\)\] failed, treating result as null. Only first 20 failures recorded.

x-pack/plugin/esql/qa/testFixtures/src/main/resources/enrich.csv-spec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,6 @@ CPH | Copenhagen | POINT(12.5683 55.6761) | Denmark
580580

581581
spatialEnrichmentGeoMatchStats#[skip:-8.13.99, reason:ENRICH extended in 8.14.0]
582582
required_capability: enrich_load
583-
required_capability: mv_warn
584583

585584
FROM airports
586585
| ENRICH city_boundaries ON city_location WITH airport, region, city_boundary

x-pack/plugin/esql/qa/testFixtures/src/main/resources/floats.csv-spec

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ int:integer |dbl:double
9999
;
100100

101101
lessThanMultivalue
102-
required_capability: mv_warn
103102

104103
from employees | where salary_change < 1 | keep emp_no, salary_change | sort emp_no | limit 5;
105104
warningRegex:evaluation of \[salary_change < 1\] failed, treating result as null. Only first 20 failures recorded.
@@ -115,7 +114,6 @@ emp_no:integer |salary_change:double
115114
;
116115

117116
greaterThanMultivalue
118-
required_capability: mv_warn
119117

120118
from employees | where salary_change > 1 | keep emp_no, salary_change | sort emp_no | limit 5;
121119
warningRegex:evaluation of \[salary_change > 1\] failed, treating result as null. Only first 20 failures recorded.
@@ -131,7 +129,6 @@ emp_no:integer |salary_change:double
131129
;
132130

133131
equalToMultivalue
134-
required_capability: mv_warn
135132

136133
from employees | where salary_change == 1.19 | keep emp_no, salary_change | sort emp_no;
137134
warning:Line 1:24: evaluation of [salary_change == 1.19] failed, treating result as null. Only first 20 failures recorded.
@@ -143,7 +140,6 @@ emp_no:integer |salary_change:double
143140
;
144141

145142
equalToOrEqualToMultivalue
146-
required_capability: mv_warn
147143

148144
from employees | where salary_change == 1.19 or salary_change == 7.58 | keep emp_no, salary_change | sort emp_no;
149145
warning:Line 1:24: evaluation of [salary_change] failed, treating result as null. Only first 20 failures recorded.
@@ -156,7 +152,6 @@ emp_no:integer |salary_change:double
156152
;
157153

158154
inMultivalue
159-
required_capability: mv_warn
160155

161156
from employees | where salary_change in (1.19, 7.58) | keep emp_no, salary_change | sort emp_no;
162157
warning:Line 1:24: evaluation of [salary_change in (1.19, 7.58)] failed, treating result as null. Only first 20 failures recorded.
@@ -169,7 +164,6 @@ emp_no:integer |salary_change:double
169164
;
170165

171166
notLessThanMultivalue
172-
required_capability: mv_warn
173167

174168
from employees | where not(salary_change < 1) | keep emp_no, salary_change | sort emp_no | limit 5;
175169
warningRegex:evaluation of \[.*salary_change < 1.*\] failed, treating result as null. Only first 20 failures recorded.
@@ -185,7 +179,6 @@ emp_no:integer |salary_change:double
185179
;
186180

187181
notGreaterThanMultivalue
188-
required_capability: mv_warn
189182

190183
from employees | where not(salary_change > 1) | keep emp_no, salary_change | sort emp_no | limit 5;
191184
warningRegex:evaluation of \[.*salary_change > 1.*\] failed, treating result as null. Only first 20 failures recorded.
@@ -201,7 +194,6 @@ emp_no:integer |salary_change:double
201194
;
202195

203196
notEqualToMultivalue
204-
required_capability: mv_warn
205197

206198
from employees | where not(salary_change == 1.19) | keep emp_no, salary_change | sort emp_no | limit 5;
207199
warningRegex:evaluation of \[.*salary_change == 1.19.*\] failed, treating result as null. Only first 20 failures recorded.

x-pack/plugin/esql/qa/testFixtures/src/main/resources/ints.csv-spec

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Integral types-specific tests
22

33
inLongAndInt
4-
required_capability: mv_warn
54

65
from employees | where avg_worked_seconds in (372957040, salary_change.long, 236703986) | where emp_no in (10017, emp_no - 1) | keep emp_no, avg_worked_seconds;
76
warningRegex:evaluation of \[avg_worked_seconds in \(372957040, salary_change.long, 236703986\)\] failed, treating result as null. Only first 20 failures recorded.
@@ -68,7 +67,6 @@ long:long |ul:ul
6867
;
6968

7069
convertDoubleToUL
71-
required_capability: convert_warn
7270

7371
row d = 123.4 | eval ul = to_ul(d), overflow = to_ul(1e20);
7472
warningRegex:Line 1:48: evaluation of \[to_ul\(1e20\)\] failed, treating result as null. Only first 20 failures recorded.
@@ -127,7 +125,6 @@ int:integer |long:long
127125
;
128126

129127
convertULToLong
130-
required_capability: convert_warn
131128

132129
row ul = [9223372036854775807, 9223372036854775808] | eval long = to_long(ul);
133130
warningRegex:Line 1:67: evaluation of \[to_long\(ul\)\] failed, treating result as null. Only first 20 failures recorded.
@@ -170,7 +167,6 @@ str1:keyword |str2:keyword |str3:keyword |long1:long |long2:long |long3:long
170167
;
171168

172169
convertDoubleToLong
173-
required_capability: convert_warn
174170

175171
row d = 123.4 | eval d2l = to_long(d), overflow = to_long(1e19);
176172
warningRegex:Line 1:51: evaluation of \[to_long\(1e19\)\] failed, treating result as null. Only first 20 failures recorded.
@@ -190,7 +186,6 @@ int:integer |ii:integer
190186
;
191187

192188
convertLongToInt
193-
required_capability: convert_warn
194189

195190
// tag::to_int-long[]
196191
ROW long = [5013792, 2147483647, 501379200000]
@@ -207,7 +202,6 @@ long:long |int:integer
207202
;
208203

209204
convertULToInt
210-
required_capability: convert_warn
211205

212206
row ul = [2147483647, 9223372036854775808] | eval int = to_int(ul);
213207
warningRegex:Line 1:57: evaluation of \[to_int\(ul\)\] failed, treating result as null. Only first 20 failures recorded.
@@ -239,7 +233,6 @@ int_str:keyword |int_dbl_str:keyword |is2i:integer|ids2i:integer
239233
;
240234

241235
convertStringToIntFail#[skip:-8.13.99, reason:warning changed in 8.14]
242-
required_capability: mv_warn
243236

244237
row str1 = "2147483647.2", str2 = "2147483648", non = "no number" | eval i1 = to_integer(str1), i2 = to_integer(str2), noi = to_integer(non);
245238
warningRegex:Line 1:79: evaluation of \[to_integer\(str1\)\] failed, treating result as null. Only first 20 failures recorded.
@@ -254,7 +247,6 @@ str1:keyword |str2:keyword |non:keyword |i1:integer |i2:integer |
254247
;
255248

256249
convertDoubleToInt
257-
required_capability: convert_warn
258250

259251
row d = 123.4 | eval d2i = to_integer(d), overflow = to_integer(1e19);
260252
warningRegex:Line 1:54: evaluation of \[to_integer\(1e19\)\] failed, treating result as null. Only first 20 failures recorded.
@@ -265,7 +257,6 @@ d:double |d2i:integer |overflow:integer
265257
;
266258

267259
lessThanMultivalue
268-
required_capability: mv_warn
269260

270261
from employees | where salary_change.int < 1 | keep emp_no, salary_change.int | sort emp_no | limit 5;
271262
warningRegex:evaluation of \[salary_change.int < 1\] failed, treating result as null. Only first 20 failures recorded.
@@ -281,7 +272,6 @@ emp_no:integer |salary_change.int:integer
281272
;
282273

283274
greaterThanMultivalue
284-
required_capability: mv_warn
285275

286276
from employees | where salary_change.int > 1 | keep emp_no, salary_change.int | sort emp_no | limit 5;
287277
warningRegex:evaluation of \[salary_change.int > 1\] failed, treating result as null. Only first 20 failures recorded.
@@ -297,7 +287,6 @@ emp_no:integer |salary_change.int:integer
297287
;
298288

299289
equalToMultivalue
300-
required_capability: mv_warn
301290

302291
from employees | where salary_change.int == 0 | keep emp_no, salary_change.int | sort emp_no;
303292
warningRegex:evaluation of \[salary_change.int == 0\] failed, treating result as null. Only first 20 failures recorded.
@@ -312,7 +301,6 @@ emp_no:integer |salary_change.int:integer
312301
;
313302

314303
equalToOrEqualToMultivalue
315-
required_capability: mv_warn
316304

317305
from employees | where salary_change.int == 1 or salary_change.int == 8 | keep emp_no, salary_change.int | sort emp_no;
318306
warningRegex:evaluation of \[salary_change.int\] failed, treating result as null. Only first 20 failures recorded.
@@ -325,7 +313,6 @@ emp_no:integer |salary_change.int:integer
325313
;
326314

327315
inMultivalue
328-
required_capability: mv_warn
329316

330317
from employees | where salary_change.int in (1, 7) | keep emp_no, salary_change.int | sort emp_no;
331318
warningRegex:evaluation of \[salary_change.int in \(1, 7\)\] failed, treating result as null. Only first 20 failures recorded.
@@ -338,7 +325,6 @@ emp_no:integer |salary_change.int:integer
338325
;
339326

340327
notLessThanMultivalue
341-
required_capability: mv_warn
342328

343329
from employees | where not(salary_change.int < 1) | keep emp_no, salary_change.int | sort emp_no | limit 5;
344330
warningRegex:evaluation of \[.*salary_change.int < 1.*\] failed, treating result as null. Only first 20 failures recorded.
@@ -354,7 +340,6 @@ emp_no:integer |salary_change.int:integer
354340
;
355341

356342
notGreaterThanMultivalue
357-
required_capability: mv_warn
358343

359344
from employees | where not(salary_change.int > 1) | keep emp_no, salary_change.int | sort emp_no | limit 5;
360345
warningRegex:evaluation of \[.*salary_change.int > 1.*\] failed, treating result as null. Only first 20 failures recorded.
@@ -370,7 +355,6 @@ emp_no:integer |salary_change.int:integer
370355
;
371356

372357
notEqualToMultivalue
373-
required_capability: mv_warn
374358

375359
from employees | where not(salary_change.int == 1) | keep emp_no, salary_change.int | sort emp_no | limit 5;
376360
warningRegex:evaluation of \[.*salary_change.int == 1.*\] failed, treating result as null. Only first 20 failures recorded

x-pack/plugin/esql/qa/testFixtures/src/main/resources/ip.csv-spec

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ eth2 |epsilon |[fe81::cae2:65ff:fece:feb9, fe82::cae2:65ff:fece
1616
;
1717

1818
equals
19-
required_capability: mv_warn
2019

2120
from hosts | sort host, card | where ip0 == ip1 | keep card, host, ip0, ip1;
2221
warningRegex:evaluation of \[ip0 == ip1\] failed, treating result as null. Only first 20 failures recorded.
@@ -60,7 +59,6 @@ eth2 |epsilon |[fe81::cae2:65ff:fece:feb9, fe82::cae2:65ff:fece
6059
;
6160

6261
lessThan
63-
required_capability: mv_warn
6462

6563
from hosts | sort host, card, ip1 | where ip0 < ip1 | keep card, host, ip0, ip1;
6664
warningRegex:evaluation of \[ip0 < ip1\] failed, treating result as null. Only first 20 failures recorded.
@@ -73,7 +71,6 @@ lo0 |gamma |fe80::cae2:65ff:fece:feb9|fe81::cae2:65ff:fece:f
7371
;
7472

7573
notEquals
76-
required_capability: mv_warn
7774

7875
from hosts | sort host, card, ip1 | where ip0 != ip1 | keep card, host, ip0, ip1;
7976
warningRegex:evaluation of \[ip0 != ip1\] failed, treating result as null. Only first 20 failures recorded.
@@ -125,7 +122,6 @@ null |[127.0.0.1, 127.0.0.2, 127.0.0.3]
125122
;
126123

127124
conditional
128-
required_capability: mv_warn
129125

130126
from hosts | eval eq=case(ip0==ip1, ip0, ip1) | keep eq, ip0, ip1;
131127
ignoreOrder:true
@@ -146,7 +142,6 @@ fe80::cae2:65ff:fece:fec1 |[fe80::cae2:65ff:fece:feb
146142
;
147143

148144
in
149-
required_capability: mv_warn
150145

151146
from hosts | eval eq=case(ip0==ip1, ip0, ip1) | where eq in (ip0, ip1) | keep card, host, ip0, ip1, eq;
152147
ignoreOrder:true
@@ -168,7 +163,6 @@ eth0 |epsilon |[fe80::cae2:65ff:fece:feb9, fe80::cae2:65ff:fece
168163

169164

170165
inWithWarningsRegex#[skip:-8.13.99, reason:regex warnings in tests introduced in v 8.14.0]
171-
required_capability: mv_warn
172166

173167
from hosts | eval eq=case(ip0==ip1, ip0, ip1) | where eq in (ip0, ip1) | keep card, host, ip0, ip1, eq;
174168
ignoreOrder:true
@@ -188,7 +182,6 @@ eth0 |epsilon |[fe80::cae2:65ff:fece:feb9, fe80::cae2:65ff:fece
188182
;
189183

190184
cidrMatchSimple
191-
required_capability: mv_warn
192185

193186
from hosts | where cidr_match(ip1, "127.0.0.2/32") | keep card, host, ip0, ip1;
194187
warningRegex:evaluation of \[cidr_match\(ip1, \\\"127.0.0.2/32\\\"\)\] failed, treating result as null. Only first 20 failures recorded.
@@ -199,7 +192,6 @@ eth1 |beta |127.0.0.1 |127.0.0.2
199192
;
200193

201194
cidrMatchNullField
202-
required_capability: mv_warn
203195

204196
from hosts | where cidr_match(ip0, "127.0.0.2/32") is null | keep card, host, ip0, ip1;
205197
ignoreOrder:true
@@ -213,7 +205,6 @@ eth2 |epsilon |[fe81::cae2:65ff:fece:feb9, fe82::cae2:65ff:fece
213205
;
214206

215207
cdirMatchMultipleArgs
216-
required_capability: mv_warn
217208

218209
//tag::cdirMatchMultipleArgs[]
219210
FROM hosts
@@ -233,7 +224,6 @@ eth0 |gamma |fe80::cae2:65ff:fece:feb9|127.0.0.3
233224
;
234225

235226
cidrMatchFunctionArg
236-
required_capability: mv_warn
237227

238228
from hosts | where cidr_match(ip1, concat("127.0.0.2", "/32"), "127.0.0.3/32") | keep card, host, ip0, ip1;
239229
ignoreOrder:true
@@ -246,7 +236,6 @@ eth0 |gamma |fe80::cae2:65ff:fece:feb9|127.0.0.3
246236
;
247237

248238
cidrMatchFieldArg
249-
required_capability: mv_warn
250239

251240
from hosts | eval cidr="127.0.0.2" | where cidr_match(ip1, cidr, "127.0.0.3/32") | keep card, host, ip0, ip1;
252241
ignoreOrder:true
@@ -366,7 +355,6 @@ eth0 |beta |127.0.0.1 |::1
366355
;
367356

368357
pushDownIPWithIn
369-
required_capability: mv_warn
370358

371359
from hosts | where ip1 in (to_ip("::1"), to_ip("127.0.0.1")) | keep card, host, ip0, ip1;
372360
ignoreOrder:true
@@ -380,7 +368,6 @@ eth0 |beta |127.0.0.1 |::1
380368
;
381369

382370
pushDownIPWithComparision
383-
required_capability: mv_warn
384371

385372
from hosts | where ip1 > to_ip("127.0.0.1") | keep card, ip1;
386373
ignoreOrder:true

0 commit comments

Comments
 (0)