From fe778b79355e89064cf46e064194b1e7b996b472 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 24 Jul 2024 14:08:36 +0800 Subject: [PATCH] [Doc] Fix wrong description about transaction stream load label requirement (backport #48548) (#48553) Co-authored-by: PengFei Li --- docs/en/loading/Stream_Load_transaction_interface.md | 2 +- docs/zh/loading/Stream_Load_transaction_interface.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/loading/Stream_Load_transaction_interface.md b/docs/en/loading/Stream_Load_transaction_interface.md index 411aff0c1334c..36c3e086915c4 100644 --- a/docs/en/loading/Stream_Load_transaction_interface.md +++ b/docs/en/loading/Stream_Load_transaction_interface.md @@ -80,7 +80,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: "` or `"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. diff --git a/docs/zh/loading/Stream_Load_transaction_interface.md b/docs/zh/loading/Stream_Load_transaction_interface.md index a88a9cf542b8d..881615abb8b8d 100644 --- a/docs/zh/loading/Stream_Load_transaction_interface.md +++ b/docs/zh/loading/Stream_Load_transaction_interface.md @@ -80,7 +80,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: "` 和 `"row_delimiter: "` 指定行分隔符和列分隔符。