Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -585,9 +585,6 @@ tests:
- class: org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT
method: test {p0=search/160_exists_query/Test exists query on _id field}
issue: https://github.com/elastic/elasticsearch/issues/133097
- class: org.elasticsearch.xpack.esql.optimizer.OptimizerVerificationTests
method: testRemoteEnrichAfterCoordinatorOnlyPlans
issue: https://github.com/elastic/elasticsearch/issues/133015
- class: org.elasticsearch.xpack.esql.analysis.AnalyzerTests
method: testNoDenseVectorFailsForMagnitude
issue: https://github.com/elastic/elasticsearch/issues/133013
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import static org.elasticsearch.xpack.esql.analysis.AnalyzerTestUtils.defaultLookupResolution;
import static org.elasticsearch.xpack.esql.analysis.AnalyzerTestUtils.loadEnrichPolicyResolution;
import static org.elasticsearch.xpack.esql.analysis.AnalyzerTestUtils.loadMapping;
import static org.elasticsearch.xpack.esql.plugin.EsqlPlugin.INLINESTATS_FEATURE_FLAG;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.instanceOf;

Expand Down Expand Up @@ -125,16 +126,18 @@ public void testRemoteEnrichAfterCoordinatorOnlyPlans() {
""", analyzer);
assertThat(err, containsString("4:3: ENRICH with remote policy can't be executed after [STATS count(*) BY language_code]@3:3"));

err = error("""
FROM test
| EVAL language_code = languages
| INLINESTATS count(*) BY language_code
| ENRICH _remote:languages ON language_code
""", analyzer);
assertThat(
err,
containsString("4:3: ENRICH with remote policy can't be executed after [INLINESTATS count(*) BY language_code]@3:3")
);
if (INLINESTATS_FEATURE_FLAG) {
err = error("""
FROM test
| EVAL language_code = languages
| INLINESTATS count(*) BY language_code
| ENRICH _remote:languages ON language_code
""", analyzer);
assertThat(
err,
containsString("4:3: ENRICH with remote policy can't be executed after [INLINESTATS count(*) BY language_code]@3:3")
);
}

err = error("""
FROM test
Expand Down