Skip to content

Commit

Permalink
fix strange build failed error
Browse files Browse the repository at this point in the history
  • Loading branch information
winoros committed Oct 25, 2018
1 parent caea198 commit e9df1a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion statistics/feedback.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions statistics/histogram_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e9df1a3

Please sign in to comment.