Skip to content

Commit 4ae1202

Browse files
Disable for remote enrich
1 parent 4076106 commit 4ae1202

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/optimizer/LogicalVerifier.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import org.elasticsearch.xpack.esql.capabilities.PostOptimizationVerificationAware;
1111
import org.elasticsearch.xpack.esql.common.Failures;
1212
import org.elasticsearch.xpack.esql.optimizer.rules.PlanConsistencyChecker;
13+
import org.elasticsearch.xpack.esql.plan.logical.Enrich;
1314
import org.elasticsearch.xpack.esql.plan.logical.LogicalPlan;
1415

1516
public final class LogicalVerifier {
@@ -23,6 +24,12 @@ public Failures verify(LogicalPlan plan) {
2324
Failures failures = new Failures();
2425
Failures dependencyFailures = new Failures();
2526

27+
// AwaitsFix https://github.com/elastic/elasticsearch/issues/118531
28+
var enriches = plan.collectFirstChildren(Enrich.class::isInstance);
29+
if (enriches.isEmpty() == false && ((Enrich) enriches.get(0)).mode() == Enrich.Mode.REMOTE) {
30+
return failures;
31+
}
32+
2633
plan.forEachUp(p -> {
2734
PlanConsistencyChecker.checkPlan(p, dependencyFailures);
2835

0 commit comments

Comments
 (0)