Mark Payne created NIFI-12797:
---------------------------------
Summary: Record.incorporateInactiveFields fails if inactive field
added with same name but different type
Key: NIFI-12797
URL: https://issues.apache.org/jira/browse/NIFI-12797
Project: Apache NiFi
Issue Type: Bug
Components: Extensions
Reporter: Mark Payne
Assignee: Mark Payne
Fix For: 2.0.0
The Record.incorporateInactiveFields has a bug in it.
It considers two cases: updated fields and inactive fields. When considering
inactive fields, it skips any fields that are also present in the 'updated
fields'. This makes sense, as we don't want to add a new field if there's
already a field with the same name.
However, the comparison it uses is based on RecordField and not the field name.
So in some cases it can throw an Exception because there's a conflict where an
inactive field has the same name but different type than an updated field.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)