You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2018/08/16 11:39:34 UTC
[GitHub] buptljy opened a new pull request #6568: [FLINK-10119][Kafka
Connector] - JsonRowDeserializeSchema deserialize message with error
buptljy opened a new pull request #6568: [FLINK-10119][Kafka Connector] - JsonRowDeserializeSchema deserialize message with error
URL: https://github.com/apache/flink/pull/6568
## What is the purpose of the change
The program will throw runtime exceptions and exit if json messages cannot be parsed correctly, which doesn't make sense to developers because it's very normal for them to receive dirty data from the source.
Now we offer two properties to deal with this kind of json data.
1. format.null-error-line: set all fields in the row null.
2. format.additional-error-field: set all fields in the row null and add an additional field to store the error messages which can be read by developers.
## Brief change log
* Add two format properties.
* Optimize JsonRowDeserializationSchema to deal with "error" data.
* Add unit tests.
## Verifying this change
Unit tests.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): no
- The public API, i.e., is any changed class annotated with `@Public(Evolving)`: no
- The serializers: no
- The runtime per-record code paths (performance sensitive): no
- Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: no
- The S3 file system connector: no
## Documentation
- Does this pull request introduce a new feature? no
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services