Skip to content

Commit

Permalink
addressed comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
gatorsmile committed Dec 29, 2015
1 parent cfbeea7 commit ca5c104
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ abstract class Optimizer extends RuleExecutor[LogicalPlan] {
PushPredicateThroughProject,
PushPredicateThroughGenerate,
PushPredicateThroughAggregate,
PushDownLimit,
ColumnPruning,
// Operator combine
ProjectCollapsing,
CombineFilters,
CombineLimits,
// Constant folding
NullPropagation,
OptimizeIn,
Expand All @@ -63,11 +65,6 @@ abstract class Optimizer extends RuleExecutor[LogicalPlan] {
SimplifyFilters,
SimplifyCasts,
SimplifyCaseConversionExpressions) ::
Batch("Push Down Limits", FixedPoint(100),
PushDownLimit,
CombineLimits,
ConstantFolding,
BooleanSimplification) ::
Batch("Decimal Optimizations", FixedPoint(100),
DecimalAggregates) ::
Batch("LocalRelation", FixedPoint(100),
Expand All @@ -90,9 +87,6 @@ object DefaultOptimizer extends Optimizer
* 2. Project is pushed through Limit in the rule ColumnPruning
*
* Any operator that a Limit can be pushed passed should override the maxRows function.
*
* Note: This rule has to be done when the logical plan is stable;
* Otherwise, it could impact the other rules.
*/
object PushDownLimit extends Rule[LogicalPlan] {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ class SetOperationPushDownSuite extends PlanTest {
EliminateSubQueries) ::
Batch("Union Pushdown", Once,
SetOperationPushDown,
CombineLimits,
ConstantFolding,
BooleanSimplification,
SimplifyFilters) :: Nil
}

Expand Down

0 comments on commit ca5c104

Please sign in to comment.