Skip to content

Commit d26a772

Browse files
authored
Unmute Categorize VerifierTests and require snapshot on them (#117016)
Fixes #116856 Fixes #116857 Fixes #116858
1 parent bcb29b7 commit d26a772

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

muted-tests.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,15 +208,6 @@ tests:
208208
issue: https://github.com/elastic/elasticsearch/issues/116777
209209
- class: org.elasticsearch.xpack.searchablesnapshots.hdfs.SecureHdfsSearchableSnapshotsIT
210210
issue: https://github.com/elastic/elasticsearch/issues/116851
211-
- class: org.elasticsearch.xpack.esql.analysis.VerifierTests
212-
method: testCategorizeWithinAggregations
213-
issue: https://github.com/elastic/elasticsearch/issues/116856
214-
- class: org.elasticsearch.xpack.esql.analysis.VerifierTests
215-
method: testCategorizeSingleGrouping
216-
issue: https://github.com/elastic/elasticsearch/issues/116857
217-
- class: org.elasticsearch.xpack.esql.analysis.VerifierTests
218-
method: testCategorizeNestedGrouping
219-
issue: https://github.com/elastic/elasticsearch/issues/116858
220211
- class: org.elasticsearch.search.basic.SearchWithRandomIOExceptionsIT
221212
method: testRandomDirectoryIOExceptions
222213
issue: https://github.com/elastic/elasticsearch/issues/114824

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/VerifierTests.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,6 +1732,8 @@ public void testIntervalAsString() {
17321732
}
17331733

17341734
public void testCategorizeSingleGrouping() {
1735+
assumeTrue("requires Categorize capability", EsqlCapabilities.Cap.CATEGORIZE.isEnabled());
1736+
17351737
query("from test | STATS COUNT(*) BY CATEGORIZE(first_name)");
17361738
query("from test | STATS COUNT(*) BY cat = CATEGORIZE(first_name)");
17371739

@@ -1759,6 +1761,8 @@ public void testCategorizeSingleGrouping() {
17591761
}
17601762

17611763
public void testCategorizeNestedGrouping() {
1764+
assumeTrue("requires Categorize capability", EsqlCapabilities.Cap.CATEGORIZE.isEnabled());
1765+
17621766
query("from test | STATS COUNT(*) BY CATEGORIZE(LENGTH(first_name)::string)");
17631767

17641768
assertEquals(
@@ -1772,6 +1776,8 @@ public void testCategorizeNestedGrouping() {
17721776
}
17731777

17741778
public void testCategorizeWithinAggregations() {
1779+
assumeTrue("requires Categorize capability", EsqlCapabilities.Cap.CATEGORIZE.isEnabled());
1780+
17751781
query("from test | STATS MV_COUNT(cat), COUNT(*) BY cat = CATEGORIZE(first_name)");
17761782

17771783
assertEquals(

0 commit comments

Comments
 (0)