throw new PrestoException(HIVE_PATH_ALREADY_EXISTS, format("Target directory for table '%s.%s' already exists: %s",
handle.getSchemaName(),
handle.getTableName(),
targetPath));
renameDirectory(hdfsEnvironment, handle.getSchemaName(), handle.getTableName(), writePath, targetPath);
PartitionCommitter partitionCommitter = new PartitionCommitter(handle.getSchemaName(), handle.getTableName(), metastore, PARTITION_COMMIT_BATCH_SIZE);
try {
partitionUpdates = PartitionUpdate.mergePartitionUpdates(partitionUpdates);
handle.getTableName(),
handle.getTableOwner(),
handle.getInputColumns(),