Class ComputePartitionStatsSparkAction

java.lang.Object
org.apache.iceberg.spark.actions.ComputePartitionStatsSparkAction
All Implemented Interfaces:
Action<ComputePartitionStats,ComputePartitionStats.Result>, ComputePartitionStats

public class ComputePartitionStatsSparkAction extends Object implements ComputePartitionStats
Computes the stats incrementally after the snapshot that has partition stats file till the given snapshot (uses current snapshot if not specified) and writes the combined result into a PartitionStatisticsFile after merging the stats for a given snapshot. Does a full compute if previous statistics file does not exist. Also registers the PartitionStatisticsFile to table metadata.