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

Add getNumPartitionsByFilter api in metastore api

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 2.1.0
    • Metastore
    • None
    • 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

            People

              akshaygoyal Akshay Goyal
              amareshwari Amareshwari Sriramadasu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: