diff options
author | Liang-Chi Hsieh <viirya@gmail.com> | 2016-03-02 23:46:23 -0800 |
---|---|---|
committer | Davies Liu <davies.liu@gmail.com> | 2016-03-02 23:46:23 -0800 |
commit | 1085bd862a3f69e14e00cec11077e54ab153098b (patch) | |
tree | da94d2c50003bbb0457311f2fef86e1f68e179d3 | |
parent | 56e3d007151d77c0ef2d84335adb8614c48c092a (diff) | |
download | spark-1085bd862a3f69e14e00cec11077e54ab153098b.tar.gz spark-1085bd862a3f69e14e00cec11077e54ab153098b.tar.bz2 spark-1085bd862a3f69e14e00cec11077e54ab153098b.zip |
[SPARK-13635] [SQL] Enable LimitPushdown optimizer rule because we have whole-stage codegen for Limit
JIRA: https://issues.apache.org/jira/browse/SPARK-13635
## What changes were proposed in this pull request?
LimitPushdown optimizer rule has been disabled due to no whole-stage codegen for Limit. As we have whole-stage codegen for Limit now, we should enable it.
## How was this patch tested?
As we only re-enable LimitPushdown optimizer rule, no need to add new tests for it.
Author: Liang-Chi Hsieh <viirya@gmail.com>
Closes #11483 from viirya/enable-limitpushdown.
-rw-r--r-- | sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala index 55adc06320..83ea302013 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala @@ -67,7 +67,7 @@ abstract class Optimizer extends RuleExecutor[LogicalPlan] { PushPredicateThroughProject, PushPredicateThroughGenerate, PushPredicateThroughAggregate, - // LimitPushDown, // Disabled until we have whole-stage codegen for limit + LimitPushDown, ColumnPruning, // Operator combine CollapseRepartition, |