Skip to content

Commit

Permalink
[Doc] Fix #53995, #53996 and #53997 (backport #54046) (#54542)
Browse files Browse the repository at this point in the history
Signed-off-by: 絵空事スピリット <[email protected]>
Co-authored-by: Cheng Ding <[email protected]>
Co-authored-by: 絵空事スピリット <[email protected]>
  • Loading branch information
3 people authored Dec 31, 2024
1 parent 45ea92b commit e77747f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This operation requires the SYSTEM-level OPERATE privilege. You can follow the i

```sql
ADMIN SET TABLE <table_name> PARTITION ( <partition_name> | <partition_id> )
TO VERSION <version>
VERSION TO <version>
```

## Parameters
Expand All @@ -35,17 +35,17 @@ TO VERSION <version>
1. Set the version of the non-partitioned table `t1` to `10`.

```sql
ADMIN SET TABLE t1 PARTITION(t1) TO VERSION 10;
ADMIN SET TABLE t1 PARTITION(t1) VERSION TO 10;
```

2. Set the version of partition `p1` in table `t2` to `10`.

```sql
ADMIN SET TABLE t2 PARTITION(p1) TO VERSION 10;
ADMIN SET TABLE t2 PARTITION(p1) VERSION TO 10;
```

3. Set the version of the partition whose ID is `123456` to `10`. `t3` is a table with the random bucketing strategy.

```sql
ADMIN SET TABLE t3 PARTITION('123456') TO VERSION 10;
ADMIN SET TABLE t3 PARTITION('123456') VERSION TO 10;
```
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Shows the execution information of load tasks within a Routine Load job.
```SQL
SHOW ROUTINE LOAD TASK
[ FROM <db_name>]
[ WHERE JobName = <job_name> ]
WHERE JobName = <job_name>
```

:::note
Expand All @@ -35,7 +35,7 @@ You can add the `\G` option to the statement (such as `SHOW ROUTINE LOAD TASK WH
| **Parameter** | **Required** | **Description** |
| ------------- | ------------ | ----------------------------------------------------------- |
| db_name | No | The name of the database to which the Routine Load job belongs. |
| JobName | No | The name of the Routine Load job. |
| JobName | Yes | The name of the Routine Load job. |

## Output

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ displayed_sidebar: docs

```sql
ADMIN SET TABLE <table_name> PARTITION ( <partition_name> | <partition_id> )
TO VERSION <version>
VERSION TO <version>
```

## 参数说明
Expand All @@ -35,17 +35,17 @@ TO VERSION <version>
1. 将非分区表 `t1` 的版本设置为 `10`

```sql
ADMIN SET TABLE t1 PARTITION(t1) TO VERSION 10;
ADMIN SET TABLE t1 PARTITION(t1) VERSION TO 10;
```

2. 将表 `t2` 中分区 `p1` 的版本设置为 `10`

```sql
ADMIN SET TABLE t2 PARTITION(p1) TO VERSION 10;
ADMIN SET TABLE t2 PARTITION(p1) VERSION TO 10;
```

3. 将 ID 为 `123456` 的分区的版本设置为 `10``t3` 为采用随机分桶策略的表。

```sql
ADMIN SET TABLE t3 PARTITION('123456') TO VERSION 10;
ADMIN SET TABLE t3 PARTITION('123456') VERSION TO 10;
```
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RoutineLoadPrivNote from '../../../../_assets/commonMarkdown/RoutineLoadP
```SQL
SHOW ROUTINE LOAD TASK
[FROM <db_name>]
[ WHERE JobName = <job_name> ]
WHERE JobName = <job_name>
```

:::note
Expand All @@ -37,7 +37,7 @@ SHOW ROUTINE LOAD TASK
| **参数** | **必选** | **说明** |
| -------- | -------- | ------------------------------------- |
| db_name || Routine Load 导入作业所属数据库名称。 |
| JobName | | Routine Load 导入作业名称。 |
| JobName | | Routine Load 导入作业名称。 |

## 返回结果说明

Expand Down

0 comments on commit e77747f

Please sign in to comment.