presto-iceberg/src/main/java/io/prestosql/plugin/iceberg/IcebergPageSink.java/IcebergPageSink/readMetrics
class IcebergPageSink:    @SuppressWarnings("SwitchStatementWithTooFewBranches")
    private Metrics readMetrics(Path path)
    {
        switch (fileFormat) {
            case PARQUET:
                return ParquetUtil.fileMetrics(HadoopInputFile.fromPath(path, jobConf), MetricsConfig.getDefault());
        }
        throw new PrestoException(NOT_SUPPORTED, "File format not supported for Iceberg: " + fileFormat);
    }