-
Notifications
You must be signed in to change notification settings - Fork 287
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
ticdc/owner: Fix ddl special comment syntax error (#3845) #3982
ticdc/owner: Fix ddl special comment syntax error (#3845) #3982
Conversation
[REVIEW NOTIFICATION] This pull request has not been approved. To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/run-all-tests |
/run-all-tests |
go.mod
Outdated
github.com/pingcap/parser v0.0.0-20210427084954-8e8ed7927bde | ||
github.com/pingcap/tidb v1.1.0-beta.0.20210508083641-8ed1d9d4a798 | ||
github.com/pingcap/tidb-tools v4.0.9-0.20201127090955-2707c97b3853+incompatible | ||
github.com/pingcap/tidb/parser v0.0.0-20220119053344-a4e8ed59bdfd |
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.
Why not keep using pingcap/parser above at line 46?
/run-all-tests |
1 similar comment
/run-all-tests |
/run-integration-tests |
Codecov Report
@@ Coverage Diff @@
## release-5.1 #3982 +/- ##
================================================
Coverage ? 62.1569%
================================================
Files ? 161
Lines ? 16978
Branches ? 0
================================================
Hits ? 10553
Misses ? 5519
Partials ? 906 |
/run-all-tests |
/run-kafka-integration-test |
go.mod
Outdated
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 | ||
google.golang.org/grpc v1.27.1 | ||
google.golang.org/grpc v1.29.1 |
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.
google.golang.org/grpc v1.29.1 | |
google.golang.org/grpc v1.27.1 |
Could you keep 1.27.1?
proto/EntryProtocol.proto
Outdated
@@ -210,7 +210,7 @@ enum EntryType{ | |||
ROWDATA = 2; | |||
TRANSACTIONEND = 3; | |||
/** 心跳类型,内部使用,外部暂不可见,可忽略 **/ | |||
HEARTBEAT = 4; | |||
ENTRYHEARTBEAT = 4; |
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.
ENTRYHEARTBEAT = 4; | |
HEARTBEAT = 4; |
It looks like a breaking change for users.
"github.com/tikv/client-go/v2/oracle" | ||
"github.com/tikv/client-go/v2/tikv" | ||
"github.com/tikv/client-go/v2/tikvrpc" |
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 keep use tidb/store/tikv/...
? TiDB release-5.1 has not switched to tikv/client-go
yet.
0775b69
to
c1661df
Compare
/run-unit-test |
c1661df
to
8957631
Compare
This is an automated cherry-pick of #3845
What problem does this PR solve?
close https://github.com/pingcap/ticdc/issues/3755
What is changed and how it works?
not use regex to parse and add special TiDB comments, If a DDL already has special comment like
/*!90000 SHARD_ROW_ID_BITS=4 PRE_SPLIT_REGIONS=3 */
, it wil translate that DDL to/*!90000 /*T! SHARD_ROW_ID_BITS=4 PRE_SPLIT_REGIONS=3 */ */
, TiDB will throw a syntax error.this PR use the TiDB SQL parser to parse the SQL and the Restore it with
format.RestoreStringSingleQuotes|format.RestoreNameBackQuotes|format.RestoreKeyWordUppercase|format.RestoreTiDBSpecialComment
flagCheck List
Tests
Code changes
Side effects
Related changes
Release note