Github user markap14 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2122#discussion_r138649045
--- Diff:
nifi-commons/nifi-record-path/src/main/java/org/apache/nifi/record/path/paths/WildcardIndexPath.java
---
@@ -67,7 +67,9 @@
return IntStream.range(0, array.length)
.mapToObj(index -> {
final DataType elementDataType =
((ArrayDataType) fieldValue.getField().getDataType()).getElementType();
- final RecordField elementField = new
RecordField(fieldValue.getField().getFieldName() + "[" + index + "]",
elementDataType);
+ final RecordField elementField =
elementDataType.getFieldType() == RecordFieldType.RECORD
--- End diff --
Ah ok. Yes, I think it should probably be a new JIRA. Because I suspect we
will also have the same issue with ArrayIndexPath and MultiArrayIndexPath and
possibly others...
---