[ 
https://issues.apache.org/jira/browse/NIFI-1934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15329560#comment-15329560
 ] 

Joseph Percivall commented on NIFI-1934:
----------------------------------------

When inferAvroSchemaFromCSV() or inferAvroSchemaFromJSON() returns null when 
the record name doesn't end up getting set. This will then cause it to transfer 
the FlowFile to REL_UNSUPPORTED_CONTENT. This is isn't correct because the 
content type is supported (CSV or JSON) there was just an failure to convert 
it. They should be routed to REL_FAILURE.

> InferAvroSchema dynamically set record name
> -------------------------------------------
>
>                 Key: NIFI-1934
>                 URL: https://issues.apache.org/jira/browse/NIFI-1934
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>    Affects Versions: 1.0.0, 0.7.0
>            Reporter: Daniel Cave
>            Assignee: Alex Halldin
>            Priority: Minor
>             Fix For: 1.0.0, 0.7.0
>
>         Attachments: 
> 0001-NIFI-1934-Updates-to-InferAvroSchema-made-record-nam.patch
>
>
> InferAvroSchema only allowed for hard set schema record names for the newly 
> generated schemas.  Infer now allows these to be set dynamically based on the 
> record name from the incoming JSON.  Infer now will also set a n 
> inferredAvroId onto the outgoing original JSON flowfile as well as the 
> outgoing schema flowfile.  This is for matching in ConvertDynamicJsonToAvro



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to