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

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

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

    https://github.com/apache/nifi/pull/2221#discussion_r146999573
  
    --- Diff: 
nifi-commons/nifi-record-path/src/main/java/org/apache/nifi/record/path/paths/RecordPathCompiler.java
 ---
    @@ -346,4 +356,19 @@ private static RecordPathFilter 
createFunctionFilter(final Tree functionTree, fi
     
             return argPaths;
         }
    +
    +    private static RecordPathSegment[] getArgPaths(final Tree 
argumentListTree, final int minCount, final int maxCount, final String 
functionName, final boolean absolute) {
    --- End diff --
    
    Is this used anywhere?


> Add date functions to Record Path
> ---------------------------------
>
>                 Key: NIFI-4506
>                 URL: https://issues.apache.org/jira/browse/NIFI-4506
>             Project: Apache NiFi
>          Issue Type: Improvement
>    Affects Versions: 1.2.0, 1.3.0, 1.4.0
>            Reporter: Bryan Bende
>            Assignee: Bryan Bende
>            Priority: Minor
>
> We should support some date related functions in record path. At a minimum I 
> think having a format function like:
> {code}
> format( /someField, 'yyyy-MM-dd', defaultValue)
> {code}
> The main use case for this is using PartitionRecord to partition by month, 
> day, or hour on a date field. 
> Currently you have treat the date as a string and use a sub-string operation 
> to get the part you are interested in, which also assumes the date is in a 
> string form in the first place.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to