@Override @InterfaceAudience.LimitedPrivate({"Hive"}) @InterfaceStability.Evolving public int addPartitionSpec(HCatPartitionSpec partitionSpec) throws HCatException { try { return hmsClient.add_partitions_pspec(partitionSpec.toPartitionSpecProxy()); } catch (InvalidObjectException e) { throw new HCatException( "InvalidObjectException while adding partition.", e); } catch (AlreadyExistsException e) { throw new HCatException( "AlreadyExistsException while adding partition.", e); } catch (MetaException e) { throw new HCatException("MetaException while adding partition.", e); } catch (NoSuchObjectException e) { throw new ObjectNotFoundException("The table " + "could not be found.", e); } catch (TException e) { throw new ConnectionFailureException( "TException while adding partition.", e); } }
@Override @InterfaceAudience.LimitedPrivate({"Hive"}) @InterfaceStability.Evolving public int addPartitionSpec(HCatPartitionSpec partitionSpec) throws HCatException { try { return hmsClient.add_partitions_pspec(partitionSpec.toPartitionSpecProxy()); } catch (InvalidObjectException e) { throw new HCatException( "InvalidObjectException while adding partition.", e); } catch (AlreadyExistsException e) { throw new HCatException( "AlreadyExistsException while adding partition.", e); } catch (MetaException e) { throw new HCatException("MetaException while adding partition.", e); } catch (NoSuchObjectException e) { throw new ObjectNotFoundException("The table " + "could not be found.", e); } catch (TException e) { throw new ConnectionFailureException( "TException while adding partition.", e); } }
@Override @InterfaceAudience.LimitedPrivate({"Hive"}) @InterfaceStability.Evolving public int addPartitionSpec(HCatPartitionSpec partitionSpec) throws HCatException { try { return hmsClient.add_partitions_pspec(partitionSpec.toPartitionSpecProxy()); } catch (InvalidObjectException e) { throw new HCatException( "InvalidObjectException while adding partition.", e); } catch (AlreadyExistsException e) { throw new HCatException( "AlreadyExistsException while adding partition.", e); } catch (MetaException e) { throw new HCatException("MetaException while adding partition.", e); } catch (NoSuchObjectException e) { throw new ObjectNotFoundException("The table " + "could not be found.", e); } catch (TException e) { throw new ConnectionFailureException( "TException while adding partition.", e); } }
@Override @InterfaceAudience.LimitedPrivate({"Hive"}) @InterfaceStability.Evolving public int addPartitionSpec(HCatPartitionSpec partitionSpec) throws HCatException { try { return hmsClient.add_partitions_pspec(partitionSpec.toPartitionSpecProxy()); } catch (InvalidObjectException e) { throw new HCatException( "InvalidObjectException while adding partition.", e); } catch (AlreadyExistsException e) { throw new HCatException( "AlreadyExistsException while adding partition.", e); } catch (MetaException e) { throw new HCatException("MetaException while adding partition.", e); } catch (NoSuchObjectException e) { throw new ObjectNotFoundException("The table " + "could not be found.", e); } catch (TException e) { throw new ConnectionFailureException( "TException while adding partition.", e); } }