[ 
https://issues.apache.org/jira/browse/NIFI-14672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alaksiej Ščarbaty updated NIFI-14672:
-------------------------------------
    Description: 
Currently each {{mappedTo}} value in `replaceByPattern` must be unique. What it 
means, is that a pattern like this {{a:res,b:res}} won't map both {{a and b}} 
to {{{}res{}}}.

The function should support mapping to the same value multiple times.
If {{{}str = a{}}}, then {{${str:replaceByPattern('a:res,b:res')}}}  should 
return {{res}}
If {{{}str = b{}}}, then {{${str:replaceByPattern('a:res,b:res')}}}  should 
return {{res}}

  was:
Currently each {{mappedTo}} value in `replaceByPattern` must be unique. What it 
means, is that a pattern like this {{a:res,b:res}} won't map both {{a and b}} 
to {{{}res{}}}.

The function should support mapping to the same value multiple times.


> Support duplicate mapped values in replaceByPattern
> ---------------------------------------------------
>
>                 Key: NIFI-14672
>                 URL: https://issues.apache.org/jira/browse/NIFI-14672
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Alaksiej Ščarbaty
>            Assignee: Alaksiej Ščarbaty
>            Priority: Major
>
> Currently each {{mappedTo}} value in `replaceByPattern` must be unique. What 
> it means, is that a pattern like this {{a:res,b:res}} won't map both {{a and 
> b}} to {{{}res{}}}.
> The function should support mapping to the same value multiple times.
> If {{{}str = a{}}}, then {{${str:replaceByPattern('a:res,b:res')}}}  should 
> return {{res}}
> If {{{}str = b{}}}, then {{${str:replaceByPattern('a:res,b:res')}}}  should 
> return {{res}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to