[
https://issues.apache.org/jira/browse/FLINK-19873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17223391#comment-17223391
]
Fangliang Liu commented on FLINK-19873:
---------------------------------------
[~jark] the type named 'CREATE' will be caught by the following code .
{code:java}
else {
if (!ignoreParseErrors) {
throw new IOException(format(
"Unknown \"type\" value \"%s\". The Canal JSON message is '%s'", type,
new String(message)));
}
}
{code}
if ignoreParseErrors is set to true ,the 'CREATE' message will be ignored.
Otherwise the exception you see will be thrown.
Do you think this needs to be optimized?Always ignore 'CREATE' type?
> Skip DDL change events for Canal data
> -------------------------------------
>
> Key: FLINK-19873
> URL: https://issues.apache.org/jira/browse/FLINK-19873
> Project: Flink
> Issue Type: Sub-task
> Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile), Table
> SQL / Ecosystem
> Reporter: Jark Wu
> Priority: Major
> Fix For: 1.12.0
>
> Attachments: image-2020-10-29-15-11-03-514.png,
> image-2020-10-29-15-11-16-137.png
>
>
> Currently, "canal-json" can't skip DDL change event and will fail the job.
> This is not very friendly for users.
> !image-2020-10-29-15-11-03-514.png!
> !image-2020-10-29-15-11-16-137.png!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)