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

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

Commit 7cb3bce6a7bfb9290f4311d35048b710ebe8e989 in nifi's branch 
refs/heads/main from Peter Gyori
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=7cb3bce ]

NIFI-8622: Reuse of GenericRecord instance eliminated from 
AvroReaderWithExplicitSchema to avoid issues when parsing fields of type 
"bytes" (#5090)



> AvroReader not reading Decimal values correctly when avro file with no 
> embedded schema is parsed
> ------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-8622
>                 URL: https://issues.apache.org/jira/browse/NIFI-8622
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Peter Gyori
>            Assignee: Peter Gyori
>            Priority: Major
>             Fix For: 1.14.0
>
>         Attachments: Schemaless_Avro_Decimal_Issue_template.xml
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> When there are multiple records in a FlowFile, and there is a field in these 
> records of type Decimal ("type": "bytes", "logicalType": "decimal") and the 
> FlowFile is converted to Avro with AvroRecordSetWriter's property "Schema 
> Write Strategy" set to "Do not write schema", then when this avro file is 
> parsed with AvroReader (Schema access strategy set to "Use 'Schema Text' 
> Property" and schema explicitly provided) some decimal values get assigned 
> random values.
> Template attached to reproduce the issue.



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

Reply via email to