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

Enum in Avro schema not working in PutDatabaseRecord

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.19.0
    • Core Framework
    • None

    Description

      There appears to be a regression in the PutDatabaseRecord processor with 1.13.0 (works in 1.12.1)

      I have an Avro schema for a record which contained enum fields.  After upgrading, a processor which had been working was failing on errors, stating it could not find the record type. The field in question is defined as below.

      The files which were erroring out were the exact same files, and no changes had been made to the schema or the CSV reader controller between the tests.  I was also able to successfully move the flow.xml.gz file back to the older version of NiFi and the PutDatabaseRecord processor was able to work again to insert the database records.

               {
                  "name": "PER_ORG",
                  "type": {
                      "type": "enum",
                      "name": "PerOrgFlag",
                      "symbols": [
                          "EMP",
                          "CWR"
                      ]
                  }
              }
      

      Attachments

        Issue Links

          Activity

            People

              mattyb149 Matt Burgess
              kellerj Jonathan Keller
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 40m
                  40m