pvary commented on PR #12629:
URL: https://github.com/apache/iceberg/pull/12629#issuecomment-2782454730
Let's wait for @ajantha-bhat to come back from the Summit and see what he
thinks.
Based on the discussion above we could just provide these 2 methods on the
API:
```
/**
* Updates the partition statistics for the table.
* <ul>
* <li>If there are existing stats for the table then finds the latest
one,
* and does incremental stats calculation from there.
* <li>If there are no current stats, calculate them from scratch
* </ul>
*/
public static Collection<PartitionStats> computeStats(Table table) {
```
and
```
/**
* Forcefully updates the partition statistics for the table. Calculates
them from scratch
* and ignores previous stats. Could be used when stats corruption is
suspected, or the
* incremental stats calculation is costly (too many snapshots since last
calculation).
*/
public static Collection<PartitionStats> reComputeStats(Table table) {
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]