Github user patricker commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2853#discussion_r201124899
--- 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 --
This is probably possible with the write record reader configuration. I
tried building a test using Json Row Record Reader, but even if none of the
elements in your schema match the schema of the source record it just outputs a
NULL for you...
```Successfully converted 2 records for
FlowFile[0,627269493239800.mockFlowFile,119B]
valuated JSONPath Expression com.jayway.jsonpath.JsonPath@5b8d184c but the
path was not found; will use a null value
Evaluated JSONPath Expression com.jayway.jsonpath.JsonPath@5b8d184c but the
path was not found; will use a null value
Successfully converted 2 records for
FlowFile[1,627271185518617.mockFlowFile,23B]```
---