// Fetch result of the analyze table partition (p1=c1).. compute statistics for columns ..
// Construct a column statistics object from the result
List<ColumnStatistics> colStats = constructColumnStatsFromPackedRows();
// Persist the column statistics object to the metastore
db.setPartitionColumnStatistics(new SetPartitionsStatsRequest(colStats));
return 0;
}