presto-hive/src/main/java/io/prestosql/plugin/hive/RecordFileWriter.java/RecordFileWriter/commit
class RecordFileWriter:    @Override
    public void commit()
    {
        try {
            recordWriter.close(false);
            committed = true;
        }
        catch (IOException e) {
            throw new PrestoException(HIVE_WRITER_CLOSE_ERROR, "Error committing write to Hive", e);
        }
    }