Skip to content

Commit 9df6098

Browse files
authored
ESQL: Unmute and fix missing cabability in SubstituteRoundToTests (#138616)
Add missing capability to test added in #138023. Resolves: #138601.
1 parent 2b92a4a commit 9df6098

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,6 @@ tests:
436436
- class: org.elasticsearch.xpack.esql.qa.single_node.GenerativeForkIT
437437
method: test {csv-spec:inlinestats.MvMinMvExpand}
438438
issue: https://github.com/elastic/elasticsearch/issues/137679
439-
- class: org.elasticsearch.xpack.esql.optimizer.rules.physical.local.SubstituteRoundToTests
440-
method: testSubqueryWithCountStarAndDateTrunc {default}
441-
issue: https://github.com/elastic/elasticsearch/issues/138601
442439
- class: org.elasticsearch.xpack.ilm.TimeSeriesLifecycleActionsIT
443440
method: testWaitForSnapshot
444441
issue: https://github.com/elastic/elasticsearch/issues/138669

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/rules/physical/local/SubstituteRoundToTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import org.elasticsearch.index.query.QueryBuilder;
1717
import org.elasticsearch.index.query.RangeQueryBuilder;
1818
import org.elasticsearch.xpack.esql.EsqlTestUtils;
19+
import org.elasticsearch.xpack.esql.action.EsqlCapabilities;
1920
import org.elasticsearch.xpack.esql.core.expression.Alias;
2021
import org.elasticsearch.xpack.esql.core.expression.Attribute;
2122
import org.elasticsearch.xpack.esql.core.expression.Expression;
@@ -859,6 +860,7 @@ public void testForkWithStatsCountStarDateTrunc() {
859860
}
860861

861862
public void testSubqueryWithCountStarAndDateTrunc() {
863+
assumeTrue("requires subqueries in from", EsqlCapabilities.Cap.SUBQUERY_IN_FROM_COMMAND.isEnabled());
862864
String query = """
863865
from test, (from test | stats cnt = count(*) by x = date_trunc(1 day, date))
864866
| keep x, cnt, date

0 commit comments

Comments
 (0)