planner: increase the maximum number limit of TopN when analyzing tables (#45962)

ref pingcap/tidb#45919
This commit is contained in:
Yuanjia Zhang
2023-08-10 18:25:56 +08:00
committed by GitHub
parent 6fb20c9d30
commit 45960e80d7
2 changed files with 2 additions and 2 deletions

View File

@ -2945,7 +2945,7 @@ var CMSketchSizeLimit = kv.TxnEntrySizeLimit / binary.MaxVarintLen32
var analyzeOptionLimit = map[ast.AnalyzeOptionType]uint64{
ast.AnalyzeOptNumBuckets: 1024,
ast.AnalyzeOptNumTopN: 1024,
ast.AnalyzeOptNumTopN: 16384,
ast.AnalyzeOptCMSketchWidth: CMSketchSizeLimit,
ast.AnalyzeOptCMSketchDepth: CMSketchSizeLimit,
ast.AnalyzeOptNumSamples: 500000,

View File

@ -154,7 +154,7 @@ func TestAnalyzeGlobalStatsWithOpts1(t *testing.T) {
{77, 219, false},
{-31, 222, true},
{10, -77, true},
{10000, 47, true},
{100000, 47, true},
{77, 47000, true},
}
for _, ca := range cases {