-
Notifications
You must be signed in to change notification settings - Fork 288
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
maxwell: fix some bug and refine output #1129
Conversation
… old data structure output
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
|
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
…dreams/ticdc into fix_base64_decode_to_maxwell
cdc/sink/codec/maxwell.go
Outdated
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 | ||
} |
There was a problem hiding this comment.
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?
…dreams/ticdc into fix_base64_decode_to_maxwell
…dreams/ticdc into fix_base64_decode_to_maxwell
LGTM |
/merge |
/run-all-tests |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #1173 |
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