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:49:19 UTC

[jira] [Commented] (HIVE-2614) Thrift api to know if partition exists or not

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

Carl Steinbach commented on HIVE-2614:
--------------------------------------

@Amareshwari: Can you give a concrete example of a use-case for this new call? In general I think providing calls like this is a bad idea since it encourages people to accidentally add time-of-check-to-time-of-use bugs, e.g. HIVE-2938.
                
> Thrift api to know if partition exists or not
> ---------------------------------------------
>
>                 Key: HIVE-2614
>                 URL: https://issues.apache.org/jira/browse/HIVE-2614
>             Project: Hive
>          Issue Type: Improvement
>          Components: Metastore
>            Reporter: Amareshwari Sriramadasu
>            Assignee: Amareshwari Sriramadasu
>             Fix For: 0.9.0
>
>
> Currently if we want to know if a partition exists or not, we should call get_partition() which constructs the partition and returns. This would require joining multiple tables at the metastore end and it might not scale for many such operations.

--
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