Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-5731

Support List-typed fields for Array coercion

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Duplicate
    • 1.7.1
    • None
    • Core Framework
    • 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

          Activity

            People

              Unassigned Unassigned
              alex_savitsky Alex Savitsky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: