Skip to content

Commit 2be8f82

Browse files
committed
.
Signed-off-by: arenatlx <[email protected]>
1 parent cec48bb commit 2be8f82

13 files changed

+17
-18
lines changed

pkg/planner/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ go_library(
1313
"//pkg/metrics",
1414
"//pkg/parser/ast",
1515
"//pkg/parser/model",
16-
"//pkg/planner/cascades",
16+
"//pkg/planner/cascades/old",
1717
"//pkg/planner/core",
1818
"//pkg/planner/core/base",
1919
"//pkg/planner/core/resolve",

pkg/planner/cascades/BUILD.bazel renamed to pkg/planner/cascades/old/BUILD.bazel

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
22

33
go_library(
4-
name = "cascades",
4+
name = "old",
55
srcs = [
66
"enforcer_rules.go",
77
"implementation_rules.go",
88
"optimize.go",
99
"stringer.go",
1010
"transformation_rules.go",
1111
],
12-
importpath = "github.com/pingcap/tidb/pkg/planner/cascades",
12+
importpath = "github.com/pingcap/tidb/pkg/planner/cascades/old",
1313
visibility = ["//visibility:public"],
1414
deps = [
1515
"//pkg/expression",
@@ -37,7 +37,7 @@ go_library(
3737
)
3838

3939
go_test(
40-
name = "cascades_test",
40+
name = "old_test",
4141
timeout = "short",
4242
srcs = [
4343
"enforcer_rules_test.go",
@@ -46,8 +46,7 @@ go_test(
4646
"stringer_test.go",
4747
"transformation_rules_test.go",
4848
],
49-
data = glob(["testdata/**"]),
50-
embed = [":cascades"],
49+
embed = [":old"],
5150
flaky = True,
5251
shard_count = 25,
5352
deps = [

pkg/planner/cascades/enforcer_rules.go renamed to pkg/planner/cascades/old/enforcer_rules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package cascades
15+
package old
1616

1717
import (
1818
"math"

pkg/planner/cascades/enforcer_rules_test.go renamed to pkg/planner/cascades/old/enforcer_rules_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package cascades
15+
package old
1616

1717
import (
1818
"testing"

pkg/planner/cascades/implementation_rules.go renamed to pkg/planner/cascades/old/implementation_rules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package cascades
15+
package old
1616

1717
import (
1818
"math"

pkg/planner/cascades/main_test.go renamed to pkg/planner/cascades/old/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package cascades
15+
package old
1616

1717
import (
1818
"flag"

pkg/planner/cascades/optimize.go renamed to pkg/planner/cascades/old/optimize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package cascades
15+
package old
1616

1717
import (
1818
"container/list"

pkg/planner/cascades/optimize_test.go renamed to pkg/planner/cascades/old/optimize_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package cascades
15+
package old
1616

1717
import (
1818
"context"

pkg/planner/cascades/stringer.go renamed to pkg/planner/cascades/old/stringer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package cascades
15+
package old
1616

1717
import (
1818
"bytes"

pkg/planner/cascades/stringer_test.go renamed to pkg/planner/cascades/old/stringer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package cascades
15+
package old
1616

1717
import (
1818
"context"

0 commit comments

Comments
 (0)