[
https://issues.apache.org/jira/browse/NIFI-1923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16147759#comment-16147759
]
ASF subversion and git services commented on NIFI-1923:
-------------------------------------------------------
Commit e62417ea6b189ad0e7522cffd68481dd5df7ffd8 in nifi's branch
refs/heads/master from [~pvillard]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=e62417e ]
NIFI-1923 - AttributesToJson regex property
added EL support
Signed-off-by: Matthew Burgess <[email protected]>
This closes #2099
> AttributesToJson should support regex of Attributes List
> --------------------------------------------------------
>
> Key: NIFI-1923
> URL: https://issues.apache.org/jira/browse/NIFI-1923
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Affects Versions: 0.6.1
> Reporter: Andrew Grande
> Assignee: Pierre Villard
>
> Today, the Attributes List supports _only_ a comma-separated list of
> attributes to include in the output JSON. This is not flexible enough, the
> alternative is to strip every other attribute and 'convert all', which
> requires more work and may not be possible if some need to be preserved.
> *Proposal:* Attributes List must be a regex which matches the attributes to
> be included in the resulting JSON. E.g. I have lined up my data to include
> attributes like below:
> {code}
> {
> "delimited.header.column.2" : "Assignment",
> "delimited.header.column.3" : "Organization Name",
> "delimited.header.column.1" : "Registry",
> "delimited.header.column.4" : "Organization Address"
> }
> {code}
> The challenge is I have to list *delimited.header.column.1*..N explicitly,
> every property name. I may not even know how many there will be for a more
> dynamic flow.
> As a user I should be able to say *delimited.header.column\.** or any
> arbitrarily complex regex for a more dynamic conversion.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)