Skip to content

Commit 4f061ae

Browse files
committed
this wasn't a correct optimization
1 parent efe0de2 commit 4f061ae

File tree

1 file changed

+0
-4
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/session

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,6 @@ private IndexResolution checkSingleIndex(
567567
IndexResolution lookupIndexResolution,
568568
Collection<String> indexNames
569569
) {
570-
if (lookupIndexResolution.get().indexNameWithModes().size() <= 1) {
571-
// Shortcut for single-index case
572-
return lookupIndexResolution;
573-
}
574570
// If all indices resolve to the same name, we can use that for BWC
575571
// Older clusters only can handle one name in LOOKUP JOIN
576572
var localIndexNames = indexNames.stream().map(n -> RemoteClusterAware.splitIndexName(n)[1]).collect(Collectors.toSet());

0 commit comments

Comments
 (0)