Skip to content

Commit

Permalink
statistics: enable fieldalignment
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei committed Aug 2, 2023
1 parent 3eb4b2d commit 727caeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statistics/cmsketch.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func newTopNHelper(sample [][]byte, numTop uint32) *topNHelper {
sumTopN += sorted[actualNumTop].cnt
}

return &topNHelper{uint64(len(sample)), sorted, onlyOnceItems, sumTopN, actualNumTop}
return &topNHelper{sorted, uint64(len(sample)), onlyOnceItems, sumTopN, actualNumTop}
}

// NewCMSketchAndTopN returns a new CM sketch with TopN elements, the estimate NDV and the scale ratio.
Expand Down

0 comments on commit 727caeb

Please sign in to comment.