Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

mydumper: do not remove more than 1 sep if trim last sep is true #535

Merged
merged 2 commits into from
Dec 29, 2020

Conversation

glorv
Copy link
Contributor

@glorv glorv commented Dec 25, 2020

What problem does this PR solve?

close #532

What is changed and how it works?

Remove only the last sep if trim-last-sep is true

Check List

Tests

  • Unit test
  • Integration test
  • No code

Side effects

Related changes

Release Note

  • Fix the bug that lightning will trim all the empty sep when trim-last-sep is true, which causes "column count mismatch" in tidb backend

@glorv
Copy link
Contributor Author

glorv commented Dec 25, 2020

/run-all-tests

Copy link
Collaborator

@kennytm kennytm left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot added the status/LGT1 One reviewer already commented LGTM (LGTM1) label Dec 25, 2020
@lance6716
Copy link
Contributor

/lgtm

@ti-srebot ti-srebot removed the status/LGT1 One reviewer already commented LGTM (LGTM1) label Dec 29, 2020
@ti-srebot ti-srebot added the status/LGT2 Two reviewers already commented LGTM, ready for merge (LGTM2) label Dec 29, 2020
@glorv
Copy link
Contributor Author

glorv commented Dec 29, 2020

/merge

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@glorv merge failed.

@glorv
Copy link
Contributor Author

glorv commented Dec 29, 2020

/merge

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@glorv merge failed.

@glorv
Copy link
Contributor Author

glorv commented Dec 29, 2020

waiting for TiFlash to update version for the master branch
error log in tiflash-proxy.log:

[2020/12/29 15:37:56.843 +08:00] [ERROR] [util.rs:323] ["request failed"] [err_code=KV:PD:gRPC] [err="Grpc(RpcFailure(RpcStatus { status: 2-UNKNOWN, details: Some(\"version should compatible with version  5.0.0-rc.x, got 4.1.0-rc-44-gccf4c9510\") }))"]

@glorv
Copy link
Contributor Author

glorv commented Dec 29, 2020

/run-all-tests

@glorv
Copy link
Contributor Author

glorv commented Dec 29, 2020

/merge

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit 1f02abc into master Dec 29, 2020
@glorv glorv deleted the fix-trim-last branch December 29, 2020 09:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CanMerge status/LGT2 Two reviewers already commented LGTM, ready for merge (LGTM2)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lightning tidb backend failed to restore csv files when trim-last-separator is true
4 participants