Enhancement Task
PD HTTP API region info includes approximate_kv_size, but client/http.RegionInfo currently drops this field during JSON decode.
This blocks downstream TiDB code paths that need to read region approximate kv size via the PD HTTP client.
Proposed change:
- Add
ApproximateKvSize int64 json:"approximate_kv_size"`` to client/http.RegionInfo
- Add JSON decode tests for both present and missing field values (missing should fallback to zero value).
Enhancement Task
PD HTTP API region info includes
approximate_kv_size, butclient/http.RegionInfocurrently drops this field during JSON decode.This blocks downstream TiDB code paths that need to read region approximate kv size via the PD HTTP client.
Proposed change:
ApproximateKvSize int64json:"approximate_kv_size"`` toclient/http.RegionInfo