Mithun Radhakrishnan created HIVE-4273:
------------------------------------------

             Summary: HCatClient::dropPartition() doesn't fail for non-existent 
partitions.
                 Key: HIVE-4273
                 URL: https://issues.apache.org/jira/browse/HIVE-4273
             Project: Hive
          Issue Type: Bug
          Components: HCatalog
    Affects Versions: 0.10.0
            Reporter: Mithun Radhakrishnan
            Assignee: Mithun Radhakrishnan
            Priority: Minor


In HCatalog 0.4/0.5, if HCatClient::dropPartition() is called with a 
partition-spec that doesn't select any partitions, then it should throw an 
exception, if(f) ifExists == false. But it doesn't.

At the moment, HCatClientHMSImplementation::dropPartition() queries for all 
partitions and attempts to drop them iteratively. It doesn't check for an empty 
partition-list. 

I'll fix this in a patch shortly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to