Skip to content
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

maxwell: fix some bug and refine output #1129

Merged
merged 21 commits into from
Dec 7, 2020

Conversation

shldreams
Copy link
Contributor

@shldreams shldreams commented Nov 26, 2020

What problem does this PR solve?

Fix maxwell base64 data output, fix maxwell output tso to unix timestamp, fix old data structure output

Release note

  • No release note

@sre-bot
Copy link

sre-bot commented Nov 26, 2020

@shldreams
Copy link
Contributor Author

What problem does this PR solve?

Fix maxwell base64 data output, fix maxwell output tso to unix timestamp, fix old data structure output

@shldreams shldreams closed this Nov 26, 2020
@shldreams shldreams reopened this Nov 26, 2020
@sre-bot
Copy link

sre-bot commented Nov 26, 2020

@zier-one zier-one added this to the v4.0.10 milestone Nov 27, 2020
@zier-one zier-one added type/bugfix This PR fixes a bug. component/sink Sink component. status/ptal Could you please take a look? needs-cherry-pick-release-4.0 Should cherry pick this PR to release-4.0 branch. labels Nov 27, 2020
Comment on lines 108 to 119
switch v.Type {
case mysql.TypeString, mysql.TypeVarString, mysql.TypeVarchar, mysql.TypeTinyBlob, mysql.TypeMediumBlob, mysql.TypeLongBlob, mysql.TypeBlob:
if v.Value == nil {
value.Data[v.Name] = nil
} else if v.Flag.IsBinary() {
value.Data[v.Name] = v.Value
} else {
value.Data[v.Name] = string(v.Value.([]byte))
}
default:
value.Data[v.Name] = v.Value
}
Copy link
Contributor

Choose a reason for hiding this comment

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

could you abstract repetitive logic to a function?

@zier-one zier-one changed the title Fix base64 data output, fix maxwell output tso to unix timestamp, fix… maxwell: fix some bug and refine output Dec 1, 2020
@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Dec 7, 2020
@liuzix
Copy link
Contributor

liuzix commented Dec 7, 2020

LGTM

@ti-srebot ti-srebot removed the status/LGT1 Indicates that a PR has LGTM 1. label Dec 7, 2020
@ti-srebot ti-srebot added the status/LGT2 Indicates that a PR has LGTM 2. label Dec 7, 2020
@zier-one
Copy link
Contributor

zier-one commented Dec 7, 2020

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Dec 7, 2020
@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit 5efab33 into pingcap:master Dec 7, 2020
ti-srebot pushed a commit to ti-srebot/ticdc that referenced this pull request Dec 7, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 in PR #1173

ti-srebot added a commit that referenced this pull request Dec 22, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/sink Sink component. needs-cherry-pick-release-4.0 Should cherry pick this PR to release-4.0 branch. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. status/ptal Could you please take a look? type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants