@@ -30,7 +30,6 @@ class TKqpLogicalOptTransformer : public TOptimizeTransformerBase {
30
30
, Config(config)
31
31
{
32
32
#define HNDL (name ) " KqpLogical-" #name, Hndl(&TKqpLogicalOptTransformer::name)
33
- AddHandler (0 , &TCoFlatMapBase::Match, HNDL (PushPredicateToReadTable));
34
33
AddHandler (0 , &TCoFlatMapBase::Match, HNDL (PushExtractedPredicateToReadTable));
35
34
AddHandler (0 , &TCoAggregate::Match, HNDL (RewriteAggregate));
36
35
AddHandler (0 , &TCoAggregateCombine::Match, HNDL (PushdownOlapGroupByKeys));
@@ -62,7 +61,6 @@ class TKqpLogicalOptTransformer : public TOptimizeTransformerBase {
62
61
AddHandler (0 , &TCoNarrowMultiMap::Match, HNDL (DqReadWideWrapFieldSubset));
63
62
AddHandler (0 , &TCoWideMap::Match, HNDL (DqReadWideWrapFieldSubset));
64
63
65
- AddHandler (1 , &TCoFlatMap::Match, HNDL (LatePushExtractedPredicateToReadTable));
66
64
AddHandler (1 , &TCoTop::Match, HNDL (RewriteTopSortOverIndexRead));
67
65
AddHandler (1 , &TCoTopSort::Match, HNDL (RewriteTopSortOverIndexRead));
68
66
AddHandler (1 , &TCoTake::Match, HNDL (RewriteTakeOverIndexRead));
@@ -88,28 +86,7 @@ class TKqpLogicalOptTransformer : public TOptimizeTransformerBase {
88
86
}
89
87
90
88
protected:
91
- TMaybeNode<TExprBase> PushPredicateToReadTable (TExprBase node, TExprContext& ctx) {
92
- if (KqpCtx.Config ->PredicateExtract20 ) {
93
- return node;
94
- }
95
- TExprBase output = KqpPushPredicateToReadTable (node, ctx, KqpCtx);
96
- DumpAppliedRule (" PushPredicateToReadTable" , node.Ptr (), output.Ptr (), ctx);
97
- return output;
98
- }
99
-
100
89
TMaybeNode<TExprBase> PushExtractedPredicateToReadTable (TExprBase node, TExprContext& ctx, const TGetParents& getParents) {
101
- if (!KqpCtx.Config ->PredicateExtract20 ) {
102
- return node;
103
- }
104
- TExprBase output = KqpPushExtractedPredicateToReadTable (node, ctx, KqpCtx, TypesCtx, *getParents ());
105
- DumpAppliedRule (" PushExtractedPredicateToReadTable" , node.Ptr (), output.Ptr (), ctx);
106
- return output;
107
- }
108
-
109
- TMaybeNode<TExprBase> LatePushExtractedPredicateToReadTable (TExprBase node, TExprContext& ctx, const TGetParents& getParents) {
110
- if (KqpCtx.Config ->PredicateExtract20 ) {
111
- return node;
112
- }
113
90
TExprBase output = KqpPushExtractedPredicateToReadTable (node, ctx, KqpCtx, TypesCtx, *getParents ());
114
91
DumpAppliedRule (" PushExtractedPredicateToReadTable" , node.Ptr (), output.Ptr (), ctx);
115
92
return output;
0 commit comments