Skip to content

Commit 29e0f79

Browse files
authored
[8.x] Declare required capability for date tests (#126221)
1 parent 01dda5b commit 29e0f79

File tree

2 files changed

+7
-25
lines changed

2 files changed

+7
-25
lines changed

muted-tests.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -327,18 +327,6 @@ tests:
327327
issue: https://github.com/elastic/elasticsearch/issues/117208
328328
- class: org.elasticsearch.repositories.blobstore.testkit.analyze.MinioRepositoryAnalysisRestIT
329329
issue: https://github.com/elastic/elasticsearch/issues/120672
330-
- class: org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT
331-
method: test {date.Implicit casting strings to dates for IN operator}
332-
issue: https://github.com/elastic/elasticsearch/issues/120155
333-
- class: org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT
334-
method: test {date.IN operator with null in list, finds match}
335-
issue: https://github.com/elastic/elasticsearch/issues/120156
336-
- class: org.elasticsearch.xpack.esql.qa.mixed.MixedClusterEsqlSpecIT
337-
method: test {date.IN operator with null in list, finds match SYNC}
338-
issue: https://github.com/elastic/elasticsearch/issues/120158
339-
- class: org.elasticsearch.xpack.esql.qa.mixed.MixedClusterEsqlSpecIT
340-
method: test {date.Implicit casting strings to dates for IN operator SYNC}
341-
issue: https://github.com/elastic/elasticsearch/issues/120159
342330
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
343331
method: test {p0=transform/transforms_start_stop/Test schedule_now on an already started transform}
344332
issue: https://github.com/elastic/elasticsearch/issues/120720
@@ -391,9 +379,6 @@ tests:
391379
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
392380
method: test {p0=mtermvectors/10_basic/Tests catching other exceptions per item}
393381
issue: https://github.com/elastic/elasticsearch/issues/122414
394-
- class: org.elasticsearch.xpack.esql.qa.mixed.MixedClusterEsqlSpecIT
395-
method: test {date.IN operator with null in list, finds match ASYNC}
396-
issue: https://github.com/elastic/elasticsearch/issues/121491
397382
- class: org.elasticsearch.ingest.geoip.GeoIpDownloaderCliIT
398383
method: testGeoIpDatabasesDownloadNoGeoipProcessors
399384
issue: https://github.com/elastic/elasticsearch/issues/122683
@@ -445,9 +430,6 @@ tests:
445430
- class: org.elasticsearch.qa.verify_version_constants.VerifyVersionConstantsIT
446431
method: testLuceneVersionConstant
447432
issue: https://github.com/elastic/elasticsearch/issues/125638
448-
- class: org.elasticsearch.xpack.esql.qa.mixed.MixedClusterEsqlSpecIT
449-
method: test {date.Implicit casting strings to dates for IN operator ASYNC}
450-
issue: https://github.com/elastic/elasticsearch/issues/121490
451433
- class: org.elasticsearch.packaging.test.DebPreservationTests
452434
method: test40RestartOnUpgrade
453435
issue: https://github.com/elastic/elasticsearch/issues/125821

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ cnt:long
14531453
;
14541454

14551455
implicit casting strings to dates for IN operator
1456-
required_capability: string_literal_auto_casting
1456+
required_capability: rangequery_for_datetime
14571457
FROM employees
14581458
| WHERE birth_date IN ("1953-04-20", "1958-10-31")
14591459
| KEEP emp_no, first_name;
@@ -1464,8 +1464,8 @@ emp_no:integer | first_name:keyword
14641464
10025 | Prasadram
14651465
;
14661466

1467-
IN operator with null in list, finds match#[skip:-8.13.99, reason: default date formatter is changed in 8.14]
1468-
1467+
IN operator with null in list, finds match
1468+
required_capability: rangequery_for_datetime
14691469
FROM employees
14701470
| EVAL x = NULL
14711471
| WHERE birth_date IN (TO_DATETIME("1958-02-19T00:00:00Z"), x)
@@ -1475,8 +1475,8 @@ birth_date:datetime | first_name:keyword
14751475
1958-02-19T00:00:00.000Z | Saniya
14761476
;
14771477

1478-
IN operator with null in list, doesn't find match#[skip:-8.13.99, reason: default date formatter is changed in 8.14]
1479-
1478+
IN operator with null in list, doesn't find match
1479+
required_capability: rangequery_for_datetime
14801480
FROM employees
14811481
| EVAL x = NULL
14821482
| WHERE birth_date IN (TO_DATETIME("1900-02-19T00:00:00Z"), x)
@@ -1485,8 +1485,8 @@ FROM employees
14851485
birth_date:datetime | first_name:keyword
14861486
;
14871487

1488-
IN operator with null in list, doesn't find match, EVAL to check value#[skip:-8.13.99, reason: default date formatter is changed in 8.14]
1489-
1488+
IN operator with null in list, doesn't find match, EVAL to check value
1489+
required_capability: rangequery_for_datetime
14901490
FROM employees
14911491
| EVAL x = NULL
14921492
| EVAL result = birth_date IN (TO_DATETIME("1900-02-19T00:00:00Z"), x)

0 commit comments

Comments
 (0)