[
https://issues.apache.org/jira/browse/FLINK-19880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17251068#comment-17251068
]
Xiao Cai edited comment on FLINK-19880 at 12/17/20, 1:10 PM:
-------------------------------------------------------------
hi [~jark] , I looked carefully at the KafkaDeserializationSchema#deserialize
in the latest master branch that makes a null determination on the deserialized
message and only handles non-null values. But in 1.11.x,
KafkaDeserializationSchema#deserialize does not handle non-null, so when
JsonRowDeserializationSchema#deserialize returns null, kafka will report an
error.
So I think it's ok to return null in the latest master branch.
was (Author: cxiiiiiii):
hi [~jark] , I looked carefully at the KafkaDeserializationSchema#deserialize
in the latest master branch that makes a null determination on the deserialized
message and only handles non-null values. But in 1.11.x,
KafkaDeserializationSchema#deserialize does not handle non-null, so when
JsonRowDeserializationSchema#deserialize returns null, kafka will report an
error.
So I think it's ok to return null
> flink-json The validation and incoming parameters do not match
> --------------------------------------------------------------
>
> Key: FLINK-19880
> URL: https://issues.apache.org/jira/browse/FLINK-19880
> Project: Flink
> Issue Type: Bug
> Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile), Table
> SQL / Ecosystem
> Affects Versions: 1.11.2
> Reporter: MingZhangOk
> Assignee: Xiao Cai
> Priority: Major
> Labels: starter
> Fix For: 1.11.2
>
> Original Estimate: 1m
> Remaining Estimate: 1m
>
> when I call
> new Json(). ignoreParseErrors (true)
> When used to ignore exceptions, the following exceptions always occur:
> org.apache.flink. formats.json.JsonRowFormatFactory
> Unsupported property keys:
> format.ignore-parse-errors
> Modify this line of code to solve my problem .
> Add a line of code after 52 lines in this
> class(org.apache.flink.formats.json.JsonRowFormatFactory):
> properties.add(JsonValidator.FORMAT_IGNORE_PARSE_ERRORS);
> First time to participate in flink submission code, do not understand what
> rules, directly submitted, sorry
--
This message was sent by Atlassian Jira
(v8.3.4#803005)