[ 
https://issues.apache.org/jira/browse/NIFI-9929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18060509#comment-18060509
 ] 

Daniel Stieglitz edited comment on NIFI-9929 at 2/23/26 11:33 PM:
------------------------------------------------------------------

[~exceptionfactory] I tried to reproduce this in 2.8 and I do not see what the 
reporter saw in NIFI 1.14. For a record of 1 I see the resulting CSV as
{code:java}
type,enumdata,timestamp,ms
change,"[{\"key\":\"SIG.2.DBX.1001.D0.1\",\"value\":[1]}, 
{\"key\":\"SIG.2.DBX.1002.D0.2\",\"value\":[1]}]",1234567891,100{code}


was (Author: JIRAUSER294662):
[~exceptionfactory] I tried to reproduce this in 2.8 and I do not see what the 
reporter saw in 1.16. For a record of 1 I see the resulting CSV as
{code:java}
type,enumdata,timestamp,ms
change,"[{\"key\":\"SIG.2.DBX.1001.D0.1\",\"value\":[1]}, 
{\"key\":\"SIG.2.DBX.1002.D0.2\",\"value\":[1]}]",1234567891,100{code}

> CSVRecordSetWriter output the java object like [Ljava.lang.Object;@580f36fb
> ---------------------------------------------------------------------------
>
>                 Key: NIFI-9929
>                 URL: https://issues.apache.org/jira/browse/NIFI-9929
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: NiFi Registry
>    Affects Versions: 1.14.0
>         Environment:  Operating System: CentOS Linux 7 (Core)
>  CPE OS Name: cpe:/o:centos:centos:7
>  Kernel: Linux 3.10.0-1160.31.1.el7.x86_64
>            Reporter: duncanfu
>            Priority: Major
>         Attachments: cc_2022-04-15-11-11-15.CSV, 
> image-2022-04-15-10-57-49-229.png, json.txt
>
>   Original Estimate: 504h
>  Remaining Estimate: 504h
>
> hello,
> I want to merge some records from json to csv, so I create a work flow like 
> image-2022-04-15-10-57-49-229.png,  and I try to use CSVRecordSetWriter to 
> construct the csv file, but when I have a compelix json like json.txt, the 
> end csv file will contains some property is java memery object such as 
> [Ljava.lang.Object;@580f36fb like file cc_2022-04-15-11-11-15.CSV. I don't 
> know which is right or not, BUT i think if it return the json string will be 
> better. all that's should i need.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to