[
https://issues.apache.org/jira/browse/NIFI-8342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dorian Bugeja updated NIFI-8342:
--------------------------------
Description:
When performing a SplitJson on an array of complex json files where the first
record has a longer content/text field
{code:java}
[ {
"brand_id" : null,
"table_name" : "xx",
"attribute" : "x",
"category" : "x",
"include" : null,
"exclude" : null
}, {
"brand_id" : null,
"table_name" : "x",
"attribute" : "x",
"category" : "x",
"include" : null,
"exclude" : null
} ]{code}
an invalid json is generated (content looks file, but subsequent
EvaluationJsonPath is unable to parse the object). If first table_name value is
set to x, no issue is encountered
!image-2021-03-18-17-35-20-406.png|width=917,height=199!
was:
When performing a SplitJson on an array of complex json files where the first
record has a longer content/text field
[ {
"brand_id" : null,
"table_name" : "xx",
"attribute" : "x",
"category" : "x",
"include" : null,
"exclude" : null
}, {
"brand_id" : null,
"table_name" : "x",
"attribute" : "x",
"category" : "x",
"include" : null,
"exclude" : null
} ]
an invalid json is generated (content looks file, but subsequent
EvaluationJsonPath is unable to parse the object)
!image-2021-03-18-17-35-20-406.png|width=917,height=199!
> SplitJson corrupting flowfile content
> -------------------------------------
>
> Key: NIFI-8342
> URL: https://issues.apache.org/jira/browse/NIFI-8342
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.13.1
> Reporter: Dorian Bugeja
> Priority: Major
> Attachments: SplitJson_corrupted_output.xml,
> image-2021-03-18-17-35-20-406.png
>
>
> When performing a SplitJson on an array of complex json files where the first
> record has a longer content/text field
> {code:java}
> [ {
> "brand_id" : null,
> "table_name" : "xx",
> "attribute" : "x",
> "category" : "x",
> "include" : null,
> "exclude" : null
> }, {
> "brand_id" : null,
> "table_name" : "x",
> "attribute" : "x",
> "category" : "x",
> "include" : null,
> "exclude" : null
> } ]{code}
> an invalid json is generated (content looks file, but subsequent
> EvaluationJsonPath is unable to parse the object). If first table_name value
> is set to x, no issue is encountered
> !image-2021-03-18-17-35-20-406.png|width=917,height=199!
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)