Skip to content

Commit

Permalink
ESQL: Remove historical features (elastic#116966)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nik9000 authored Nov 21, 2024
1 parent 7dc2cc6 commit 06840ba
Show file tree
Hide file tree
Showing 14 changed files with 11 additions and 137 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ avg(salary):double | always_false:boolean


in
required_capability: mv_warn

from employees | keep emp_no, is_rehired, still_hired | where is_rehired in (still_hired, true) | where is_rehired != still_hired;
ignoreOrder:true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ string:keyword |datetime:date
;

convertFromUnsignedLong
required_capability: convert_warn

row ul = [9223372036854775808, 520128000000] | eval dt = to_datetime(ul);
warningRegex:Line 1:58: evaluation of \[to_datetime\(ul\)\] failed, treating result as null. Only first 20 failures recorded.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,6 @@ CPH | Copenhagen | POINT(12.5683 55.6761) | Denmark

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

FROM airports
| ENRICH city_boundaries ON city_location WITH airport, region, city_boundary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ int:integer |dbl:double
;

lessThanMultivalue
required_capability: mv_warn

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

greaterThanMultivalue
required_capability: mv_warn

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

equalToMultivalue
required_capability: mv_warn

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

equalToOrEqualToMultivalue
required_capability: mv_warn

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

inMultivalue
required_capability: mv_warn

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

notLessThanMultivalue
required_capability: mv_warn

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

notGreaterThanMultivalue
required_capability: mv_warn

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

notEqualToMultivalue
required_capability: mv_warn

from employees | where not(salary_change == 1.19) | keep emp_no, salary_change | sort emp_no | limit 5;
warningRegex:evaluation of \[.*salary_change == 1.19.*\] failed, treating result as null. Only first 20 failures recorded.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Integral types-specific tests

inLongAndInt
required_capability: mv_warn

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;
warningRegex:evaluation of \[avg_worked_seconds in \(372957040, salary_change.long, 236703986\)\] failed, treating result as null. Only first 20 failures recorded.
Expand Down Expand Up @@ -68,7 +67,6 @@ long:long |ul:ul
;

convertDoubleToUL
required_capability: convert_warn

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

convertULToLong
required_capability: convert_warn

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

convertDoubleToLong
required_capability: convert_warn

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

convertLongToInt
required_capability: convert_warn

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

convertULToInt
required_capability: convert_warn

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

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

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

convertDoubleToInt
required_capability: convert_warn

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

lessThanMultivalue
required_capability: mv_warn

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

greaterThanMultivalue
required_capability: mv_warn

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

equalToMultivalue
required_capability: mv_warn

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

equalToOrEqualToMultivalue
required_capability: mv_warn

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

inMultivalue
required_capability: mv_warn

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

notLessThanMultivalue
required_capability: mv_warn

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

notGreaterThanMultivalue
required_capability: mv_warn

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

notEqualToMultivalue
required_capability: mv_warn

from employees | where not(salary_change.int == 1) | keep emp_no, salary_change.int | sort emp_no | limit 5;
warningRegex:evaluation of \[.*salary_change.int == 1.*\] failed, treating result as null. Only first 20 failures recorded
Expand Down
13 changes: 0 additions & 13 deletions x-pack/plugin/esql/qa/testFixtures/src/main/resources/ip.csv-spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ eth2 |epsilon |[fe81::cae2:65ff:fece:feb9, fe82::cae2:65ff:fece
;

equals
required_capability: mv_warn

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

lessThan
required_capability: mv_warn

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

notEquals
required_capability: mv_warn

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

conditional
required_capability: mv_warn

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

in
required_capability: mv_warn

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


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

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

cidrMatchSimple
required_capability: mv_warn

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

cidrMatchNullField
required_capability: mv_warn

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

cdirMatchMultipleArgs
required_capability: mv_warn

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

cidrMatchFunctionArg
required_capability: mv_warn

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

cidrMatchFieldArg
required_capability: mv_warn

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

pushDownIPWithIn
required_capability: mv_warn

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

pushDownIPWithComparision
required_capability: mv_warn

from hosts | where ip1 > to_ip("127.0.0.1") | keep card, ip1;
ignoreOrder:true
Expand Down
Loading

0 comments on commit 06840ba

Please sign in to comment.