Skip to content

Commit 9f30384

Browse files
committed
Fix another bug :)
1 parent 1d830ac commit 9f30384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/optimizer/rules/logical/PushDownJoinPastProject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected LogicalPlan rule(Join join) {
6767
Set<String> lookupFieldNames = new HashSet<>(Expressions.names(join.rightOutputFields()));
6868
List<NamedExpression> finalProjections = new ArrayList<>(newProjections.size());
6969
AttributeMap.Builder<Alias> aliasesForReplacedAttributesBuilder = AttributeMap.builder();
70-
AttributeSet leftOutput = updatedJoin.left().outputSet();
70+
AttributeSet leftOutput = project.child().outputSet();
7171

7272
for (NamedExpression proj : newProjections) {
7373
// TODO: add assert to Project that ensures Alias to attr or pure attr.

0 commit comments

Comments
 (0)