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

Allow MockRecordParser to add non-nullable fields

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.7.0
    • Extensions
    • None

    Description

      MockRecordParser (in nifi-mock-record-utils) has an addSchemaField() method, but it does not have a parameter to set whether the field is nullable or not. Thus it creates a new RecordField without the nullable parameter, in which case it defaults to "true". This prevents tests from adding a non-nullable field.

      This Jira proposes to overload addSchemaField() with a boolean "isNullable" parameter that will be passed along to the RecordField constructor.

      Attachments

        Issue Links

          Activity

            People

              mattyb149 Matt Burgess
              mattyb149 Matt Burgess
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: