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

Improve the performance of drop partitions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.2
    • 3.4.0
    • SQL
    • None

    Description

      Currently to drop the matching partitions, Spark will first get all matching Partition objects from Hive metastore, and just use the partition values of these Partition objects.

      We can get the matching partition names instead of the partition objects for the following reasons:
      1. we can also get partition values through a partition name (like a=1/b=2)
      2. the byte size of partition name is much smaller than partition object, which will help improve the performance of drop partitions.

      Attachments

        Issue Links

          Activity

            People

              wechar Wechar
              wechar Wechar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: