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

Add getNumPartitionsByFilter api in metastore api

Log workAgile BoardRank to TopRank to BottomVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Component/s: Metastore
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Adding api for getting number of partitions for a filter will be more optimal when we are only interested in the number. getAllPartitions will construct all the partition object which can be time consuming and not required.

      Here is a commit we pushed in a forked repo in our organization - https://github.com/inmobi/hive/commit/68b3534d3e6c4d978132043cec668798ed53e444.

        Attachments

        1. HIVE-11487.01.patch
          7.80 MB
          Akshay Goyal
        2. HIVE-11487.02.patch
          370 kB
          Akshay Goyal
        3. HIVE-11487.03.patch
          19 kB
          Akshay Goyal
        4. HIVE-11487.04.patch
          3.13 MB
          Akshay Goyal
        5. HIVE-11487.05.patch
          2.67 MB
          Akshay Goyal
        6. HIVE-11487.06.patch
          320 kB
          Akshay Goyal

        Issue Links

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              akshaygoyal Akshay Goyal Assign to me
              Reporter:
              amareshwari Amareshwari Sriramadasu

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment