@@ -36,6 +36,13 @@ object DefaultOptimizer extends Optimizer {
36
36
// SubQueries are only needed for analysis and can be removed before execution.
37
37
Batch (" Remove SubQueries" , FixedPoint (100 ),
38
38
EliminateSubQueries ) ::
39
+ Batch (" Filter Pushdown" , FixedPoint (100 ),
40
+ UnionPushdown ,
41
+ CombineFilters ,
42
+ PushPredicateThroughProject ,
43
+ PushPredicateThroughJoin ,
44
+ PushPredicateThroughGenerate ,
45
+ ColumnPruning ) ::
39
46
Batch (" Combine Limits" , FixedPoint (100 ),
40
47
CombineLimits ) ::
41
48
Batch (" ConstantFolding" , FixedPoint (100 ),
@@ -49,13 +56,6 @@ object DefaultOptimizer extends Optimizer {
49
56
OptimizeIn ) ::
50
57
Batch (" Decimal Optimizations" , FixedPoint (100 ),
51
58
DecimalAggregates ) ::
52
- Batch (" Filter Pushdown" , FixedPoint (100 ),
53
- UnionPushdown ,
54
- CombineFilters ,
55
- PushPredicateThroughProject ,
56
- PushPredicateThroughJoin ,
57
- PushPredicateThroughGenerate ,
58
- ColumnPruning ) ::
59
59
Batch (" LocalRelation" , FixedPoint (100 ),
60
60
ConvertToLocalRelation ) :: Nil
61
61
}
0 commit comments