You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Carl Steinbach (Commented) (JIRA)" <ji...@apache.org> on 2012/04/09 22:45:17 UTC

[jira] [Commented] (HIVE-2938) ALTER TABLE ADD IF NOT EXISTS PARTITION is not atomic

    [ https://issues.apache.org/jira/browse/HIVE-2938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13250162#comment-13250162 ] 

Carl Steinbach commented on HIVE-2938:
--------------------------------------

Support for ALTER TABLE ADD IF NOT EXISTS PARTITION was added in HIVE-1106. However, this patch introduced a time-of-check-to-time-of-use bug since the check to see if the partition already exists is done in a transaction separate from the one in which the partition is actually created. We need to provide support for IF NOT EXISTS at the level of the Metastore Thrift API in order to support this correctly.
                
> ALTER TABLE ADD IF NOT EXISTS PARTITION is not atomic
> -----------------------------------------------------
>
>                 Key: HIVE-2938
>                 URL: https://issues.apache.org/jira/browse/HIVE-2938
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.8.1
>            Reporter: Carl Steinbach
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira