ijokarumawak commented on issue #3353: NIFI-6105: Fix handling of arrays of 
records/maps in record utilities
URL: https://github.com/apache/nifi/pull/3353#issuecomment-472251738
 
 
   Hi @mattyb149 @bbende 
   Sorry for the confusion. I tested the issue again
   1. With the latest master 1.10.0-SNAPSHOT
       1. With implicit input and output schemas, The reported issue still 
occurs.
           ```
           
org.apache.nifi.serialization.record.util.IllegalTypeConversionException: 
Cannot convert value of class [Ljava.lang.Object; because the type is not 
supported
           ```
       2. But if I use infer-schema with the JsonTreeReader, the same flow 
works fine. I think this is why I misunderstood the issue is addressed with 
NiFi 1.9.0. Sorry about that.
   2. With this PR, I got the same exception that Bryan saw:
       ```
       
org.apache.nifi.serialization.record.util.IllegalTypeConversionException: 
Cannot convert value [{uuid=MFMS1-MC5, componentId=path1, eventType=Samples, 
type=PathFeedrate, dataItemId=pf, timestamp=2019-03-01T21:48:27.940558Z, 
sequence=68104, value=425.5333, name=Fact, subType=ACTUAL, sampleRate=null, 
statistic=null, duration=null, sampleCount=null, compositionId=null, 
resetTriggered=null}] of type class java.util.LinkedHashMap for field a to any 
of the following available Sub-Types for a Choice: [RECORD, RECORD]
       ```
   
   I'll take a look on the exception and toRecord updates. Thanks!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to