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

Mark Payne commented on NIFI-9698:
----------------------------------

Of note, with this fix, the attached flow still fails in 
ScriptedTransformRecord because it attempts to set an `int` field to an empty 
array. This can be addressed by updating the ScriptedTransformRecord to use:
{code:java}
 user_data["external_id"] = 123{code}
instead of:
{code:java}
user_data["external_id"] = record.getValue("a") {code}

> When creating avro schema from a RecordSchema, if array field has empty array 
> as default, it fails
> --------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-9698
>                 URL: https://issues.apache.org/jira/browse/NIFI-9698
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>         Attachments: flow.json
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Reported via Apache Slack, the attached flow results in failing on the 
> ScriptedTransformRecord processor when attempting to create the schema for 
> the Avro Writer



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

Reply via email to