Skip to content

Commit c51c536

Browse files
committed
Cleanup
1 parent 5cfbd19 commit c51c536

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,6 @@ public Failures verify(PhysicalPlan plan) {
3636
if (enriches.isEmpty() == false && ((EnrichExec) enriches.get(0)).mode() == Enrich.Mode.REMOTE) {
3737
return failures;
3838
}
39-
// Do the same for remote lookup joins
40-
// var fragment = plan.collectFirstChildren(FragmentExec.class::isInstance);
41-
// if (fragment.isEmpty() == false) {
42-
// // LookupJoin gets rewritten as Join by surrogate()
43-
// FragmentExec f = (FragmentExec) fragment.get(0);
44-
// var ljoins = f.fragment().collectFirstChildren(Join.class::isInstance);
45-
// if (ljoins.isEmpty() == false) {
46-
// return failures;
47-
// }
48-
// }
4939

5040
plan.forEachDown(p -> {
5141
if (p instanceof FieldExtractExec fieldExtractExec) {

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plan/physical/LookupJoinExec.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,5 +163,4 @@ public boolean equals(Object o) {
163163
public int hashCode() {
164164
return Objects.hash(super.hashCode(), leftFields, rightFields, addedFields);
165165
}
166-
167166
}

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/planner/Layout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public Layout build() {
115115
for (NameId id : set.nameIds) {
116116
// Duplicate name ids would mean that have 2 channels that are declared under the same id. That makes no sense - which
117117
// channel should subsequent operators use, then, when they want to refer to this id?
118-
assert (layout.containsKey(id) == false) : "Duplicate name ids are not allowed in layouts: " + id;
118+
assert (layout.containsKey(id) == false) : "Duplicate name ids are not allowed in layouts";
119119
ChannelAndType next = new ChannelAndType(channel, set.type);
120120
layout.put(id, next);
121121
}

0 commit comments

Comments
 (0)