org.apache.spark.sql.hive
This is adapted from org.apache.spark.sql.catalyst.catalog.ExternalCatalogUtils.prunePartitionsByFilter Instead of org.apache.spark.sql.catalyst.catalog.CatalogTable this function will be using HiveAcidMetadata