pingcap / pingcap/tidb

Lightning import failed for unterminated quoted field when using ks3

Open
#46,623 0 comments 0 reactions 0 assignees View on GitHub
affects-5.3 affects-5.4 affects-6.1 affects-6.5 affects-7.1 component/lightning severity/moderate type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Bug Report

Please answer these questions before submitting your issue. Thanks!

### 1. Minimal reproduce step (Required)

~/.tiup/components/tidb-lightning/v7.4.0-alpha-nightly-20230901/tidb-lightning -tidb-host "xx" -pd-urls "xx:2379" -d "s3://bucket/xxx?access-key=xxx&secret-access-key=xxx&endpoint=http%3a%2f%2fks3-cn-beijing-internal.ksyuncs.com&force-path-style=false®ion=Beijing&provider=ks" -c lightning.toml
Verbose debug logs will be written to /tmp/lightning.log.2023-09-04T12.29.31+0800

tidb lightning encountered error: [Lightning:Restore:ErrEncodeKV]encode kv error in file airbnbsim.t1.10498.csv:0 at offset 147500006: syntax error: unterminated quoted field
[lightning.log](https://github.com/pingcap/tidb/files/12511618/lightning.log)

### 2. What did you expect to see? (Required)

### 3. What did you see instead (Required)

### 4. What is your TiDB version? (Required)

master

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.