aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorgatorsmile <gatorsmile@gmail.com>2016-12-20 23:40:02 -0800
committerReynold Xin <rxin@databricks.com>2016-12-20 23:40:02 -0800
commit24c0c94128770be9034fb69518713d7f6aa1e041 (patch)
treef367c32b5005da96c0634ba5e1f8337e5d0aa86e /project
parentb2dd8ec6b2c05c996e2d7c0bf8db0073c1ee0b94 (diff)
downloadspark-24c0c94128770be9034fb69518713d7f6aa1e041.tar.gz
spark-24c0c94128770be9034fb69518713d7f6aa1e041.tar.bz2
spark-24c0c94128770be9034fb69518713d7f6aa1e041.zip
[SPARK-18949][SQL] Add recoverPartitions API to Catalog
### What changes were proposed in this pull request? Currently, we only have a SQL interface for recovering all the partitions in the directory of a table and update the catalog. `MSCK REPAIR TABLE` or `ALTER TABLE table RECOVER PARTITIONS`. (Actually, very hard for me to remember `MSCK` and have no clue what it means) After the new "Scalable Partition Handling", the table repair becomes much more important for making visible the data in the created data source partitioned table. Thus, this PR is to add it into the Catalog interface. After this PR, users can repair the table by ```Scala spark.catalog.recoverPartitions("testTable") ``` ### How was this patch tested? Modified the existing test cases. Author: gatorsmile <gatorsmile@gmail.com> Closes #16356 from gatorsmile/repairTable.
Diffstat (limited to 'project')
-rw-r--r--project/MimaExcludes.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/project/MimaExcludes.scala b/project/MimaExcludes.scala
index b215d8867d..20f5c2789a 100644
--- a/project/MimaExcludes.scala
+++ b/project/MimaExcludes.scala
@@ -37,7 +37,9 @@ object MimaExcludes {
// Exclude rules for 2.2.x
lazy val v22excludes = v21excludes ++ Seq(
// [SPARK-18663][SQL] Simplify CountMinSketch aggregate implementation
- ProblemFilters.exclude[ReversedMissingMethodProblem]("org.apache.spark.util.sketch.CountMinSketch.toByteArray")
+ ProblemFilters.exclude[ReversedMissingMethodProblem]("org.apache.spark.util.sketch.CountMinSketch.toByteArray"),
+ // [SPARK-18949] [SQL] Add repairTable API to Catalog
+ ProblemFilters.exclude[ReversedMissingMethodProblem]("org.apache.spark.sql.catalog.Catalog.recoverPartitions")
)
// Exclude rules for 2.1.x