Skip to content

Commit

Permalink
[Doc] Fix wrong description about transaction stream load label requi…
Browse files Browse the repository at this point in the history
…rement (backport #48548) (#48557)

Co-authored-by: PengFei Li <[email protected]>
  • Loading branch information
mergify[bot] and banmoy committed Jul 18, 2024
1 parent 82e5fa1 commit 833c723
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en/loading/Stream_Load_transaction_interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The Stream Load transaction interface has the following limits:
## Precautions

- If the `/api/transaction/begin`, `/api/transaction/load`, or `/api/transaction/prepare` operation that you have called returns errors, the transaction fails and is automatically rolled back.
- When calling the `/api/transaction/begin` operation to start a new transaction, you have the option to specify a label. If you do not specify a label, StarRocks will generate a label for the transaction. Note that the subsequent `/api/transaction/load`, `/api/transaction/prepare`, and `/api/transaction/commit` operations must use the same label as the `/api/transaction/begin` operation.
- When calling the `/api/transaction/begin` operation to start a new transaction, you must specify a label. Note that the subsequent `/api/transaction/load`, `/api/transaction/prepare`, and `/api/transaction/commit` operations must use the same label as the `/api/transaction/begin` operation.
- If you the label of a previous transaction to call the `/api/transaction/begin` operation to start a new transaction, the previous transaction will fail and be rolled back.
- The default column separator and row delimiter that StarRocks supports for CSV-formatted data are `\t` and `\n`. If your data file does not use the default column separator or row delimiter, you must use `"column_separator: <column_separator>"` or `"row_delimiter: <row_delimiter>"` to specify the column separator or row delimiter that is actually used in your data file when calling the `/api/transaction/load` operation.

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/loading/Stream_Load_transaction_interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Stream Load 事务接口具有如下优势:
## 注意事项

- 使用 Stream Load 事务接口导入数据的过程中,注意 `/api/transaction/begin``/api/transaction/load``/api/transaction/prepare` 接口报错后,事务将失败并自动回滚。
- 在调用 `/api/transaction/begin` 接口开启事务时,您可以选择指定或者不指定标签 (Label)。如果您不指定标签,StarRocks 会自动为事务生成一个标签。其后的 `/api/transaction/load``/api/transaction/prepare``/api/transaction/commit` 三个接口中,必须使用与 `/api/transaction/begin` 接口中相同的标签。
- 在调用 `/api/transaction/begin` 接口开启事务时,您必须指定标签 (Label)其后的 `/api/transaction/load``/api/transaction/prepare``/api/transaction/commit` 三个接口中,必须使用与 `/api/transaction/begin` 接口中相同的标签。
- 重复调用标签相同的 `/api/transaction/begin` 接口,会导致前面使用相同标签已开启的事务失败并回滚。
- StarRocks支持导入的 CSV 格式数据默认的列分隔符是 `\t`,默认的行分隔符是 `\n`。如果源数据文件中的列分隔符和行分隔符不是 `\t``\n`,则在调用 `/api/transaction/load` 接口时必须通过 `"column_separator: <column_separator>"``"row_delimiter: <row_delimiter>"` 指定行分隔符和列分隔符。

Expand Down

0 comments on commit 833c723

Please sign in to comment.