You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Mithun Radhakrishnan (JIRA)" <ji...@apache.org> on 2014/08/21 23:03:11 UTC
[jira] [Updated] (HIVE-7837) HCatClient doesn't have an
addPartitions( partList, ifNotExist );
[ https://issues.apache.org/jira/browse/HIVE-7837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mithun Radhakrishnan updated HIVE-7837:
---------------------------------------
Affects Version/s: 0.13.1
> HCatClient doesn't have an addPartitions( partList, ifNotExist );
> -----------------------------------------------------------------
>
> Key: HIVE-7837
> URL: https://issues.apache.org/jira/browse/HIVE-7837
> Project: Hive
> Issue Type: Bug
> Components: HCatalog
> Affects Versions: 0.13.1
> Reporter: Mithun Radhakrishnan
> Assignee: Mithun Radhakrishnan
>
> HCatalog doesn't provide a way to add partitions in an idempotent fashion. It currently only has:
> {{public abstract int addPartitions(List<HCatAddPartitionDesc> partInfoList);}}
> (Pending HIVE-7576, there'll also be:
> {{public abstract int addPartitionSpec(HCatPartitionSpec partitionSpec)throws HCatException;}}
> )
> Neither provides a way to "add-partitions-if-not-exist". There's value in adding such an API, for systems that add partitions to Hive tables, to be able to retry reliably (and avoid an AlreadyExistsException).
> This can be implemented using {{HiveMetaStoreClient.add_partitions( partList, ifNotExists, needREsults )}}, for HCatClientHMSImpl.
--
This message was sent by Atlassian JIRA
(v6.2#6252)