Alex Savitsky created NIFI-5731:
-----------------------------------

             Summary: Support List-typed fields for Array coercion
                 Key: NIFI-5731
                 URL: https://issues.apache.org/jira/browse/NIFI-5731
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Core Framework
    Affects Versions: 1.7.1
            Reporter: Alex Savitsky


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:
{code:java}
return ((List) value).toArray();
{code}
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.



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

Reply via email to