ajantha-bhat commented on code in PR #12629: URL: https://github.com/apache/iceberg/pull/12629#discussion_r2068064983
########## core/src/main/java/org/apache/iceberg/PartitionStatsUtil.java: ########## @@ -40,27 +44,48 @@ public class PartitionStatsUtil { private PartitionStatsUtil() {} /** - * Computes the partition stats for the given snapshot of the table. + * Fully computes the partition stats for the given snapshot of the table. * * @param table the table for which partition stats to be computed. * @param snapshot the snapshot for which partition stats is computed. * @return the collection of {@link PartitionStats} */ public static Collection<PartitionStats> computeStats(Table table, Snapshot snapshot) { - Preconditions.checkArgument(table != null, "table cannot be null"); - Preconditions.checkArgument(Partitioning.isPartitioned(table), "table must be partitioned"); - Preconditions.checkArgument(snapshot != null, "snapshot cannot be null"); + Preconditions.checkArgument(table != null, "Table cannot be null"); Review Comment: I see only in `TableUitl` the message you mentioned, in Flink, I saw some places it is similar to what is here. Since it is not standardized and we already shipped with that error message. I don't think we need to correct it. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org