You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Peter Gyori (Jira)" <ji...@apache.org> on 2021/05/20 18:28:00 UTC

[jira] [Commented] (NIFI-8622) AvroReader not reading Decimal values correctly when avro file with no embedded schema is parsed

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

Peter Gyori commented on NIFI-8622:
-----------------------------------

Pull request 5090 is very likely a solution to https://issues.apache.org/jira/browse/NIFI-8610 as well.

> 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
>         Attachments: Schemaless_Avro_Decimal_Issue_template.xml
>
>          Time Spent: 10m
>  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)