From 3afaa007d885ef9f1ff8e756a6ddd05d104db6ab Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Wed, 16 Oct 2024 15:23:58 +0800 Subject: [PATCH] update Signed-off-by: Weizhen Wang --- pkg/statistics/histogram.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/statistics/histogram.go b/pkg/statistics/histogram.go index 9937637a69136..9d4754a3bf23c 100644 --- a/pkg/statistics/histogram.go +++ b/pkg/statistics/histogram.go @@ -41,6 +41,7 @@ import ( "github.com/pingcap/tidb/pkg/util/codec" "github.com/pingcap/tidb/pkg/util/collate" "github.com/pingcap/tidb/pkg/util/intest" + "github.com/pingcap/tidb/pkg/util/logutil" "github.com/pingcap/tidb/pkg/util/ranger" "github.com/pingcap/tipb/go-tipb" "github.com/twmb/murmur3" @@ -1545,7 +1546,7 @@ func MergePartitionHist2GlobalHist(sc *stmtctx.StatementContext, hists []*Histog // Calc the bucket lower. if minValue == nil || len(globalBuckets) == 0 { // both hists and popedTopN are empty, returns an empty hist in this case if len(globalBuckets) == 0 { - + logutil.BgLogger().Info("debug info for MergePartitionHist2GlobalHist") } return NewHistogram(hists[0].ID, 0, totNull, hists[0].LastUpdateVersion, hists[0].Tp, len(globalBuckets), totColSize), nil }