Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-18572

Use the hive client method "getPartitionNames" to answer "SHOW PARTITIONS" queries on partitioned Hive tables

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • SQL
    • None

    Description

      Currently Spark answers the SHOW PARTITIONS query by fetching all of the table's partition metadata from the external catalog and constructing partition names therefrom. The Hive client has a getPartitionNames method which is orders of magnitude faster, with the performance improvement scaling up with the number of partitions in the table. I believe we can use this method to great effect.

      Further details are provided in the associated PR.

      Attachments

        Activity

          People

            michael Michael MacFadden
            michael Michael MacFadden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: