Github user mattyb149 commented on the issue:

    https://github.com/apache/nifi/pull/1772
  
    I ran into some trouble when the input schema was different from the output 
schema. One example is an input record with an "id" field and a nested "name" 
field with "first" and "last" fields. The output schema has "id" and "name" 
fields. When trying to update the outgoing "name" field with the "/name/first" 
field value, I got the following error:
    
    `IllegalTypeConversionException: Cannot convert value [Matt] of type class 
java.lang.String to Record for field name`
    
    This appears to be caused by the fact that the input and output schemas 
have the same field name with different types. However when I tried an output 
schema of "id" and "firstName", there was no exception but the "firstName" 
field was null. 
    
    Looks like the input schema and record is used to update the incoming 
record in-place, versus updating from the incoming record to an outgoing record.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to