You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Matt Burgess (JIRA)" <ji...@apache.org> on 2018/05/18 18:45:00 UTC

[jira] [Created] (NIFI-5217) Allow MockRecordParser to add non-nullable fields

Matt Burgess created NIFI-5217:
----------------------------------

             Summary: Allow MockRecordParser to add non-nullable fields
                 Key: NIFI-5217
                 URL: https://issues.apache.org/jira/browse/NIFI-5217
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Extensions
            Reporter: Matt Burgess


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)