File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -585,9 +585,6 @@ tests:
585
585
- class : org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT
586
586
method : test {p0=search/160_exists_query/Test exists query on _id field}
587
587
issue : https://github.com/elastic/elasticsearch/issues/133097
588
- - class : org.elasticsearch.xpack.esql.optimizer.OptimizerVerificationTests
589
- method : testRemoteEnrichAfterCoordinatorOnlyPlans
590
- issue : https://github.com/elastic/elasticsearch/issues/133015
591
588
- class : org.elasticsearch.xpack.esql.analysis.AnalyzerTests
592
589
method : testNoDenseVectorFailsForMagnitude
593
590
issue : https://github.com/elastic/elasticsearch/issues/133013
Original file line number Diff line number Diff line change 27
27
import static org .elasticsearch .xpack .esql .analysis .AnalyzerTestUtils .defaultLookupResolution ;
28
28
import static org .elasticsearch .xpack .esql .analysis .AnalyzerTestUtils .loadEnrichPolicyResolution ;
29
29
import static org .elasticsearch .xpack .esql .analysis .AnalyzerTestUtils .loadMapping ;
30
+ import static org .elasticsearch .xpack .esql .plugin .EsqlPlugin .INLINESTATS_FEATURE_FLAG ;
30
31
import static org .hamcrest .Matchers .containsString ;
31
32
import static org .hamcrest .Matchers .instanceOf ;
32
33
@@ -125,16 +126,18 @@ public void testRemoteEnrichAfterCoordinatorOnlyPlans() {
125
126
""" , analyzer );
126
127
assertThat (err , containsString ("4:3: ENRICH with remote policy can't be executed after [STATS count(*) BY language_code]@3:3" ));
127
128
128
- err = error ("""
129
- FROM test
130
- | EVAL language_code = languages
131
- | INLINESTATS count(*) BY language_code
132
- | ENRICH _remote:languages ON language_code
133
- """ , analyzer );
134
- assertThat (
135
- err ,
136
- containsString ("4:3: ENRICH with remote policy can't be executed after [INLINESTATS count(*) BY language_code]@3:3" )
137
- );
129
+ if (INLINESTATS_FEATURE_FLAG ) {
130
+ err = error ("""
131
+ FROM test
132
+ | EVAL language_code = languages
133
+ | INLINESTATS count(*) BY language_code
134
+ | ENRICH _remote:languages ON language_code
135
+ """ , analyzer );
136
+ assertThat (
137
+ err ,
138
+ containsString ("4:3: ENRICH with remote policy can't be executed after [INLINESTATS count(*) BY language_code]@3:3" )
139
+ );
140
+ }
138
141
139
142
err = error ("""
140
143
FROM test
You can’t perform that action at this time.
0 commit comments