apache/pinot

Add excludeReplacedSegments param into table metadata API

Open

#10.244 aperta il 8 feb 2023

Vedi su GitHub
 (2 commenti) (1 reazione) (1 assegnatario)Java (1234 fork)batch import
good first issue

Metriche repository

Star
 (4937 star)
Metriche merge PR
 (Merge medio 6g 7h) (186 PR mergiate in 30 g)

Descrizione

/tables/{tableName}/metadata endpoint should take an additional parameter such as excludeReplacedSegments as found in getSegments in order to discern between reporting stats with consistent push accounted for or not.

Currently, the table returns TableMetadata with info such as diskSizeInBytes, numSegments and numRows approximately doubled when consistent push is in-place, and users who are unaware of the consistent push concept may incorrectly interpret the result, e.g. leading to provisioning 2x the storage by mistake.

This should be done in a backward compatible manner, with the default behavior being the current one if the additional param is not explicitly set.

Guida contributor