Skip to content

Commit 2138016

Browse files
dataroaringdaveyyan
andcommitted
[typo](docs) Aggregate Mode: Keep the sample code and documentation consistent (#3374)
## Summary - Keep aggregate model sample column names consistent by replacing `load_dt` with `load_date` in SQL examples and key definitions. - Sync the related explanatory text with the corrected key column name. - Scope this recreation to `dev`, `3.x`, and `4.x` only (both English and Chinese docs). ## Versions - [x] dev - [x] 4.x - [x] 3.x - [ ] 2.1 - [ ] 2.0 ## Languages - [x] Chinese - [x] English ## Docs Checklist - [ ] Checked by AI - [ ] Test Cases Built Signed-off-by: daveyyan <875267695@qq.com> Signed-off-by: daveyyan <875267695@qq.com> Co-authored-by: daveyyan <875267695@qq.com>
1 parent 0673381 commit 2138016

6 files changed

Lines changed: 18 additions & 24 deletions

File tree

docs/table-design/data-model/aggregate.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ When creating a table, the **AGGREGATE KEY** keyword can be used to specify the
4545
CREATE TABLE IF NOT EXISTS example_tbl_agg
4646
(
4747
user_id LARGEINT NOT NULL,
48-
load_dt DATE NOT NULL,
48+
load_date DATE NOT NULL,
4949
city VARCHAR(20),
5050
last_visit_dt DATETIME REPLACE DEFAULT "1970-01-01 00:00:00",
5151
cost BIGINT SUM DEFAULT "0",
5252
max_dwell INT MAX DEFAULT "0",
5353
)
54-
AGGREGATE KEY(user_id, load_dt, city)
54+
AGGREGATE KEY(user_id, load_date, city)
5555
DISTRIBUTED BY HASH(user_id) BUCKETS 10;
5656
```
5757

58-
In the example above, a fact table for user information and access behavior is defined, where `user_id`, `load_dt`, and `city` are used as Key columns for aggregation. During data import, the Key columns are aggregated into one row, and the Value columns are aggregated according to the specified aggregation types.
58+
In the example above, a fact table for user information and access behavior is defined, where `user_id`, `load_date`, and `city` are used as Key columns for aggregation. During data import, the Key columns are aggregated into one row, and the Value columns are aggregated according to the specified aggregation types.
5959

6060
The following types of dimension aggregation are supported in the Aggregate Key Table:
6161

@@ -185,4 +185,3 @@ mysql> select sum_merge(k2) , group_concat_merge(k3)from aggstate where k1 != 2;
185185
| 16 | c,b,a,d,c,b,a |
186186
+---------------+------------------------+
187187
```
188-

i18n/zh-CN/docusaurus-plugin-content-docs/current/table-design/data-model/aggregate.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ Doris 的聚合模型专为高效处理大规模数据查询中的聚合操作
3232
CREATE TABLE IF NOT EXISTS example_tbl_agg
3333
(
3434
user_id LARGEINT NOT NULL,
35-
load_dt DATE NOT NULL,
35+
load_date DATE NOT NULL,
3636
city VARCHAR(20),
3737
last_visit_dt DATETIME REPLACE DEFAULT "1970-01-01 00:00:00",
3838
cost BIGINT SUM DEFAULT "0",
3939
max_dwell INT MAX DEFAULT "0",
4040
)
41-
AGGREGATE KEY(user_id, load_dt, city)
41+
AGGREGATE KEY(user_id, load_date, city)
4242
DISTRIBUTED BY HASH(user_id) BUCKETS 10;
4343
```
4444

45-
上例中定义了用户信息和访问行为表,将 `user_id``load_dt``city` 作为 Key 列进行聚合。数据导入时,Key 列会聚合成一行,Value 列会按照指定的聚合类型进行维度聚合。
45+
上例中定义了用户信息和访问行为表,将 `user_id``load_date``city` 作为 Key 列进行聚合。数据导入时,Key 列会聚合成一行,Value 列会按照指定的聚合类型进行维度聚合。
4646

4747
在聚合表中支持以下类型的维度聚合:
4848

@@ -170,4 +170,3 @@ mysql> select sum_merge(k2) , group_concat_merge(k3)from aggstate where k1 != 2;
170170
| 16 | c,b,a,d,c,b,a |
171171
+---------------+------------------------+
172172
```
173-

i18n/zh-CN/docusaurus-plugin-content-docs/version-3.x/table-design/data-model/aggregate.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ Doris 的聚合表专为高效处理大规模数据查询中的聚合操作设
3232
CREATE TABLE IF NOT EXISTS example_tbl_agg
3333
(
3434
user_id LARGEINT NOT NULL,
35-
load_dt DATE NOT NULL,
35+
load_date DATE NOT NULL,
3636
city VARCHAR(20),
3737
last_visit_dt DATETIME REPLACE DEFAULT "1970-01-01 00:00:00",
3838
cost BIGINT SUM DEFAULT "0",
3939
max_dwell INT MAX DEFAULT "0",
4040
)
41-
AGGREGATE KEY(user_id, load_dt, city)
41+
AGGREGATE KEY(user_id, load_date, city)
4242
DISTRIBUTED BY HASH(user_id) BUCKETS 10;
4343
```
4444

4545

46-
上例中定义了用户信息和访问的行为事实表,将 `user_id``load_dt``city` 作为 Key 列进行聚合操作。数据导入时,Key 列会聚合成一行,Value 列会按照指定的聚合类型进行维度聚合。
46+
上例中定义了用户信息和访问的行为事实表,将 `user_id``load_date``city` 作为 Key 列进行聚合操作。数据导入时,Key 列会聚合成一行,Value 列会按照指定的聚合类型进行维度聚合。
4747

4848

4949
在聚合表中支持以下类型的维度聚合:
@@ -172,4 +172,3 @@ mysql> select sum_merge(k2) , group_concat_merge(k3)from aggstate where k1 != 2;
172172
| 16 | c,b,a,d,c,b,a |
173173
+---------------+------------------------+
174174
```
175-

i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/table-design/data-model/aggregate.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ Doris 的聚合模型专为高效处理大规模数据查询中的聚合操作
3232
CREATE TABLE IF NOT EXISTS example_tbl_agg
3333
(
3434
user_id LARGEINT NOT NULL,
35-
load_dt DATE NOT NULL,
35+
load_date DATE NOT NULL,
3636
city VARCHAR(20),
3737
last_visit_dt DATETIME REPLACE DEFAULT "1970-01-01 00:00:00",
3838
cost BIGINT SUM DEFAULT "0",
3939
max_dwell INT MAX DEFAULT "0",
4040
)
41-
AGGREGATE KEY(user_id, load_dt, city)
41+
AGGREGATE KEY(user_id, load_date, city)
4242
DISTRIBUTED BY HASH(user_id) BUCKETS 10;
4343
```
4444

45-
上例中定义了用户信息和访问行为表,将 `user_id``load_dt``city` 作为 Key 列进行聚合。数据导入时,Key 列会聚合成一行,Value 列会按照指定的聚合类型进行维度聚合。
45+
上例中定义了用户信息和访问行为表,将 `user_id``load_date``city` 作为 Key 列进行聚合。数据导入时,Key 列会聚合成一行,Value 列会按照指定的聚合类型进行维度聚合。
4646

4747
在聚合表中支持以下类型的维度聚合:
4848

@@ -170,4 +170,3 @@ mysql> select sum_merge(k2) , group_concat_merge(k3)from aggstate where k1 != 2;
170170
| 16 | c,b,a,d,c,b,a |
171171
+---------------+------------------------+
172172
```
173-

versioned_docs/version-3.x/table-design/data-model/aggregate.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ When creating a table, the **AGGREGATE KEY** keyword can be used to specify the
4545
CREATE TABLE IF NOT EXISTS example_tbl_agg
4646
(
4747
user_id LARGEINT NOT NULL,
48-
load_dt DATE NOT NULL,
48+
load_date DATE NOT NULL,
4949
city VARCHAR(20),
5050
last_visit_dt DATETIME REPLACE DEFAULT "1970-01-01 00:00:00",
5151
cost BIGINT SUM DEFAULT "0",
5252
max_dwell INT MAX DEFAULT "0",
5353
)
54-
AGGREGATE KEY(user_id, load_dt, city)
54+
AGGREGATE KEY(user_id, load_date, city)
5555
DISTRIBUTED BY HASH(user_id) BUCKETS 10;
5656
```
5757

58-
In the example above, a fact table for user information and access behavior is defined, where `user_id`, `load_dt`, and `city` are used as Key columns for aggregation. During data import, the Key columns are aggregated into one row, and the Value columns are aggregated according to the specified aggregation types.
58+
In the example above, a fact table for user information and access behavior is defined, where `user_id`, `load_date`, and `city` are used as Key columns for aggregation. During data import, the Key columns are aggregated into one row, and the Value columns are aggregated according to the specified aggregation types.
5959

6060
The following types of dimension aggregation are supported in the Aggregate Key Table:
6161

@@ -184,4 +184,3 @@ mysql> select sum_merge(k2) , group_concat_merge(k3)from aggstate where k1 != 2;
184184
| 16 | c,b,a,d,c,b,a |
185185
+---------------+------------------------+
186186
```
187-

versioned_docs/version-4.x/table-design/data-model/aggregate.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ When creating a table, the **AGGREGATE KEY** keyword can be used to specify the
4545
CREATE TABLE IF NOT EXISTS example_tbl_agg
4646
(
4747
user_id LARGEINT NOT NULL,
48-
load_dt DATE NOT NULL,
48+
load_date DATE NOT NULL,
4949
city VARCHAR(20),
5050
last_visit_dt DATETIME REPLACE DEFAULT "1970-01-01 00:00:00",
5151
cost BIGINT SUM DEFAULT "0",
5252
max_dwell INT MAX DEFAULT "0",
5353
)
54-
AGGREGATE KEY(user_id, load_dt, city)
54+
AGGREGATE KEY(user_id, load_date, city)
5555
DISTRIBUTED BY HASH(user_id) BUCKETS 10;
5656
```
5757

58-
In the example above, a fact table for user information and access behavior is defined, where `user_id`, `load_dt`, and `city` are used as Key columns for aggregation. During data import, the Key columns are aggregated into one row, and the Value columns are aggregated according to the specified aggregation types.
58+
In the example above, a fact table for user information and access behavior is defined, where `user_id`, `load_date`, and `city` are used as Key columns for aggregation. During data import, the Key columns are aggregated into one row, and the Value columns are aggregated according to the specified aggregation types.
5959

6060
The following types of dimension aggregation are supported in the Aggregate Key Table:
6161

@@ -185,4 +185,3 @@ mysql> select sum_merge(k2) , group_concat_merge(k3)from aggstate where k1 != 2;
185185
| 16 | c,b,a,d,c,b,a |
186186
+---------------+------------------------+
187187
```
188-

0 commit comments

Comments
 (0)