@@ -30,7 +30,7 @@ import (
30
30
"github.com/pingcap/tidb/pkg/parser/model"
31
31
"github.com/pingcap/tidb/pkg/planner"
32
32
"github.com/pingcap/tidb/pkg/planner/core"
33
- "github.com/pingcap/tidb/pkg/planner/core/internal "
33
+ "github.com/pingcap/tidb/pkg/planner/util/coretestsdk "
34
34
"github.com/pingcap/tidb/pkg/sessionctx/stmtctx"
35
35
"github.com/pingcap/tidb/pkg/testkit"
36
36
"github.com/pingcap/tidb/pkg/testkit/external"
@@ -211,7 +211,7 @@ func TestUnmatchedTableInHint(t *testing.T) {
211
211
}
212
212
213
213
func TestIssue37520 (t * testing.T ) {
214
- store := testkit .CreateMockStore (t , internal .WithMockTiFlash (2 ))
214
+ store := testkit .CreateMockStore (t , coretestsdk .WithMockTiFlash (2 ))
215
215
tk := testkit .NewTestKit (t , store )
216
216
tk .MustExec ("use test" )
217
217
tk .MustExec ("set tidb_cost_model_version=2" )
@@ -241,7 +241,7 @@ func TestIssue37520(t *testing.T) {
241
241
}
242
242
243
243
func TestMPPHints (t * testing.T ) {
244
- store := testkit .CreateMockStore (t , internal .WithMockTiFlash (2 ))
244
+ store := testkit .CreateMockStore (t , coretestsdk .WithMockTiFlash (2 ))
245
245
tk := testkit .NewTestKit (t , store )
246
246
tk .MustExec ("use test" )
247
247
tk .MustExec ("set tidb_cost_model_version=2" )
@@ -283,7 +283,7 @@ func TestMPPHints(t *testing.T) {
283
283
}
284
284
285
285
func TestMPPHintsScope (t * testing.T ) {
286
- store := testkit .CreateMockStore (t , internal .WithMockTiFlash (2 ))
286
+ store := testkit .CreateMockStore (t , coretestsdk .WithMockTiFlash (2 ))
287
287
tk := testkit .NewTestKit (t , store )
288
288
tk .MustExec ("use test" )
289
289
tk .MustExec ("set tidb_cost_model_version=2" )
@@ -340,7 +340,7 @@ func TestMPPBCJModel(t *testing.T) {
340
340
Probe: sizeof(Data) * 2 / 3
341
341
exchange size: Build + Probe = 4/3 * sizeof(Data)
342
342
*/
343
- store := testkit .CreateMockStore (t , internal .WithMockTiFlash (3 ))
343
+ store := testkit .CreateMockStore (t , coretestsdk .WithMockTiFlash (3 ))
344
344
{
345
345
cnt , err := store .GetMPPClient ().GetMPPStoreCount ()
346
346
require .Equal (t , cnt , 3 )
@@ -382,7 +382,7 @@ func TestMPPBCJModel(t *testing.T) {
382
382
}
383
383
384
384
func TestMPPPreferBCJ (t * testing.T ) {
385
- store := testkit .CreateMockStore (t , internal .WithMockTiFlash (3 ))
385
+ store := testkit .CreateMockStore (t , coretestsdk .WithMockTiFlash (3 ))
386
386
tk := testkit .NewTestKit (t , store )
387
387
tk .MustExec ("use test" )
388
388
tk .MustExec ("drop table if exists t1" )
@@ -449,7 +449,7 @@ func TestMPPBCJModelOneTiFlash(t *testing.T) {
449
449
Probe: sizeof(Data) * 0 / 1
450
450
exchange size: Build + Probe = 0 * sizeof(Data)
451
451
*/
452
- store := testkit .CreateMockStore (t , internal .WithMockTiFlash (1 ))
452
+ store := testkit .CreateMockStore (t , coretestsdk .WithMockTiFlash (1 ))
453
453
tk := testkit .NewTestKit (t , store )
454
454
tk .MustExec ("use test" )
455
455
tk .MustExec ("create table t (a int, b int, c int, index idx_a(a), index idx_b(b))" )
@@ -500,7 +500,7 @@ func TestMPPBCJModelOneTiFlash(t *testing.T) {
500
500
}
501
501
502
502
func TestMPPRightSemiJoin (t * testing.T ) {
503
- store := testkit .CreateMockStore (t , internal .WithMockTiFlash (3 ))
503
+ store := testkit .CreateMockStore (t , coretestsdk .WithMockTiFlash (3 ))
504
504
tk := testkit .NewTestKit (t , store )
505
505
tk .MustExec ("use test" )
506
506
tk .MustExec ("drop table if exists t1" )
@@ -556,7 +556,7 @@ func TestMPPRightSemiJoin(t *testing.T) {
556
556
}
557
557
558
558
func TestMPPRightOuterJoin (t * testing.T ) {
559
- store := testkit .CreateMockStore (t , internal .WithMockTiFlash (3 ))
559
+ store := testkit .CreateMockStore (t , coretestsdk .WithMockTiFlash (3 ))
560
560
tk := testkit .NewTestKit (t , store )
561
561
tk .MustExec ("use test" )
562
562
tk .MustExec ("drop table if exists t1" )
0 commit comments