Skip to content

Commit 64dfed4

Browse files
authored
ESQL: Mute CATEGORIZE optimizer tests on release builds (#117690)
1 parent 6a4b68d commit 64dfed4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/LogicalPlanOptimizerTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.elasticsearch.xpack.esql.EsqlTestUtils;
2121
import org.elasticsearch.xpack.esql.TestBlockFactory;
2222
import org.elasticsearch.xpack.esql.VerificationException;
23+
import org.elasticsearch.xpack.esql.action.EsqlCapabilities;
2324
import org.elasticsearch.xpack.esql.analysis.Analyzer;
2425
import org.elasticsearch.xpack.esql.analysis.AnalyzerContext;
2526
import org.elasticsearch.xpack.esql.analysis.AnalyzerTestUtils;
@@ -1211,6 +1212,8 @@ public void testCombineProjectionWithAggregationFirstAndAliasedGroupingUsedInAgg
12111212
* \_EsRelation[test][_meta_field{f}#23, emp_no{f}#17, first_name{f}#18, ..]
12121213
*/
12131214
public void testCombineProjectionWithCategorizeGrouping() {
1215+
assumeTrue("requires Categorize capability", EsqlCapabilities.Cap.CATEGORIZE_V2.isEnabled());
1216+
12141217
var plan = plan("""
12151218
from test
12161219
| eval k = first_name, k1 = k
@@ -3946,6 +3949,8 @@ public void testNestedExpressionsInGroups() {
39463949
* \_EsRelation[test][_meta_field{f}#14, emp_no{f}#8, first_name{f}#9, ge..]
39473950
*/
39483951
public void testNestedExpressionsInGroupsWithCategorize() {
3952+
assumeTrue("requires Categorize capability", EsqlCapabilities.Cap.CATEGORIZE_V2.isEnabled());
3953+
39493954
var plan = optimizedPlan("""
39503955
from test
39513956
| stats c = count(salary) by CATEGORIZE(CONCAT(first_name, "abc"))

0 commit comments

Comments
 (0)