Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-4273

HCatClient::dropPartition() doesn't fail for non-existent partitions.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.10.0
    • None
    • HCatalog
    • None

    Description

      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.

      Attachments

        Activity

          People

            mithun Mithun Radhakrishnan
            mithun Mithun Radhakrishnan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: