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

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

GitHub user markap14 opened a pull request:

    https://github.com/apache/nifi/pull/2040

    NIFI-4232: Ensure that we handle conversions to Avro Arrays properly.…

    … Also, if unable to convert a value to the expected object, include in the 
log message the (fully qualified) name of the field that is problematic
    
    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](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/markap14/nifi NIFI-4232

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/2040.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 #2040
    
----
commit 6602374cb12567f411915e369ad9b8026c36e42d
Author: Mark Payne <[email protected]>
Date:   2017-07-26T17:04:10Z

    NIFI-4232: Ensure that we handle conversions to Avro Arrays properly. Also, 
if unable to convert a value to the expected object, include in the log message 
the (fully qualified) name of the field that is problematic

----


> AvroRecordSetWriter not properly handling Arrays of Records
> -----------------------------------------------------------
>
>                 Key: NIFI-4232
>                 URL: https://issues.apache.org/jira/browse/NIFI-4232
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>             Fix For: 1.4.0
>
>
> I have JSON coming in that has an Array of complex JSON objects. When I try 
> to convert it to Avro via ConvertRecord, it fails, with the following error:
> {code}
> ConvertRecord[id=4c8b14f0-1027-115d-2dd0-33fb39b2fc23] Failed to process 
> StandardFlowFileRecord[uuid=8506b97c-31fe-4598-b645-a526134b0f9f,claim=StandardContentClaim
>  [resourceClaim=StandardResourceClaim[id=1501080084533-2, container=default, 
> section=2], offset=2192294, 
> length=5646],offset=0,name=286941224561187,size=5646]; will route to failure: 
> org.apache.nifi.serialization.record.util.IllegalTypeConversionException: 
> Cannot convert value [Ljava.lang.Object;@746d38cd of type class 
> [Ljava.lang.Object; because no compatible types exist in the UNION
> {code}



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

Reply via email to