diff --git a/statistics/feedback.go b/statistics/feedback.go index 07cd750d76a80..c3cb4ed472069 100644 --- a/statistics/feedback.go +++ b/statistics/feedback.go @@ -297,7 +297,7 @@ func buildBucketFeedback(h *Histogram, feedback *QueryFeedback) (map[int]*Bucket total := 0 sc := &stmtctx.StatementContext{TimeZone: time.UTC} kind := feedback.feedback[0].lower.Kind() - min, max := getMinValue(kind, h.tp), getMaxValue(kind, h.tp) + min, max := getMinValue(kind, h.Tp), getMaxValue(kind, h.Tp) for _, fb := range feedback.feedback { skip, err := fb.adjustFeedbackBoundaries(sc, &min, &max) if err != nil { diff --git a/statistics/histogram_test.go b/statistics/histogram_test.go index bc4b2ccebcd37..e752ccdb58bfd 100644 --- a/statistics/histogram_test.go +++ b/statistics/histogram_test.go @@ -15,8 +15,8 @@ package statistics import ( . "github.com/pingcap/check" - "github.com/pingcap/tidb/model" - "github.com/pingcap/tidb/mysql" + "github.com/pingcap/parser/model" + "github.com/pingcap/parser/mysql" "github.com/pingcap/tidb/types" "github.com/pingcap/tidb/util/chunk" "github.com/pingcap/tidb/util/codec"