[ https://issues.apache.org/jira/browse/HIVE-3074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294779#comment-13294779 ]
Carl Steinbach commented on HIVE-3074: -------------------------------------- @Namit {quote} One of the common use-cases we see is that people want to create a new partition object using the thrift API. Today, the only way to perform that is to get a existing partition object, modify it manually (location, partition valus etc.), modify some other properties (which are application dependent) and then add the partition. This process is error prone, since it is manual. {quote} The Thrift API also allows you to add partitions using these methods: {noformat} Partition append_partition(1:string db_name, 2:string tbl_name, 3:list<string> part_vals) throws (1:InvalidObjectException o1, 2:AlreadyExistsException o2, 3:MetaException o3) Partition append_partition_by_name(1:string db_name, 2:string tbl_name, 3:string part_name) throws (1:InvalidObjectException o1, 2:AlreadyExistsException o2, 3:MetaException o3) {noformat} In what ways do these two methods not satisfy your use case? > Create a new API which gets a new empty partition object. > --------------------------------------------------------- > > Key: HIVE-3074 > URL: https://issues.apache.org/jira/browse/HIVE-3074 > Project: Hive > Issue Type: New Feature > Reporter: Nadeem Moidu > Assignee: Nadeem Moidu > > Gets a new partition object with the given parameters. Similar to > append_partition, but does not add the partition to metastore. It only works > for tables; does not work for other objects like views. The table is fetched > from the metastore using the db name and the table name. However, the actual > partition is not fetched from the metastore. It does not matter whether the > partition exists or not.The partition values are used to construct a new > partition. -- 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