Skip to content

Commit

Permalink
[Doc] update docs about data change&transformation during loading (St…
Browse files Browse the repository at this point in the history
  • Loading branch information
amber-create authored Apr 7, 2024
1 parent 17defda commit 4a8736d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions docs/en/loading/Etl_in_loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ LOAD LABEL test_db.label1
COLUMNS TERMINATED BY ","
(user_id, user_gender, event_date, event_type)
)
WITH BROKER "broker1";
WITH BROKER;
```

> **NOTE**
Expand Down Expand Up @@ -260,7 +260,7 @@ LOAD LABEL test_db.label2
(user_id, user_gender, event_date, event_type)
WHERE event_type = 1
)
WITH BROKER "broker1";
WITH BROKER;
```

For detailed syntax and parameter descriptions, see [BROKER LOAD](../sql-reference/sql-statements/data-manipulation/BROKER_LOAD.md).
Expand Down Expand Up @@ -353,7 +353,7 @@ LOAD LABEL test_db.label3
(date)
SET(year=year(date), month=month(date), day=day(date))
)
WITH BROKER "broker1";
WITH BROKER;
```

> **NOTE**
Expand Down Expand Up @@ -435,7 +435,7 @@ LOAD LABEL test_db.label4
COLUMNS FROM PATH AS (date)
SET(event_date = date)
)
WITH BROKER "broker1";
WITH BROKER;
```

> **NOTE**
Expand Down
10 changes: 5 additions & 5 deletions docs/en/loading/Load_to_Primary_Key_tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Run a load job to update the record whose `id` is `101` in `example1.csv` to `ta
columns terminated by ","
format as "csv"
)
with broker "broker1";
WITH BROKER;
```
- If you want to include the `__op` field, run the following command:
Expand All @@ -171,7 +171,7 @@ Run a load job to update the record whose `id` is `101` in `example1.csv` to `ta
format as "csv"
set (__op = 'upsert')
)
with broker "broker1";
WITH BROKER;
```
- Run a Routine Load job.
Expand Down Expand Up @@ -306,7 +306,7 @@ Run a load job to delete the record whose `id` is `101` in `example2.csv` from `
format as "csv"
set (__op = 'delete')
)
with broker "broker1";
WITH BROKER;
```

- Run a Routine Load job.
Expand Down Expand Up @@ -423,7 +423,7 @@ Run a load job to delete the record whose `id` is `101` in `example3.csv` from `
(id, name, score, temp)
set (__op=temp)
)
with broker "broker1";
WITH BROKER;
```

- Run a Routine Load job:
Expand Down Expand Up @@ -542,7 +542,7 @@ Run a load to update the data in the two columns of `example4.csv` to the `id` a
format as "csv"
(id, name)
)
WITH BROKER "broker1"
WITH BROKER
PROPERTIES
(
"partial_update" = "true"
Expand Down
8 changes: 4 additions & 4 deletions docs/zh/loading/Etl_in_loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ LOAD LABEL test_db.label1
COLUMNS TERMINATED BY ","
(user_id, user_gender, event_date, event_type)
)
WITH BROKER
WITH BROKER;
```

> **说明**
Expand Down Expand Up @@ -259,7 +259,7 @@ LOAD LABEL test_db.label2
(user_id, user_gender, event_date, event_type)
WHERE event_type = 1
)
WITH BROKER
WITH BROKER;
```

有关详细的语法和参数介绍,请参见 [BROKER LOAD](../sql-reference/sql-statements/data-manipulation/BROKER_LOAD.md)。
Expand Down Expand Up @@ -352,7 +352,7 @@ LOAD LABEL test_db.label3
(date)
SET(year=year(date), month=month(date), day=day(date))
)
WITH BROKER
WITH BROKER;
```

> **说明**
Expand Down Expand Up @@ -432,7 +432,7 @@ LOAD LABEL test_db.label4
COLUMNS FROM PATH AS (date)
SET(event_date = date)
)
WITH BROKER
WITH BROKER;
```

> **说明**
Expand Down
8 changes: 4 additions & 4 deletions docs/zh/loading/Load_to_Primary_Key_tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ StarRocks 的主键表目前支持 UPSERT 和 DELETE 操作,不支持区分 IN
columns terminated by ","
format as "csv"
)
with broker
WITH BROKER;
```
- 添加 `__op` 字段:
Expand All @@ -169,7 +169,7 @@ StarRocks 的主键表目前支持 UPSERT 和 DELETE 操作,不支持区分 IN
format as "csv"
set (__op = 'upsert')
)
with broker
WITH BROKER;
```
- 通过 Routine Load 导入:
Expand Down Expand Up @@ -304,7 +304,7 @@ SELECT * FROM table1;
format as "csv"
set (__op = 'delete')
)
with broker
WITH BROKER;
```

- 通过 Routine Load 导入:
Expand Down Expand Up @@ -421,7 +421,7 @@ SELECT * FROM table2;
(id, name, score, temp)
set (__op=temp)
)
with broker
WITH BROKER;
```

- 通过 Routine Load 导入:
Expand Down

0 comments on commit 4a8736d

Please sign in to comment.