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

ASF subversion and git services commented on NIFI-5316:
-------------------------------------------------------

Commit 260bc29e1014a2fd21c3775e27f434756e13e0ee in nifi's branch 
refs/heads/support/nifi-1.7.x from [~bbende]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=260bc29 ]

NIFI-5316 Fixed array handling for Avro that comes from Parquet's Avro reader

Signed-off-by: zenfenan <[email protected]>


> Potential bug with Fetch Parquet
> --------------------------------
>
>                 Key: NIFI-5316
>                 URL: https://issues.apache.org/jira/browse/NIFI-5316
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>            Reporter: Robert Bruno
>            Assignee: Bryan Bende
>            Priority: Major
>             Fix For: 1.8.0, 1.7.1
>
>
> I have used PutParquet to create Parquet files from Nifi Records.  In trying 
> to convert the parquet back to json by using FetchParquet, I keep getting 
> errors on what seems like any array field.  I have had successes on data that 
> contained no arrays.
> The error in the log is cannont convert a value [xxx, yyy] where xxx and yyy 
> are random strings of type class java.util.ArrayList because no compatible 
> type exist in the UNION of field z.
> I am also see the same error when the value is [] (empty array) as well.  
> I have been successful gong from json to avro and avro to json with the same 
> schema registry values.
> I am defining array fields as follows:
> "type" : [
>   "null",
>   {
>       "type" : "array",
>        "items" : "string"
> }
> ],
> "default": null
> }
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to