Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-8622

AvroReader not reading Decimal values correctly when avro file with no embedded schema is parsed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.14.0
    • Extensions
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              pgyori Peter Gyori
              pgyori Peter Gyori
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m