Skip to content

Commit

Permalink
[ESQL] Fix sorting on CSV test (#113689)
Browse files Browse the repository at this point in the history
Resolves #113632

Fixes a test that relied on order without sorting.
  • Loading branch information
not-napoleon committed Sep 27, 2024
1 parent 3a51343 commit b73c5f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,6 @@ tests:
- class: org.elasticsearch.integration.KibanaUserRoleIntegTests
method: testSearchAndMSearch
issue: https://github.com/elastic/elasticsearch/issues/113593
- class: org.elasticsearch.xpack.esql.qa.mixed.MixedClusterEsqlSpecIT
method: test {date_nanos.Date_nanos to date nanos, index version SYNC}
issue: https://github.com/elastic/elasticsearch/issues/113632
- class: org.elasticsearch.xpack.transform.integration.TransformIT
method: testStopWaitForCheckpoint
issue: https://github.com/elastic/elasticsearch/issues/106113
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ null
date nanos to long, index version
required_capability: to_date_nanos

FROM date_nanos | WHERE millis > "2020-02-02" | EVAL l = TO_LONG(nanos) | KEEP l;
FROM date_nanos | WHERE millis > "2020-02-02" | EVAL l = TO_LONG(nanos) | SORT nanos DESC | KEEP l;

l:long
1698069301543123456
Expand All @@ -219,7 +219,7 @@ l:long
long to date nanos, index version
required_capability: to_date_nanos

FROM date_nanos | WHERE millis > "2020-02-02" | EVAL d = TO_DATE_NANOS(num) | KEEP d;
FROM date_nanos | WHERE millis > "2020-02-02" | EVAL d = TO_DATE_NANOS(num) | SORT nanos DESC | KEEP d;

d:date_nanos
2023-10-23T13:55:01.543123456Z
Expand All @@ -234,7 +234,7 @@ d:date_nanos
date_nanos to date nanos, index version
required_capability: to_date_nanos

FROM date_nanos | WHERE millis > "2020-02-02" | EVAL d = TO_DATE_NANOS(nanos) | KEEP d;
FROM date_nanos | WHERE millis > "2020-02-02" | EVAL d = TO_DATE_NANOS(nanos) | SORT nanos DESC | KEEP d;

d:date_nanos
2023-10-23T13:55:01.543123456Z
Expand Down

0 comments on commit b73c5f8

Please sign in to comment.