Skip to content

Commit

Permalink
planner: move rule_constant_propagation to rule pkg. (#55231) (#55345)
Browse files Browse the repository at this point in the history
ref #55231
  • Loading branch information
qingfeng777 authored Aug 13, 2024
1 parent bc6a18d commit 7e9f853
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion pkg/planner/core/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ go_library(
"rule_aggregation_skew_rewrite.go",
"rule_collect_plan_stats.go",
"rule_column_pruning.go",
"rule_constant_propagation.go",
"rule_decorrelate.go",
"rule_derive_topn_from_window.go",
"rule_eliminate_projection.go",
Expand Down
2 changes: 1 addition & 1 deletion pkg/planner/core/optimizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ var optRuleList = []base.LogicalOptRule{
&SkewDistinctAggRewriter{},
&ProjectionEliminator{},
&MaxMinEliminator{},
&ConstantPropagationSolver{},
&rule.ConstantPropagationSolver{},
&ConvertOuterToInnerJoin{},
&PPDSolver{},
&OuterJoinEliminator{},
Expand Down
1 change: 1 addition & 0 deletions pkg/planner/core/rule/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ go_library(
name = "rule",
srcs = [
"rule_build_key_info.go",
"rule_constant_propagation.go",
"rule_init.go",
],
importpath = "github.com/pingcap/tidb/pkg/planner/core/rule",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package core
package rule

import (
"context"
Expand Down

0 comments on commit 7e9f853

Please sign in to comment.