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
- supercedes
-
SPARK-33628 Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
- In Progress
- links to