Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

syncer: fix wrong conversion for mysql BIT #876

Merged
merged 12 commits into from
Aug 12, 2020
Merged

Conversation

lance6716
Copy link
Collaborator

@lance6716 lance6716 commented Aug 7, 2020

What problem does this PR solve?

close #874

What is changed and how it works?

BIT type support up to 64 bit so returned int64 in binlog (I guess), don't need to convert to string

Need to know why choose convert to string orginally 🤔

Check List

Tests

  • Unit test
  • Integration test

Code changes

Side effects

Related changes

  • Need to cherry-pick to the release branch

@lance6716 lance6716 added priority/normal Minor change, requires approval from ≥1 primary reviewer status/WIP This PR is still work in progress type/bug-fix Bug fix labels Aug 7, 2020
@lance6716 lance6716 added the needs-cherry-pick-release-1.0 This PR should be cherry-picked to release-1.0. Remove this label after cherry-picked to release-1.0 label Aug 10, 2020
@lance6716
Copy link
Collaborator Author

this change was introduced in https://github.com/pingcap/tidb-enterprise-tools/pull/5/commits/300bfa154021daec805827c7410d0233e6d33306 , seems avoiding overflow. But now it won't overflow.

BTW, jenkins can't open now

@lance6716
Copy link
Collaborator Author

/run-all-tests

@codecov
Copy link

codecov bot commented Aug 11, 2020

Codecov Report

Merging #876 into master will decrease coverage by 1.2295%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##             master       #876        +/-   ##
================================================
- Coverage   57.0981%   55.8686%   -1.2296%     
================================================
  Files           205        221        +16     
  Lines         21104      23106      +2002     
================================================
+ Hits          12050      12909       +859     
- Misses         7890       8880       +990     
- Partials       1164       1317       +153     

@lance6716 lance6716 added status/PTAL This PR is ready for review. Add this label back after committing new changes and removed status/WIP This PR is still work in progress labels Aug 11, 2020
Copy link
Member

@csuzhangxc csuzhangxc left a comment

Choose a reason for hiding this comment

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

LGTM

@csuzhangxc csuzhangxc added status/LGT1 One reviewer already commented LGTM and removed status/PTAL This PR is ready for review. Add this label back after committing new changes labels Aug 11, 2020
@csuzhangxc csuzhangxc added this to the v2.0.0 RC milestone Aug 11, 2020
Copy link
Collaborator

@GMHDBJD GMHDBJD left a comment

Choose a reason for hiding this comment

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

LGTM

@GMHDBJD GMHDBJD added status/LGT2 Two reviewers already commented LGTM, ready for merge and removed status/LGT1 One reviewer already commented LGTM labels Aug 12, 2020
@lance6716 lance6716 merged commit df946b7 into pingcap:master Aug 12, 2020
@lance6716 lance6716 deleted the fix-bit branch August 12, 2020 04:59
@ti-srebot
Copy link

cherry pick to release-1.0 failed

lance6716 added a commit to lance6716/dm that referenced this pull request Aug 12, 2020
@lance6716 lance6716 added already-cherry-pick-1.0 The related PR is already cherry-picked to release-1.0. Add this label once the PR is cherry-picked and removed needs-cherry-pick-release-1.0 This PR should be cherry-picked to release-1.0. Remove this label after cherry-picked to release-1.0 labels Aug 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
already-cherry-pick-1.0 The related PR is already cherry-picked to release-1.0. Add this label once the PR is cherry-picked priority/normal Minor change, requires approval from ≥1 primary reviewer status/LGT2 Two reviewers already commented LGTM, ready for merge type/bug-fix Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Syncer convert binlog event to sql bit column error
4 participants