-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
base: master
Are you sure you want to change the base?
Conversation
how to handle encode kv error
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
@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. |
@@ -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` 可以定位到编码错误的位置。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> 如果 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 表的导出时的分隔符。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* "\u0001" 表示使用 ASCII 字符 0x01,即 SOH 控制字符,常用于 HIVE 表的导出时的分隔符。 | |
* "\u0001" 表示使用 ASCII 字符 0x01,即 SOH 控制字符,常用于导出 Hive 数据。 |
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).
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?