Skip to content

Commit ba44ea5

Browse files
pradeepvakaNikhilCollooru
authored andcommitted
Remove redundant table layout call
1 parent 4bdd0a3 commit ba44ea5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

presto-main-base/src/main/java/com/facebook/presto/sql/planner/PlannerUtils.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import com.facebook.presto.cost.StatsAndCosts;
2424
import com.facebook.presto.metadata.FunctionAndTypeManager;
2525
import com.facebook.presto.metadata.Metadata;
26-
import com.facebook.presto.metadata.TableLayout;
2726
import com.facebook.presto.spi.ColumnHandle;
2827
import com.facebook.presto.spi.SourceLocation;
2928
import com.facebook.presto.spi.TableHandle;
@@ -326,7 +325,6 @@ private static PlanNode cloneProjectNode(ProjectNode projectNode, Session sessio
326325
private static TableScanNode cloneTableScan(TableScanNode scanNode, Session session, Metadata metadata, PlanNodeIdAllocator planNodeIdAllocator, List<VariableReferenceExpression> fieldsToKeep, Map<VariableReferenceExpression, VariableReferenceExpression> varMap)
327326
{
328327
Map<VariableReferenceExpression, ColumnHandle> assignments = scanNode.getAssignments();
329-
TableLayout scanLayout = metadata.getLayout(session, scanNode.getTable());
330328

331329
ImmutableList.Builder<VariableReferenceExpression> outputVariablesBuilder = ImmutableList.builder();
332330

0 commit comments

Comments
 (0)