pingcap / pingcap/tidb

unexport the important fields of `statistics.Column` and `statistics.Index`

Open
#57,949 0 comments 0 reactions 1 assignee Claimed by @winoros View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
To make the `MemoryUsage` be `O(1)` safely. We need to make sure that the fields of `Column` and `Index` is not changed by accident.
Hence, we are going to unexport the important fields of them.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.