Search in sources :

Example 1 with PruneUnreferencedOutputs

use of io.prestosql.sql.planner.optimizations.PruneUnreferencedOutputs in project hetu-core by openlookeng.

the class BasePlanTest method assertMinimallyOptimizedPlan.

protected void assertMinimallyOptimizedPlan(@Language("SQL") String sql, PlanMatchPattern pattern) {
    List<PlanOptimizer> optimizers = ImmutableList.of(new UnaliasSymbolReferences(queryRunner.getMetadata()), new PruneUnreferencedOutputs(), new IterativeOptimizer(new RuleStatsRecorder(), queryRunner.getStatsCalculator(), queryRunner.getCostCalculator(), ImmutableSet.of(new RemoveRedundantIdentityProjections())));
    assertPlan(sql, LogicalPlanner.Stage.OPTIMIZED, pattern, optimizers);
}
Also used : PlanOptimizer(io.prestosql.sql.planner.optimizations.PlanOptimizer) RuleStatsRecorder(io.prestosql.sql.planner.RuleStatsRecorder) RemoveRedundantIdentityProjections(io.prestosql.sql.planner.iterative.rule.RemoveRedundantIdentityProjections) PruneUnreferencedOutputs(io.prestosql.sql.planner.optimizations.PruneUnreferencedOutputs) IterativeOptimizer(io.prestosql.sql.planner.iterative.IterativeOptimizer) UnaliasSymbolReferences(io.prestosql.sql.planner.optimizations.UnaliasSymbolReferences)

Aggregations

RuleStatsRecorder (io.prestosql.sql.planner.RuleStatsRecorder)1 IterativeOptimizer (io.prestosql.sql.planner.iterative.IterativeOptimizer)1 RemoveRedundantIdentityProjections (io.prestosql.sql.planner.iterative.rule.RemoveRedundantIdentityProjections)1 PlanOptimizer (io.prestosql.sql.planner.optimizations.PlanOptimizer)1 PruneUnreferencedOutputs (io.prestosql.sql.planner.optimizations.PruneUnreferencedOutputs)1 UnaliasSymbolReferences (io.prestosql.sql.planner.optimizations.UnaliasSymbolReferences)1