[ 
https://issues.apache.org/jira/browse/NIFI-5077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16476066#comment-16476066
 ] 

ASF GitHub Bot commented on NIFI-5077:
--------------------------------------

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

    https://github.com/apache/nifi/pull/2698#discussion_r188345184
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExtractGrok.java
 ---
    @@ -102,6 +103,15 @@
             .addValidator(StandardValidators.FILE_EXISTS_VALIDATOR)
             .build();
     
    +    public static final PropertyDescriptor KEEP_EMPTY_CAPTURES = new 
PropertyDescriptor.Builder()
    +            .name("Keep Empty Captures")
    +            .description("If true, then empty capture values will be 
included in the returned capture map.")
    +            .required(false)
    +            .defaultValue("true")
    --- End diff --
    
    isn't defaulting to true a change of the current behavior?


> Grok support for Empty Captures
> -------------------------------
>
>                 Key: NIFI-5077
>                 URL: https://issues.apache.org/jira/browse/NIFI-5077
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.6.0
>         Environment: CentOS 7
>            Reporter: Ramon de Graaff
>            Assignee: Otto Fowler
>            Priority: Major
>         Attachments: grok.xml
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Pattern matches but also attaches null values.
> grok-pattern:
> {{TEST %\{A}|%\{B}}}
> {{A %\{INT:test}}}
> {{B %\{INT:test}}}
> {{INT (?:[+-]?(?:[0-9]+))}}
> flowfile-content:
> {{1}}
> Flow file attributes after match:
> {{grok.A}}
> {{1}}
> {{grok.TEST}}
> {{1}}
> {{grok.test}}
> {{[1, null]}}
>  



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

Reply via email to