static PartitionStatisticsFile getPartitionStatsFile(Table table, long snapshotId) {
    return table.partitionStatisticsFiles().stream()
      .filter(stats -> stats.snapshotId() == snapshotId)
      .findAny().orElse(null);
  }
Load the iceberg table either from the {@link QueryState} or through the configured catalog. Look for the table
object stored in the query state. If it's null, it means the table was not loaded yet within the same query
therefore we claim it through the Catalogs API and then store it in query state.
@param configuration a Hadoop configuration
@param properties controlling properties
@param skipCache if set to true there won't be an attempt to retrieve the table from SessionState
@return an Iceberg table
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/IcebergTableUtil.java