From 8441439848e2538072b2f6ba10896669493ff907 Mon Sep 17 00:00:00 2001 From: Max Gekk Date: Wed, 24 Feb 2021 10:49:34 +0300 Subject: [PATCH 1/3] Fix typo --- docs/sql-ref-syntax-ddl-repair-table.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sql-ref-syntax-ddl-repair-table.md b/docs/sql-ref-syntax-ddl-repair-table.md index 41499c3314c45..144e792c8b6be 100644 --- a/docs/sql-ref-syntax-ddl-repair-table.md +++ b/docs/sql-ref-syntax-ddl-repair-table.md @@ -41,10 +41,10 @@ MSCK REPAIR TABLE table_identifier [{ADD|DROP|SYNC} PARTITIONS] * **`{ADD|DROP|SYNC} PARTITIONS`** - * If specified, `MSCK REPAIR TABLE` only adds partitions to the session catalog. * **ADD**, the command adds new partitions to the session catalog for all sub-folder in the base table folder that don't belong to any table partitions. * **DROP**, the command drops all partitions from the session catalog that have non-existing locations in the file system. * **SYNC** is the combination of **DROP** and **ADD**. + * If not specified, **ADD** is the default. ### Examples From 295d55710ec3b53596e2736ed98e9d068d2ee4c3 Mon Sep 17 00:00:00 2001 From: Wenchen Fan Date: Wed, 24 Feb 2021 18:18:06 +0800 Subject: [PATCH 2/3] Update docs/sql-ref-syntax-ddl-repair-table.md Co-authored-by: Hyukjin Kwon --- docs/sql-ref-syntax-ddl-repair-table.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/sql-ref-syntax-ddl-repair-table.md b/docs/sql-ref-syntax-ddl-repair-table.md index 144e792c8b6be..c77b5490dc6d8 100644 --- a/docs/sql-ref-syntax-ddl-repair-table.md +++ b/docs/sql-ref-syntax-ddl-repair-table.md @@ -41,6 +41,8 @@ MSCK REPAIR TABLE table_identifier [{ADD|DROP|SYNC} PARTITIONS] * **`{ADD|DROP|SYNC} PARTITIONS`** + Specifies how to recover partitions. If not specified, **ADD** is the default. + * **ADD**, the command adds new partitions to the session catalog for all sub-folder in the base table folder that don't belong to any table partitions. * **DROP**, the command drops all partitions from the session catalog that have non-existing locations in the file system. * **SYNC** is the combination of **DROP** and **ADD**. From 0101c62858a445d8f1e185a27e6f7aea34c8f4f7 Mon Sep 17 00:00:00 2001 From: Wenchen Fan Date: Wed, 24 Feb 2021 18:18:13 +0800 Subject: [PATCH 3/3] Update docs/sql-ref-syntax-ddl-repair-table.md Co-authored-by: Hyukjin Kwon --- docs/sql-ref-syntax-ddl-repair-table.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/sql-ref-syntax-ddl-repair-table.md b/docs/sql-ref-syntax-ddl-repair-table.md index c77b5490dc6d8..2e3711c260282 100644 --- a/docs/sql-ref-syntax-ddl-repair-table.md +++ b/docs/sql-ref-syntax-ddl-repair-table.md @@ -46,7 +46,6 @@ MSCK REPAIR TABLE table_identifier [{ADD|DROP|SYNC} PARTITIONS] * **ADD**, the command adds new partitions to the session catalog for all sub-folder in the base table folder that don't belong to any table partitions. * **DROP**, the command drops all partitions from the session catalog that have non-existing locations in the file system. * **SYNC** is the combination of **DROP** and **ADD**. - * If not specified, **ADD** is the default. ### Examples