We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7930c2a commit a1ed9a4Copy full SHA for a1ed9a4
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/session/EsqlCCSUtils.java
@@ -402,6 +402,9 @@ public static Set<String> getRemotesOf(Set<String> concreteIndices) {
402
* This is needed in order to require lookup index is present on every remote in order to correctly execute a query with join.
403
*/
404
public static String qualifyWithRunningRemotes(String index, Set<String> remotes, EsqlExecutionInfo executionInfo) {
405
+ if (remotes.isEmpty()) {
406
+ return index;
407
+ }
408
return remotes.stream().filter(remote -> {
409
var cluster = executionInfo.getCluster(remote);
410
return cluster == null || cluster.getStatus() == Cluster.Status.RUNNING;
0 commit comments