Skip to content

Commit 4122144

Browse files
Enable query rewrites on the coordinator for ESQL (#119667)
* Enable query rewrites on the coordinator for ESQL * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <[email protected]>
1 parent 7804a25 commit 4122144

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/session/QueryBuilderResolver.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import org.elasticsearch.index.query.Rewriteable;
1717
import org.elasticsearch.search.SearchService;
1818
import org.elasticsearch.transport.TransportService;
19-
import org.elasticsearch.xpack.esql.action.EsqlCapabilities;
2019
import org.elasticsearch.xpack.esql.core.util.Holder;
2120
import org.elasticsearch.xpack.esql.expression.function.fulltext.FullTextFunction;
2221
import org.elasticsearch.xpack.esql.plan.logical.EsRelation;
@@ -59,12 +58,6 @@ public void resolveQueryBuilders(
5958
ActionListener<Result> listener,
6059
BiConsumer<LogicalPlan, ActionListener<Result>> callback
6160
) {
62-
// TODO: remove once SEMANTIC_TEXT_TYPE is enabled outside of snapshots
63-
if (false == EsqlCapabilities.Cap.SEMANTIC_TEXT_TYPE.isEnabled()) {
64-
callback.accept(plan, listener);
65-
return;
66-
}
67-
6861
if (plan.optimized() == false) {
6962
listener.onFailure(new IllegalStateException("Expected optimized plan before query builder rewrite."));
7063
return;

0 commit comments

Comments
 (0)