Skip to content

Commit

Permalink
[FLINK-36792][table] Remove FlinkJoinPushExpressionsRule.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyongvs committed Nov 26, 2024
1 parent 59dc491 commit 2c659dd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 87 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object FlinkBatchRuleSets {
FlinkRewriteSubQueryRule.FILTER,
FlinkSubQueryRemoveRule.FILTER,
JoinConditionTypeCoerceRule.INSTANCE,
FlinkJoinPushExpressionsRule.INSTANCE
CoreRules.JOIN_PUSH_EXPRESSIONS
)

/** Convert sub-queries before query decorrelation. */
Expand Down Expand Up @@ -246,7 +246,7 @@ object FlinkBatchRuleSets {
CoreRules.SORT_REMOVE,

// join rules
FlinkJoinPushExpressionsRule.INSTANCE,
CoreRules.JOIN_PUSH_EXPRESSIONS,
SimplifyJoinConditionRule.INSTANCE,

// remove union with only a single child
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object FlinkStreamRuleSets {
FlinkRewriteSubQueryRule.FILTER,
FlinkSubQueryRemoveRule.FILTER,
JoinConditionTypeCoerceRule.INSTANCE,
FlinkJoinPushExpressionsRule.INSTANCE
CoreRules.JOIN_PUSH_EXPRESSIONS
)

/** Convert sub-queries before query decorrelation. */
Expand Down Expand Up @@ -249,7 +249,7 @@ object FlinkStreamRuleSets {
CoreRules.SORT_REMOVE,

// join rules
FlinkJoinPushExpressionsRule.INSTANCE,
CoreRules.JOIN_PUSH_EXPRESSIONS,
SimplifyJoinConditionRule.INSTANCE,

// remove union with only a single child
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ import org.apache.flink.table.planner.plan.optimize.program.{BatchOptimizeContex
import org.apache.flink.table.planner.utils.TableTestBase

import org.apache.calcite.plan.hep.HepMatchOrder
import org.apache.calcite.rel.rules.{CoreRules, JoinPushExpressionsRule}
import org.apache.calcite.tools.RuleSets
import org.junit.jupiter.api.{BeforeEach, Test}

/** Tests for [[FlinkJoinPushExpressionsRule]]. */
class FlinkJoinPushExpressionsRuleTest extends TableTestBase {
/** Tests for [[JoinPushExpressionsRule]]. */
class JoinPushExpressionsRuleTest extends TableTestBase {

private val util = batchTestUtil()

Expand All @@ -43,7 +44,7 @@ class FlinkJoinPushExpressionsRuleTest extends TableTestBase {
FlinkRewriteSubQueryRule.FILTER,
FlinkSubQueryRemoveRule.FILTER,
JoinConditionTypeCoerceRule.INSTANCE,
FlinkJoinPushExpressionsRule.INSTANCE
CoreRules.JOIN_PUSH_EXPRESSIONS
))
.build()
)
Expand Down

0 comments on commit 2c659dd

Please sign in to comment.