Skip to content

Commit

Permalink
Unmute Categorize VerifierTests and require snapshot on them (elastic…
Browse files Browse the repository at this point in the history
  • Loading branch information
ivancea committed Nov 22, 2024
1 parent 029287a commit e4cfe03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
9 changes: 0 additions & 9 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -359,15 +359,6 @@ tests:
- class: org.elasticsearch.oldrepos.OldRepositoryAccessIT
method: testOldRepoAccess
issue: https://github.com/elastic/elasticsearch/issues/115631
- class: org.elasticsearch.xpack.esql.analysis.VerifierTests
method: testCategorizeNestedGrouping
issue: https://github.com/elastic/elasticsearch/issues/116858
- class: org.elasticsearch.xpack.esql.analysis.VerifierTests
method: testCategorizeSingleGrouping
issue: https://github.com/elastic/elasticsearch/issues/116857
- class: org.elasticsearch.xpack.esql.analysis.VerifierTests
method: testCategorizeWithinAggregations
issue: https://github.com/elastic/elasticsearch/issues/116856

# Examples:
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1732,7 +1732,8 @@ public void testIntervalAsString() {
}

public void testCategorizeSingleGrouping() {
assumeTrue("requires snapshot builds", Build.current().isSnapshot());
assumeTrue("requires Categorize capability", EsqlCapabilities.Cap.CATEGORIZE.isEnabled());

query("from test | STATS COUNT(*) BY CATEGORIZE(first_name)");
query("from test | STATS COUNT(*) BY cat = CATEGORIZE(first_name)");

Expand Down Expand Up @@ -1760,7 +1761,8 @@ public void testCategorizeSingleGrouping() {
}

public void testCategorizeNestedGrouping() {
assumeTrue("requires snapshot builds", Build.current().isSnapshot());
assumeTrue("requires Categorize capability", EsqlCapabilities.Cap.CATEGORIZE.isEnabled());

query("from test | STATS COUNT(*) BY CATEGORIZE(LENGTH(first_name)::string)");

assertEquals(
Expand All @@ -1774,7 +1776,8 @@ public void testCategorizeNestedGrouping() {
}

public void testCategorizeWithinAggregations() {
assumeTrue("requires snapshot builds", Build.current().isSnapshot());
assumeTrue("requires Categorize capability", EsqlCapabilities.Cap.CATEGORIZE.isEnabled());

query("from test | STATS MV_COUNT(cat), COUNT(*) BY cat = CATEGORIZE(first_name)");

assertEquals(
Expand Down

0 comments on commit e4cfe03

Please sign in to comment.