Skip to content

Commit

Permalink
ESQL: AwaitsFix some tests that are failing
Browse files Browse the repository at this point in the history
These tests started failing after a combination of elastic#100029 and elastic#100016
which passed CI individually but aren't happy together. Proper fix
incoming, but for now let's unblock some folks.
  • Loading branch information
nik9000 authored and jakelandis committed Oct 2, 2023
1 parent e74580d commit 1244690
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ height:double | s:double
1.53 | 0.34
;

powSalarySquared
# AwaitsFix https://github.com/elastic/elasticsearch/issues/99826
powSalarySquared-Ignore
from employees | eval s = pow(to_long(salary) - 75000, 2) + 10000 | keep salary, s | sort salary desc | limit 4;

salary:integer | s:long
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ emp_no:integer |_index:integer |_version:keyword
10003 |3 |version
;

multipleIndices
# AwaitsFix https://github.com/elastic/elasticsearch/issues/99826
multipleIndices-Ignore
// tag::multipleIndices[]
FROM ul_logs, apps [METADATA _index, _version]
| WHERE id IN (13, 14) AND _version == 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ FROM ul_logs
2017-11-10T20:34:43.000Z | 17764691215469285192 | 1.75E19
;

toDegrees
# AwaitsFix https://github.com/elastic/elasticsearch/issues/99826
toDegrees-Ignore
FROM ul_logs | WHERE bytes_in == bytes_out | EVAL deg = TO_DEGREES(bytes_in) | KEEP bytes_in, deg
;

Expand All @@ -147,7 +148,8 @@ FROM ul_logs | WHERE bytes_in == bytes_out | EVAL deg = TO_DEGREES(bytes_in) | K
;


toRadians
# AwaitsFix https://github.com/elastic/elasticsearch/issues/99826
toRadians-Ignore
FROM ul_logs | WHERE bytes_in == bytes_out | EVAL rad = TO_RADIANS(bytes_in) | KEEP bytes_in, rad
;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ id:i |name:s |version:v
9 |iiiii |bad
;

orderByVersionMultipleCasts
# AwaitsFix https://github.com/elastic/elasticsearch/issues/99826
orderByVersionMultipleCasts-Ignore
FROM apps | EVAL o = TO_VER(CONCAT("1.", TO_STR(version))) | SORT o, id;

id:i |name:s |version:v |o:v
Expand Down Expand Up @@ -203,7 +204,8 @@ bad
5.2.9-SNAPSHOT
;

groupByVersionCast
# AwaitsFix https://github.com/elastic/elasticsearch/issues/99826
groupByVersionCast-Ignore
FROM apps | EVAL g = TO_VER(CONCAT("1.", TO_STR(version))) | STATS id = MAX(id) BY g | SORT id | DROP g;

id:i
Expand Down Expand Up @@ -287,7 +289,8 @@ idx:i |version:v
14 | 5.2.9
;

case
# AwaitsFix https://github.com/elastic/elasticsearch/issues/99826
case-Ignore
FROM apps
| EVAL version_text = TO_STR(version)
| WHERE version IS NULL OR version_text LIKE "1*"
Expand Down

0 comments on commit 1244690

Please sign in to comment.