Skip to content

NIFI 3863 - Add LookupRecord, PartitionRecord processors#1825

Closed
markap14 wants to merge 2 commits intoapache:masterfrom
markap14:NIFI-3863
Closed

NIFI 3863 - Add LookupRecord, PartitionRecord processors#1825
markap14 wants to merge 2 commits intoapache:masterfrom
markap14:NIFI-3863

Conversation

@markap14
Copy link
Contributor

I still need to add some more documentation and unit tests but wanted to go ahead and get this up so that if anyone has a chance to review or test they can do so.

Thank you for submitting a contribution to Apache NiFi.

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

For all changes:

  • Is there a JIRA ticket associated with this PR? Is it referenced
    in the commit message?

  • Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

  • Has your PR been rebased against the latest commit within the target branch (typically master)?

  • Is your initial contribution a single, squashed commit?

For code changes:

  • Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
  • Have you written or updated unit tests to verify your changes?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
  • If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
  • If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

  • Have you ensured that format looks appropriate for the output in which it is rendered?

Note:

Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.

@joewitt
Copy link
Contributor

joewitt commented May 18, 2017

@markap14 i think you dont want this in the PR
create mode 100644 nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/hs_err_pid26624.log

Can you please squash when it is time for a formal review. I am going through this already though. This is cool stuff!

@joewitt
Copy link
Contributor

joewitt commented May 18, 2017

I think for LookupAttribute it should either send all events to success (so it doesn't change/partition the stream other than to possibly enrich each record).

I think if the lookup recordpath does not find anything the enrichment should just move on just like if the result record is empty.

@joewitt
Copy link
Contributor

joewitt commented May 18, 2017

this thing is insanely useful. I will post my template when done reviewing. But this is supremely cool.

…kupRecord processors. This required some refactoring of RecordSetWriter interface, so refactored that interface and all implementations and references of it
@WritesAttribute(attribute="record.count", description="The number of records in an outgoing FlowFile"),
@WritesAttribute(attribute="mime.type", description="The MIME Type that the configured Record Writer indicates is appropriate"),
@WritesAttribute(attribute="<dynamic property name>",
description="For each dynamnic property that is added, an attribute may be added to the FlowFile. See the description for Dynamic Properties for more information.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor typo, "dynamnic" should be "dynamic"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Addressed.

@markap14 markap14 force-pushed the NIFI-3863 branch 2 times, most recently from fa88730 to a3acacf Compare May 18, 2017 20:54
}

} catch (final Exception ex) {
ex.printStackTrace();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removing this and addressing a couple checkstyle issues

@asfgit asfgit closed this in ae9953d May 19, 2017
mattyb149 pushed a commit to mattyb149/nifi that referenced this pull request Nov 30, 2017
Signed-off-by: joewitt <joewitt@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants