Skip to content

Commit

Permalink
planner: increase the maximum number limit of TopN when analyzing tab…
Browse files Browse the repository at this point in the history
…les (#45962) (#45972)

ref #45919
  • Loading branch information
ti-chi-bot authored Aug 17, 2023
1 parent 617a8ff commit 7f1548d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion planner/core/planbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -2775,7 +2775,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,
Expand Down
2 changes: 1 addition & 1 deletion statistics/handle/handle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,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 {
Expand Down

0 comments on commit 7f1548d

Please sign in to comment.