You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/statistics/cmsketch.go
-80Lines changed: 0 additions & 80 deletions
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,6 @@ import (
23
23
"slices"
24
24
"sort"
25
25
"strings"
26
-
"sync/atomic"
27
-
"time"
28
26
29
27
"github.com/pingcap/errors"
30
28
"github.com/pingcap/failpoint"
@@ -795,84 +793,6 @@ func NewTopN(n int) *TopN {
795
793
return&TopN{TopN: make([]TopNMeta, 0, n)}
796
794
}
797
795
798
-
// MergePartTopN2GlobalTopN is used to merge the partition-level topN to global-level topN.
799
-
// The input parameters:
800
-
// 1. `topNs` are the partition-level topNs to be merged.
801
-
// 2. `n` is the size of the global-level topN. Notice: This value can be 0 and has no default value, we must explicitly specify this value.
802
-
// 3. `hists` are the partition-level histograms. Some values not in topN may be placed in the histogram. We need it here to make the value in the global-level TopN more accurate.
803
-
//
804
-
// The output parameters:
805
-
// 1. `*TopN` is the final global-level topN.
806
-
// 2. `[]TopNMeta` is the left topN value from the partition-level TopNs, but is not placed to global-level TopN. We should put them back to histogram latter.
807
-
// 3. `[]*Histogram` are the partition-level histograms which just delete some values when we merge the global-level topN.
// MergePartTopN2GlobalTopN is used to merge the partition-level topN to global-level topN.
120
+
// The input parameters:
121
+
// 1. `topNs` are the partition-level topNs to be merged.
122
+
// 2. `n` is the size of the global-level topN. Notice: This value can be 0 and has no default value, we must explicitly specify this value.
123
+
// 3. `hists` are the partition-level histograms. Some values not in topN may be placed in the histogram. We need it here to make the value in the global-level TopN more accurate.
124
+
//
125
+
// The output parameters:
126
+
// 1. `*TopN` is the final global-level topN.
127
+
// 2. `[]TopNMeta` is the left topN value from the partition-level TopNs, but is not placed to global-level TopN. We should put them back to histogram latter.
128
+
// 3. `[]*Histogram` are the partition-level histograms which just delete some values when we merge the global-level topN.
0 commit comments