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

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

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

NIFI-9594: When converting Record to Avro GenericRecord, ensure that any 
default values that are defined in the GenericRecord's schema get applied, 
regardless of whether or not the field exists in the associated RecordSchema.

Signed-off-by: Pierre Villard <pierre.villard...@gmail.com>

This closes #5677.


> Avro Writer may throw NullPointerException if required defaulted value is 
> missing
> ---------------------------------------------------------------------------------
>
>                 Key: NIFI-9594
>                 URL: https://issues.apache.org/jira/browse/NIFI-9594
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>             Fix For: 1.16.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When we use the Avro RecordSet Writer, if the avro schema is defined 
> explicitly, and the avro schema indicates that a field is required and 
> defaulted, the Avro GenericRecord that gets generated doesn't always have the 
> default value set.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to