Skip to content

Commit

Permalink
[Doc] Fix #53995, #53996 and #53997 (backport #54046) (#54540)
Browse files Browse the repository at this point in the history
Co-authored-by: Cheng Ding <[email protected]>
  • Loading branch information
mergify[bot] and IrisesD authored Dec 31, 2024
1 parent c246034 commit 32ce14e
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 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 @@ -7,7 +7,7 @@ Retries to load all data files or a specific data file in a pipe. This command i
## Syntax

```SQL
ALTER PIPE [ IF EXISTS ] <pipe_name> { RETRY ALL | RETRY FILE '<file_name>' }
ALTER PIPE <pipe_name> { RETRY ALL | RETRY FILE '<file_name>' }
```

## Parameters
Expand All @@ -25,13 +25,13 @@ The storage path of the data file that you want to retry to load. Note that you
The following example retries to load all data files in a pipe named `user_behavior_replica`:

```SQL
ALTER PIPE [ IF EXISTS ] user_behavior_replica RETRY ALL;
ALTER PIPE user_behavior_replica RETRY ALL;
```

The following example retries to load the data file `s3://starrocks-examples/user_behavior_ten_million_rows.parquet` in a pipe named `user_behavior_replica`:

```SQL
ALTER PIPE [ IF EXISTS ] user_behavior_replica RETRY FILE 's3://starrocks-examples/user_behavior_ten_million_rows.parquet';
ALTER PIPE user_behavior_replica RETRY FILE 's3://starrocks-examples/user_behavior_ten_million_rows.parquet';
```

## References
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This command is supported from v3.2 onwards.
## Syntax

```SQL
ALTER PIPE [ IF EXISTS ] <pipe_name> { SUSPEND | RESUME [ IF SUSPENDED ] }
ALTER PIPE <pipe_name> { SUSPEND | RESUME [ IF SUSPENDED ] }
```

## Parameters
Expand Down
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 @@ -7,7 +7,7 @@
## 语法

```SQL
ALTER PIPE [ IF EXISTS ] <pipe_name> { RETRY ALL | RETRY FILE '<file_name>' }
ALTER PIPE <pipe_name> { RETRY ALL | RETRY FILE '<file_name>' }
```

## 参数说明
Expand All @@ -25,13 +25,13 @@ Pipe 的名称。
重试导入名为 `user_behavior_replica` 的 Pipe 中所有数据文件:

```SQL
ALTER PIPE [ IF EXISTS ] user_behavior_replica RETRY ALL;
ALTER PIPE user_behavior_replica RETRY ALL;
```

重试导入名为 `user_behavior_replica` 的 Pipe 中的数据文件 `s3://starrocks-examples/user_behavior_ten_million_rows.parquet`

```SQL
ALTER PIPE [ IF EXISTS ] user_behavior_replica RETRY FILE 's3://starrocks-examples/user_behavior_ten_million_rows.parquet';
ALTER PIPE user_behavior_replica RETRY FILE 's3://starrocks-examples/user_behavior_ten_million_rows.parquet';
```

## 相关文档
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ displayed_sidebar: docs
## 语法

```SQL
ALTER PIPE [ IF EXISTS ] <pipe_name> { SUSPEND | RESUME [ IF SUSPENDED ] }
ALTER PIPE <pipe_name> { SUSPEND | RESUME [ IF SUSPENDED ] }
```

## 参数说明
Expand Down
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 32ce14e

Please sign in to comment.