Skip to content

Commit a647e4d

Browse files
committed
[FLINK-xx][table] Add Join remove rules.
1 parent 96a4e90 commit a647e4d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/rules/FlinkBatchRuleSets.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ object FlinkBatchRuleSets {
266266
CoreRules.AGGREGATE_UNION_AGGREGATE,
267267
// expand distinct aggregate to normal aggregate with groupby
268268
FlinkAggregateExpandDistinctAggregatesRule.INSTANCE,
269+
CoreRules.PROJECT_JOIN_JOIN_REMOVE,
270+
CoreRules.PROJECT_JOIN_REMOVE,
271+
CoreRules.AGGREGATE_JOIN_JOIN_REMOVE,
272+
CoreRules.AGGREGATE_JOIN_REMOVE,
269273

270274
// reduce aggregate functions like AVG, STDDEV_POP etc.
271275
CoreRules.AGGREGATE_REDUCE_FUNCTIONS,

flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/rules/FlinkStreamRuleSets.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,10 @@ object FlinkStreamRuleSets {
268268
// using variants of aggregate union rule
269269
CoreRules.AGGREGATE_UNION_AGGREGATE_FIRST,
270270
CoreRules.AGGREGATE_UNION_AGGREGATE_SECOND,
271+
CoreRules.PROJECT_JOIN_JOIN_REMOVE,
272+
CoreRules.PROJECT_JOIN_REMOVE,
273+
CoreRules.AGGREGATE_JOIN_JOIN_REMOVE,
274+
CoreRules.AGGREGATE_JOIN_REMOVE,
271275

272276
// reduce aggregate functions like AVG, STDDEV_POP etc.
273277
CoreRules.AGGREGATE_REDUCE_FUNCTIONS,

0 commit comments

Comments
 (0)