Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Duplicate
-
1.7.1
-
None
-
None
Description
This Jira concerns the nifi-record module specifically.
Currently, the toArray method of org.apache.nifi.serialization.record.util.DataTypeUtils does not support values of type java.util.List to convert to Object[], despite the conversion being a trivial one-liner:
return ((List) value).toArray();
The Record being converted doesn't always have the control to enforce all its arrays being actual arrays and not collections (e.g., if the Record was created in Groovy), and it would be nice to have it converted on the fly, rather than having to transform it manually.
Attachments
Issue Links
- duplicates
-
NIFI-5664 LookupRecord cannot handle JSON array properties from MongoDBLookupService
- Resolved