Skip to content

Commit

Permalink
Pushdown Dereference Expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenxiao committed Apr 2, 2019
1 parent e629ad1 commit 0966894
Show file tree
Hide file tree
Showing 5 changed files with 643 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
import com.facebook.presto.sql.planner.iterative.rule.PruneValuesColumns;
import com.facebook.presto.sql.planner.iterative.rule.PruneWindowColumns;
import com.facebook.presto.sql.planner.iterative.rule.PushAggregationThroughOuterJoin;
import com.facebook.presto.sql.planner.iterative.rule.PushDownDereferences;
import com.facebook.presto.sql.planner.iterative.rule.PushLimitThroughMarkDistinct;
import com.facebook.presto.sql.planner.iterative.rule.PushLimitThroughOuterJoin;
import com.facebook.presto.sql.planner.iterative.rule.PushLimitThroughProject;
Expand Down Expand Up @@ -344,6 +345,13 @@ public PlanOptimizers(
new TransformCorrelatedSingleRowSubqueryToProject())),
new CheckSubqueryNodesAreRewritten(),
predicatePushDown,
new IterativeOptimizer(
ruleStats,
statsCalculator,
estimatedExchangesCostCalculator,
ImmutableSet.<Rule<?>>builder()
.addAll(new PushDownDereferences(metadata, sqlParser).rules())
.build()),
new IterativeOptimizer(
ruleStats,
statsCalculator,
Expand Down
Loading

0 comments on commit 0966894

Please sign in to comment.