Github user mattyb149 commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1358#discussion_r93941409
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/SplitText.java
 ---
    @@ -288,7 +290,7 @@ public void process(InputStream in) throws IOException {
             int fragmentIndex = 1; // set to 1 to preserve the existing 
behavior *only*. Perhaps should be deprecated to follow the 0,1,2... scheme
             String fragmentId = UUID.randomUUID().toString();
     
    -        if (computedSplitsInfo.size() == 0) {
    +        if ((computedSplitsInfo.size() == 0) && (headerFlowFile != null)) {
    --- End diff --
    
    I assume the original author had a reason, the description of the processor 
says "If after computation of the header there are no more data, the resulting 
split will consists of only header lines."


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to