[jira] [Commented] (NIFI-4880) Add the ability to utilize aliases in Avro to Avro record conversion
[ https://issues.apache.org/jira/browse/NIFI-4880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16380885#comment-16380885 ] ASF GitHub Bot commented on NIFI-4880: -- Github user markap14 commented on the issue: https://github.com/apache/nifi/pull/2474 @derekstraka thanks that was a good catch! Code all looks good, unit tests pass, contrib-check is good. +1 I've merged this to master. Thanks again! > Add the ability to utilize aliases in Avro to Avro record conversion > > > Key: NIFI-4880 > URL: https://issues.apache.org/jira/browse/NIFI-4880 > Project: Apache NiFi > Issue Type: Improvement >Affects Versions: 1.5.0 >Reporter: Derek Straka >Assignee: Derek Straka >Priority: Minor > > Currently, the Avro to Avro conversions will ignore fields that are not > mapped verbatim. In avro schemas, it is possible for fields to be aliased to > one another. It would be useful if a 1:1 mapping was not available, the > aliases for the field were searched to locate a prospective value and then > add the default. > > The functionality can be accomplished by adding some logic to > AvroTypeUtil::createAvroRecord. > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (NIFI-4880) Add the ability to utilize aliases in Avro to Avro record conversion
[ https://issues.apache.org/jira/browse/NIFI-4880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16380883#comment-16380883 ] ASF subversion and git services commented on NIFI-4880: --- Commit 44bc2d41d7d1c0140fc2daac5ce957641bf983b5 in nifi's branch refs/heads/master from [~derekstraka] [ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=44bc2d4 ] NIFI-4880: Add the ability to map record based on the aliases. This closes #2474 Signed-off-by: Derek StrakaSigned-off-by: Mark Payne > Add the ability to utilize aliases in Avro to Avro record conversion > > > Key: NIFI-4880 > URL: https://issues.apache.org/jira/browse/NIFI-4880 > Project: Apache NiFi > Issue Type: Improvement >Affects Versions: 1.5.0 >Reporter: Derek Straka >Assignee: Derek Straka >Priority: Minor > > Currently, the Avro to Avro conversions will ignore fields that are not > mapped verbatim. In avro schemas, it is possible for fields to be aliased to > one another. It would be useful if a 1:1 mapping was not available, the > aliases for the field were searched to locate a prospective value and then > add the default. > > The functionality can be accomplished by adding some logic to > AvroTypeUtil::createAvroRecord. > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (NIFI-4880) Add the ability to utilize aliases in Avro to Avro record conversion
[ https://issues.apache.org/jira/browse/NIFI-4880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16380884#comment-16380884 ] ASF GitHub Bot commented on NIFI-4880: -- Github user asfgit closed the pull request at: https://github.com/apache/nifi/pull/2474 > Add the ability to utilize aliases in Avro to Avro record conversion > > > Key: NIFI-4880 > URL: https://issues.apache.org/jira/browse/NIFI-4880 > Project: Apache NiFi > Issue Type: Improvement >Affects Versions: 1.5.0 >Reporter: Derek Straka >Assignee: Derek Straka >Priority: Minor > > Currently, the Avro to Avro conversions will ignore fields that are not > mapped verbatim. In avro schemas, it is possible for fields to be aliased to > one another. It would be useful if a 1:1 mapping was not available, the > aliases for the field were searched to locate a prospective value and then > add the default. > > The functionality can be accomplished by adding some logic to > AvroTypeUtil::createAvroRecord. > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (NIFI-4880) Add the ability to utilize aliases in Avro to Avro record conversion
[ https://issues.apache.org/jira/browse/NIFI-4880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16377689#comment-16377689 ] ASF GitHub Bot commented on NIFI-4880: -- Github user derekstraka commented on the issue: https://github.com/apache/nifi/pull/2474 @ijokarumawak - it looks like you were in the source file last. Could you recommend a reviewer for this changeset? Thanks! > Add the ability to utilize aliases in Avro to Avro record conversion > > > Key: NIFI-4880 > URL: https://issues.apache.org/jira/browse/NIFI-4880 > Project: Apache NiFi > Issue Type: Improvement >Affects Versions: 1.5.0 >Reporter: Derek Straka >Assignee: Derek Straka >Priority: Minor > > Currently, the Avro to Avro conversions will ignore fields that are not > mapped verbatim. In avro schemas, it is possible for fields to be aliased to > one another. It would be useful if a 1:1 mapping was not available, the > aliases for the field were searched to locate a prospective value and then > add the default. > > The functionality can be accomplished by adding some logic to > AvroTypeUtil::createAvroRecord. > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (NIFI-4880) Add the ability to utilize aliases in Avro to Avro record conversion
[ https://issues.apache.org/jira/browse/NIFI-4880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16366190#comment-16366190 ] ASF GitHub Bot commented on NIFI-4880: -- GitHub user derekstraka opened a pull request: https://github.com/apache/nifi/pull/2474 NIFI-4880: Add the ability to map record based on the aliases 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: - [X] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message? - [X] Does your PR title start with NIFI- where is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character. - [X] Has your PR been rebased against the latest commit within the target branch (typically master)? - [X] Is your initial contribution a single, squashed commit? ### For code changes: - [X] 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](http://www.apache.org/legal/resolved.html#category-a)? - [ ] 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. You can merge this pull request into a Git repository by running: $ git pull https://github.com/derekstraka/nifi NIFI-4880 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/nifi/pull/2474.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2474 commit 8fa6cfe5729fab36b11fbac9c6ea5f9dd975da0f Author: Derek StrakaDate: 2018-02-15T19:56:40Z NIFI-4880: Add the ability to map record based on the aliases Signed-off-by: Derek Straka > Add the ability to utilize aliases in Avro to Avro record conversion > > > Key: NIFI-4880 > URL: https://issues.apache.org/jira/browse/NIFI-4880 > Project: Apache NiFi > Issue Type: Improvement >Affects Versions: 1.5.0 >Reporter: Derek Straka >Priority: Minor > > Currently, the Avro to Avro conversions will ignore fields that are not > mapped verbatim. In avro schemas, it is possible for fields to be aliased to > one another. It would be useful if a 1:1 mapping was not available, the > aliases for the field were searched to locate a prospective value and then > add the default. > > The functionality can be accomplished by adding some logic to > AvroTypeUtil::createAvroRecord. > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (NIFI-4880) Add the ability to utilize aliases in Avro to Avro record conversion
[ https://issues.apache.org/jira/browse/NIFI-4880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16364807#comment-16364807 ] Derek Straka commented on NIFI-4880: I'll be creating a changeset for this functionality and adding some unit tests. > Add the ability to utilize aliases in Avro to Avro record conversion > > > Key: NIFI-4880 > URL: https://issues.apache.org/jira/browse/NIFI-4880 > Project: Apache NiFi > Issue Type: Improvement >Affects Versions: 1.5.0 >Reporter: Derek Straka >Priority: Minor > > Currently, the Avro to Avro conversions will ignore fields that are not > mapped verbatim. In avro schemas, it is possible for fields to be aliased to > one another. It would be useful if a 1:1 mapping was not available, the > aliases for the field were searched to locate a prospective value and then > add the default. > > The functionality can be accomplished by adding some logic to > AvroTypeUtil::createAvroRecord. > -- This message was sent by Atlassian JIRA (v7.6.3#76005)