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

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

GitHub user mattyb149 opened a pull request:

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

    NIFI-2593: Fixed handling of nested records/structs in ConvertAvroToORC

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mattyb149/nifi NIFI-2593

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

    https://github.com/apache/nifi/pull/891.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 #891
    
----

----


> ConvertAvroToORC doesn't handle records/structs nested in other objects
> -----------------------------------------------------------------------
>
>                 Key: NIFI-2593
>                 URL: https://issues.apache.org/jira/browse/NIFI-2593
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.0.0
>            Reporter: Matt Burgess
>            Assignee: Matt Burgess
>             Fix For: 1.0.0
>
>
> As an example, if a flow file containing an Avro record consisting of an 
> array of structs/records, ConvertAvroToORC will appear to successfully 
> convert the flow file, but the array will contain null values (as seen from 
> Hive when querying a table atop the ORC file(s) ).
> If Maps are the underlying object supporting records in the Avro file, this 
> works fine; however often (especially if using ConvertJsonToAvro), the object 
> will be a GenericData.Record. If so, this record should be parsed like a Map 
> (i.e. named fields), an OrcStruct generated, etc.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to