12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- package core
15
+ package logicalop
16
16
17
17
import (
18
18
"github.com/pingcap/tidb/pkg/expression"
19
19
"github.com/pingcap/tidb/pkg/planner/core/base"
20
- "github.com/pingcap/tidb/pkg/planner/core/operator/logicalop"
21
20
"github.com/pingcap/tidb/pkg/planner/property"
22
21
"github.com/pingcap/tidb/pkg/planner/util/optimizetrace"
22
+ "github.com/pingcap/tidb/pkg/planner/util/utilfuncp"
23
23
"github.com/pingcap/tidb/pkg/util/plancodec"
24
24
)
25
25
26
26
// LogicalShowDDLJobs is for showing DDL job list.
27
27
type LogicalShowDDLJobs struct {
28
- logicalop. LogicalSchemaProducer
28
+ LogicalSchemaProducer
29
29
30
30
JobNumber int64
31
31
}
32
32
33
33
// Init initializes LogicalShowDDLJobs.
34
34
func (p LogicalShowDDLJobs ) Init (ctx base.PlanContext ) * LogicalShowDDLJobs {
35
- p .BaseLogicalPlan = logicalop . NewBaseLogicalPlan (ctx , plancodec .TypeShowDDLJobs , & p , 0 )
35
+ p .BaseLogicalPlan = NewBaseLogicalPlan (ctx , plancodec .TypeShowDDLJobs , & p , 0 )
36
36
return & p
37
37
}
38
38
@@ -46,7 +46,7 @@ func (p LogicalShowDDLJobs) Init(ctx base.PlanContext) *LogicalShowDDLJobs {
46
46
47
47
// FindBestTask implements the base.LogicalPlan.<3rd> interface.
48
48
func (p * LogicalShowDDLJobs ) FindBestTask (prop * property.PhysicalProperty , planCounter * base.PlanCounterTp , _ * optimizetrace.PhysicalOptimizeOp ) (base.Task , int64 , error ) {
49
- return findBestTask4LogicalShowDDLJobs (p , prop , planCounter , nil )
49
+ return utilfuncp . FindBestTask4LogicalShowDDLJobs (p , prop , planCounter , nil )
50
50
}
51
51
52
52
// BuildKeyInfo inherits the BaseLogicalPlan.<4th> interface.
0 commit comments