You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.
Here, if trim-last-sep is enabled, current logic may trim more than one seps, but tidb backend encoder won't fill the missing fields with default values which cause column count mismatch in the generated statement.
The text was updated successfully, but these errors were encountered:
Bug Report
Please answer these questions before submitting your issue. Thanks!
Use lightning tidb backend to restore a csv file.
tidb-lightning.toml:
target table:
source file:
test.t.0.csv
:Error log:
Root cause analysis:
tidb-lightning/lightning/mydump/csv_parser.go
Lines 532 to 537 in 8510040
Here, if
trim-last-sep
is enabled, current logic may trim more than one seps, but tidb backend encoder won't fill the missing fields with default values which cause column count mismatch in the generated statement.The text was updated successfully, but these errors were encountered: