You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Xiao Cai (Jira)" <ji...@apache.org> on 2020/12/17 06:39:00 UTC
[jira] [Comment Edited] (FLINK-19880) flink-json The validation and
incoming parameters do not match
[ https://issues.apache.org/jira/browse/FLINK-19880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17250826#comment-17250826 ]
Xiao Cai edited comment on FLINK-19880 at 12/17/20, 6:38 AM:
-------------------------------------------------------------
Hi [~jark] ,I found that there are two places to fix, one is to add support for FORMAT_IGNORE_PARSE_ERRORS as you said, but also need to handle the return value when parsing fails in JsonRowDeserializationSchema#deserialize, which currently returns null, so that the processing in source will be more in line with expectations, so, I intend to return {} instead null.
Please assign this issue to me.
Best, xiao cai
was (Author: cxiiiiiii):
Hi [~jark] ,I found that there are two places to fix, one is to add support for FORMAT_IGNORE_PARSE_ERRORS as you said, but also need to handle the return value when parsing fails in JsonRowDeserializationSchema#deserialize, which currently returns null, so that the processing in source will be more in line with expectations.
Please assign this issue to me.
Best, xiao cai
> 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
> 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)