presto-iceberg/src/main/java/io/prestosql/plugin/iceberg/HiveTableOperations.java/HiveTableOperations/writeNewMetadata
class HiveTableOperations:    private String writeNewMetadata(TableMetadata metadata, int newVersion)
    {
        String newTableMetadataFilePath = newTableMetadataFilePath(metadata, newVersion);
        OutputFile newMetadataLocation = fileIo.newOutputFile(newTableMetadataFilePath);

        // write the new metadata
        TableMetadataParser.write(metadata, newMetadataLocation);

        return newTableMetadataFilePath;
    }