tiflow
tiflow copied to clipboard
ticdc: add the query message in the error info to help user know the problems
Now we only have the error message like '[CDC:ErrMySQLTxnError]MySQL txn error: Error 1054 (42S22): Unknown column 'remarks' in 'field list', when there are some problems for the changefeed.
However, the message doesn't include the query info, so it's hard for users to know why it happens, what table it happens.
To enhancement the user experience, we need to add query info in the error message.