Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lightning: add a note for using separator #18630

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pepezzzz
Copy link
Contributor

how to handle encode kv error

First-time contributors' checklist

What is changed, added or deleted? (Required)

Which TiDB version(s) do your changes apply to? (Required)

Tips for choosing the affected version(s):

By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.

For details, see tips for choosing the affected versions (in Chinese).

  • master (the latest development version)
  • v8.4 (TiDB 8.4 versions)
  • v8.3 (TiDB 8.3 versions)
  • v8.2 (TiDB 8.2 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)
  • v6.1 (TiDB 6.1 versions)
  • v5.4 (TiDB 5.4 versions)
  • v5.3 (TiDB 5.3 versions)

What is the related PR or file link(s)?

  • This PR is translated from:
  • Other reference link(s):

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

how to handle encode kv error
Copy link

ti-chi-bot bot commented Sep 14, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign sunrunaway for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added missing-translation-status This PR does not have translation status info. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 14, 2024
Copy link

ti-chi-bot bot commented Sep 14, 2024

@kennytm: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@Oreoxmt Oreoxmt self-assigned this Sep 14, 2024
@Oreoxmt Oreoxmt self-requested a review September 14, 2024 06:01
@Oreoxmt Oreoxmt added type/enhancement The issue or PR belongs to an enhancement. translation/doing This PR’s assignee is translating this PR. needs-cherry-pick-release-6.5 Should cherry pick this PR to release-6.5 branch. needs-cherry-pick-release-7.1 Should cherry pick this PR to release-7.1 branch. needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. needs-cherry-pick-release-8.1 Should cherry pick this PR to release-8.1 branch. needs-cherry-pick-release-8.2 Should cherry pick this PR to release-8.2 branch. needs-cherry-pick-release-8.3 Should cherry pick this PR to release-8.3 branch. labels Sep 14, 2024
@ti-chi-bot ti-chi-bot bot removed the missing-translation-status This PR does not have translation status info. label Sep 14, 2024
@Oreoxmt Oreoxmt added missing-translation-status This PR does not have translation status info. area/tidb-lightning Indicates that the Issue or PR belongs to the area of TiDB Lightning. labels Sep 14, 2024
@Oreoxmt Oreoxmt changed the title Update tidb-lightning-data-source.md lightning: add a note for using separator Sep 14, 2024
@@ -136,6 +136,10 @@ trim-last-separator = false

另外,设置 `separator = '\n'` 表示使用两个字符 `\` + `n` 作为字符串定界符,而不是转义后的换行符 `\n`。

> **注意:**
>
> 如果 CSV 格式配置错误,TiDB Lightning 错误退出并提示 `encode kv error in file db.table.serialno.csv:0 at offset 2529671`。用 vim 打开 csv 文件,命令模式下 `:goto 2529671` 可以定位到编码错误的位置。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> 如果 CSV 格式配置错误,TiDB Lightning 错误退出并提示 `encode kv error in file db.table.serialno.csv:0 at offset 2529671` vim 打开 csv 文件,命令模式下 `:goto 2529671` 可以定位到编码错误的位置
> 如果 CSV 格式配置错误,TiDB Lightning 将退出并显示错误消息 `encode kv error in file db.table.serialno.csv:0 at offset 2529671`要定位错误,你可以使用 vim 打开 CSV 文件,并在命令模式下输入 `:goto 2529671`。更多信息,请参考[错误报告](/tidb-lightning/tidb-lightning-error-resolution.md#错误报告)

@@ -146,7 +150,7 @@ trim-last-separator = false

* CSV 用 `','`
* TSV 用 `"\t"`
* "\u0001" 表示使用 ASCII 字符 0x01
* "\u0001" 表示使用 ASCII 字符 0x01,即 SOH 控制字符,常用于 HIVE 表的导出时的分隔符。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* "\u0001" 表示使用 ASCII 字符 0x01,即 SOH 控制字符,常用于 HIVE 表的导出时的分隔符。
* "\u0001" 表示使用 ASCII 字符 0x01,即 SOH 控制字符,常用于导出 Hive 数据。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tidb-lightning Indicates that the Issue or PR belongs to the area of TiDB Lightning. missing-translation-status This PR does not have translation status info. needs-cherry-pick-release-6.5 Should cherry pick this PR to release-6.5 branch. needs-cherry-pick-release-7.1 Should cherry pick this PR to release-7.1 branch. needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. needs-cherry-pick-release-8.1 Should cherry pick this PR to release-8.1 branch. needs-cherry-pick-release-8.2 Should cherry pick this PR to release-8.2 branch. needs-cherry-pick-release-8.3 Should cherry pick this PR to release-8.3 branch. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. translation/doing This PR’s assignee is translating this PR. type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants