Add excludeReplacedSegments param into table metadata API
#10 244 ouverte le 8 févr. 2023
Métriques du dépôt
- Stars
- (4 937 stars)
- Métriques de merge PR
- (Merge moyen 6j 7h) (186 PRs mergées en 30 j)
Description
/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.