You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by "Robert R. Bruno" <rb...@gmail.com> on 2021/08/11 17:51:35 UTC

UpdateRecord and arrays

Is there a way to use UpdateRecord to update the value of a record that is
an array? In the example we have, we'd like to take a string from one field
in the record which is a string and copy it into another field that is an
array field but currently is null in the record.  So something like:

Input:

{  "test": "test1", "test_array": null}

Desired output:

{  "test": "test1", "test_array": ["test1"] }

We were going to look into if joltransform can do it if UpdateRecord can't.

Thanks!

Robert