Skip to content

Commit

Permalink
ESQL: Make test result order consistent (elastic#111510)
Browse files Browse the repository at this point in the history
This test for our new `MV_PSERIES_WEIGHTED_SUM` function was failing
sometimes because it was asserting results returned in order but hadn't
forced the result to come back in that order.
  • Loading branch information
nik9000 authored Aug 1, 2024
1 parent 1329dc3 commit 96a04fc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ FROM alerts
TOP(kibana.alert.risk_score, 10000, "desc"), 1.5
) BY host.name
| EVAL normalized_score = ROUND(100 * score / 261.2, 2)
| KEEP host.name, normalized_score, score;
| KEEP host.name, normalized_score, score
| SORT normalized_score DESC;

host.name:keyword|normalized_score:double|score:double
test-host-1 |36.16 |94.45465156212452
Expand Down

0 comments on commit 96a04fc

Please sign in to comment.