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

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

A couple things with the code block that starts at line 353:

The comment says "//Create unique ID and set on both the schema and JSON 
flowfiles" but this section will be run for both CSV and JSON incoming files.

What is the FLOWFILE_TYPE attribute for? It seems to be doing the same function 
as "MIME_TYPE" except that for both putting the schema in the attribute and 
content the FLOWFILE_TYPE is the same, "avro.schema".

> 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