You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mike Thomsen (JIRA)" <ji...@apache.org> on 2018/06/09 18:56:00 UTC
[jira] [Created] (NIFI-5288) PutMongoDB cannot handle arrays
Mike Thomsen created NIFI-5288:
----------------------------------
Summary: PutMongoDB cannot handle arrays
Key: NIFI-5288
URL: https://issues.apache.org/jira/browse/NIFI-5288
Project: Apache NiFi
Issue Type: Bug
Reporter: Mike Thomsen
Assignee: Mike Thomsen
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)