@Override
  public PartitionSpec getSpec(int specId) {
    if (specId != spec.specId()) {
      throw new IllegalArgumentException(
          "Partition spec id " + specId + " not found in table " + keyedTable.name());
    }
    return spec;
  }
Wrap SnapshotFileGroup with max and min Transaction Id
amoro-format-iceberg/src/main/java/org/apache/amoro/optimizing/scan/KeyedTableFileScanHelper.java