[Doc] Fix spelling errors in dynamic partition docs (#4395)
Change-Id: I84de1602b99c6b89b59ccc5869c96516c40a181d
This commit is contained in:
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
Reference in New Issue
Block a user