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

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

Commit 5a39d2a819ab18ee119b4eb63813f2c5aae2a50d in nifi's branch 
refs/heads/master from [~mike.thomsen]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=5a39d2a ]

NIFI-5288 Quietly convert Java arrays to Lists so the MongoDB API can handle 
them.

NIFI-5288 Made changes based on code review.

NIFI-5288 Theoretically supports nested arrays.

Signed-off-by: Matthew Burgess <[email protected]>

This closes #2778


> PutMongoRecord cannot handle arrays
> -----------------------------------
>
>                 Key: NIFI-5288
>                 URL: https://issues.apache.org/jira/browse/NIFI-5288
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>            Reporter: Mike Thomsen
>            Assignee: Mike Thomsen
>            Priority: Major
>             Fix For: 1.7.0
>
>
> From the mailing list:
>  
> My json document is \{"nom":"HAMEL","prenom":"YVES","tab":["aa","bb"]}
>  My mecord reader use the schema (generated by InferAvroSchema):
>  {
>    "type" : "record",
>    "name" : "Test",
>    "fields" : [ {
>      "name" : "nom",
>      "type" : "string",
>      "doc" : "Type inferred from '\"HAMEL\"'"
>    }, {
>      "name" : "prenom",
>      "type" : "string",
>      "doc" : "Type inferred from '\"YVES\"'"
>    }, {
>      "name" : "tab",
>      "type" : {
>        "type" : "array",
>        "items" : "string"
>      },
>      "doc" : "Type inferred from '[\"aa\",\"bb\"]'"
>    } ]
>  }
>  
>  I did a little debug and I think I get this exeception because
>  PuMongoRecord maps json array to java array. But the mongodb java drivers
>  doesn't support java array but only support List.



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

Reply via email to