}
@Override
public AddPartitionsResult add_partitions_req(AddPartitionsRequest request)
throws InvalidObjectException, AlreadyExistsException, MetaException, TException {
AddPartitionsResult result = new AddPartitionsResult();
if (request.getParts().isEmpty()) {
return result;
}
try {
List<Partition> parts = add_partitions_core(getMS(), request.getDbName(),
request.getTblName(), request.getParts(), request.isIfNotExists());
if (request.isNeedResult()) {
result.setPartitions(parts);
}
} catch (TException te) {
throw te;
} catch (Exception e) {
throw newMetaException(e);