Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.12.1
-
None
-
None
Description
This avro schema is using the open enum pattern:
{ "namespace": "acme", "name": "openEnum", "type": "record", "fields": [{ "name": "personType", "type": ["null", { "type": "enum", "name": "personType_enum", "symbols": [ "DRIVER", "TECHNICIAN" ] }, "string"], "default": null } ] }
The personType can be either null, an enum, or any string. This brings forward-compatibility.
Using ConvertRecord with
as a payload, it works.
But with
it fails with java.lang.NullPointerException: null of acme.personType_enum of union in field personType of acme.openEnum
Attachments
Attachments
Issue Links
- fixes
-
NIFI-7985 ValidateRecord does not validate the type enum
- Resolved
- links to