Github user mattyb149 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2853#discussion_r201105948
--- Diff:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestConvertRecord.java
---
@@ -62,6 +62,44 @@ public void testSuccessfulConversion() throws
InitializationException {
out.assertContentEquals("header\nJohn Doe,48\nJane Doe,47\nJimmy
Doe,14\n");
}
+ @Test
+ public void testDropEmpty() throws InitializationException {
--- End diff --
I think it's possible to have a ConvertRecord scenario where there are
valid records coming in, but the conversion produces no records (no fields
match the schema, e.g.), @markap14 do you know if that's possible or if an
error would occur? If it is possible, it would be nice to have a unit test that
covers that.
---