From 04a75b7c2811c089a45def53f36df18e2cfa4217 Mon Sep 17 00:00:00 2001 From: EmmyMiao87 <522274284@qq.com> Date: Thu, 20 Aug 2020 09:31:33 +0800 Subject: [PATCH] [Doc] Fix spelling errors in dynamic partition docs (#4395) Change-Id: I84de1602b99c6b89b59ccc5869c96516c40a181d --- docs/en/administrator-guide/dynamic-partition.md | 15 +++++++++------ .../administrator-guide/dynamic-partition.md | 15 +++++++++------ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/docs/en/administrator-guide/dynamic-partition.md b/docs/en/administrator-guide/dynamic-partition.md index 0fce2ac8bd..078eeced01 100644 --- a/docs/en/administrator-guide/dynamic-partition.md +++ b/docs/en/administrator-guide/dynamic-partition.md @@ -126,12 +126,13 @@ The rules of dynamic partition are prefixed with `dynamic_partition.`: 1. Table `tbl1` partition column k1, type is DATE, create a dynamic partition rule. By day partition, only the partitions of the last 7 days are kept, and the partitions of the next 3 days are created in advance. ``` - CREATA TABLE tbl1 + CREATE TABLE tbl1 ( k1 DATE, ... ) - PARTITION BY RANGE(K1) () + PARTITION BY RANGE(k1) () + DISTRIBUTED BY HASH(k1) PROPERTIES ( "dynamic_partition.enable" = "true", @@ -159,12 +160,13 @@ The rules of dynamic partition are prefixed with `dynamic_partition.`: 2. Table tbl1 partition column k1, type is DATETIME, create a dynamic partition rule. Partition by week, only keep the partition of the last 2 weeks, and create the partition of the next 2 weeks in advance. ``` - CREATA TABLE tbl1 + CREATE TABLE tbl1 ( k1 DATETIME, ... ) - PARTITION BY RANGE(K1) () + PARTITION BY RANGE(k1) () + DISTRIBUTED BY HASH(k1) PROPERTIES ( "dynamic_partition.enable" = "true", @@ -203,12 +205,13 @@ The rules of dynamic partition are prefixed with `dynamic_partition.`: 3. Table tbl1 partition column k1, type is DATE, create a dynamic partition rule. Partition by month without deleting historical partitions, and create partitions for the next 2 months in advance. At the same time, set the starting date on the 3rd of each month. ``` - CREATA TABLE tbl1 + CREATE TABLE tbl1 ( k1 DATE, ... ) - PARTITION BY RANGE(K1) () + PARTITION BY RANGE(k1) () + DISTRIBUTED BY HASH(k1) PROPERTIES ( "dynamic_partition.enable" = "true", diff --git a/docs/zh-CN/administrator-guide/dynamic-partition.md b/docs/zh-CN/administrator-guide/dynamic-partition.md index 0e56a6cf3e..167e137219 100644 --- a/docs/zh-CN/administrator-guide/dynamic-partition.md +++ b/docs/zh-CN/administrator-guide/dynamic-partition.md @@ -124,12 +124,13 @@ under the License. 1. 表 tbl1 分区列 k1 类型为 DATE,创建一个动态分区规则。按天分区,只保留最近7天的分区,并且预先创建未来3天的分区。 ``` - CREATA TABLE tbl1 + CREATE TABLE tbl1 ( k1 DATE, ... ) - PARTITION BY RANGE(K1) () + PARTITION BY RANGE(k1) () + DISTRIBUTED BY HASH(k1) PROPERTIES ( "dynamic_partition.enable" = "true", @@ -157,12 +158,13 @@ under the License. 2. 表 tbl1 分区列 k1 类型为 DATETIME,创建一个动态分区规则。按星期分区,只保留最近2个星期的分区,并且预先创建未来2个星期的分区。 ``` - CREATA TABLE tbl1 + CREATE TABLE tbl1 ( k1 DATETIME, ... ) - PARTITION BY RANGE(K1) () + PARTITION BY RANGE(k1) () + DISTRIBUTED BY HASH(k1) PROPERTIES ( "dynamic_partition.enable" = "true", @@ -201,12 +203,13 @@ under the License. 3. 表 tbl1 分区列 k1 类型为 DATE,创建一个动态分区规则。按月分区,不删除历史分区,并且预先创建未来2个月的分区。同时设定以每月3号为起始日。 ``` - CREATA TABLE tbl1 + CREATE TABLE tbl1 ( k1 DATE, ... ) - PARTITION BY RANGE(K1) () + PARTITION BY RANGE(k1) () + DISTRIBUTED BY HASH(k1) PROPERTIES ( "dynamic_partition.enable" = "true",