@Override
  public void getMetaSummary(Table table, MetadataTableSummary summary) {
    SummaryMapBuilder builder = new SummaryMapBuilder();
    List<StatisticsFile> statsFiles = table.statisticsFiles();
    builder.add(PUFFIN_STATS_ENABLED, statsFiles != null && !statsFiles.isEmpty());
    if (statsFiles != null && !statsFiles.isEmpty()) {
      StatisticsFile statsFile = statsFiles.get(0);
      List<BlobMetadata> blobMetadatas = statsFile.blobMetadata();
      if (blobMetadatas != null) {
        builder.add(PUFFIN_STATS_BLOB, blobMetadatas.stream().map(BlobMetadata::type)
            .collect(Collectors.joining(",")));
      }
    }
    if (builder.get(PUFFIN_STATS_BLOB, String.class) == null) {
      builder.add(PUFFIN_STATS_BLOB, null);
    }
    if (formatJson) {
      summary.addExtra(STATS, builder);
    } else {
      summary.addExtra(builder);
    }
  }
Collect the puffin stats summary for the table
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/metasummary/PuffinStatisticsSummary.java