Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -723,8 +723,6 @@ public PlanOptimizers(
.addAll(new InlineSqlFunctions(metadata).rules())
.build()));

builder.add(new JoinPrefilter(metadata));

builder.add(
new IterativeOptimizer(
metadata,
Expand Down Expand Up @@ -781,6 +779,8 @@ public PlanOptimizers(
builder.add(new SimplifyPlanWithEmptyInput(),
new PruneUnreferencedOutputs());

builder.add(new JoinPrefilter(metadata));

builder.add(new IterativeOptimizer(
metadata,
ruleStats,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,11 @@ private static PlanNode cloneProjectNode(ProjectNode projectNode, Session sessio
}

return new ProjectNode(
projectNode.getSourceLocation(),
idAllocator.getNextId(),
newSource,
newAssignments.build());
newAssignments.build(),
projectNode.getLocality());
}

private static TableScanNode cloneTableScan(TableScanNode scanNode, Session session, Metadata metadata, PlanNodeIdAllocator planNodeIdAllocator, List<VariableReferenceExpression> fieldsToKeep, Map<VariableReferenceExpression, VariableReferenceExpression> varMap)
Expand Down
Loading