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

ASF subversion and git services commented on NIFI-9335:
-------------------------------------------------------

Commit 1191e511a5306d6c23ed0b289db85c11c0373690 in nifi's branch 
refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=1191e51 ]

NIFI-9335: Updated AvroTypeUtil#createAvroRecord to ensure that if the given 
Avro Schema contains a field whose value is defaulted, the produced Avro Record 
has that value populated. Also added a unit test to verify behavior. Ran 
performance test (which is igonred and must be manually enabled) - about 2.1 
seconds before the change and about 2.5 seconds after the change for each 
iteration.

Signed-off-by: Matthew Burgess <[email protected]>

This closes #5483


> When converting a NiFi Record to an Avro Record, default values in schema are 
> not applied
> -----------------------------------------------------------------------------------------
>
>                 Key: NIFI-9335
>                 URL: https://issues.apache.org/jira/browse/NIFI-9335
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.14.0
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>             Fix For: 1.15.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> If we use an Avro Record Writer and specify an explicit schema (via schema 
> registry, schema text, etc.) and that schema has a default value for a field, 
> the produced Avro object does not have the value but instead has a null value.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to