private static FileFormat fileFormat(String fileLocation) {
    return FileFormat.fromString(fileLocation.substring(fileLocation.lastIndexOf(".") + 1));
  }
Reads partition statistics from the specified {@link InputFile} using given schema.

@param schema The {@link Schema} of the partition statistics file.
@param inputFile An {@link InputFile} pointing to the partition stats file.
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/data/PartitionStatsHandler.java