Github user pvillard31 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2122#discussion_r137950192
--- Diff:
nifi-commons/nifi-record-path/src/main/java/org/apache/nifi/record/path/paths/WildcardIndexPath.java
---
@@ -65,6 +65,7 @@
} else {
final Object[] array = (Object[]) value;
return IntStream.range(0, array.length)
+ .filter(index -> array[index] != null)
--- End diff --
Hey @markap14, thanks for the review. While I agree with your comment, it
turns out (if I looked correctly) that, currently, updating an array of simple
elements is not possible. If I set:
```
/numbers[*]
````
as the path to update with a value of 8, it won't update anything.
I rebased against master and pushed another commit to fix the update action
when updating an array of simple (not records) elements, and also to address
your comment. Let me know if it looks like the right approach to you.
---