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

Sachin Goyal commented on HIVE-7653:
------------------------------------

[~davidzchen], [~sushanth] I see you have good experience with AvroSerDe as per 
your contribution to HIVE-4329

[~swarnim], [~xuefuz], I see that you guys have also contributed a good deal on 
HIVE-6147 and have also faced a problem similar to the one I am facing.

Could you please review this patch as well?
This is my first patch to HIVE and no one has responded to my review request 
till now.
So I am trying to directly request some experienced folks.
Your review and comments will be much appreciated.




> Hive AvroSerDe does not support circular references in Schema
> -------------------------------------------------------------
>
>                 Key: HIVE-7653
>                 URL: https://issues.apache.org/jira/browse/HIVE-7653
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.13.1
>            Reporter: Sachin Goyal
>            Assignee: Sachin Goyal
>         Attachments: HIVE-7653.1.patch, HIVE-7653.2.patch, HIVE-7653.3.patch
>
>
> Avro allows nullable circular references but Hive AvroSerDe does not.
> Example of circular references (passing in Avro but failing in AvroSerDe):
> {code}
> class AvroCycleParent {
>   AvroCycleChild child;
>   public AvroCycleChild getChild () {return child;}
>   public void setChild (AvroCycleChild child) {this.child = child;}
> }
> class AvroCycleChild {
>   AvroCycleParent parent;
>   public AvroCycleParent getParent () {return parent;}
>   public void setParent (AvroCycleParent parent) {this.parent = parent;}
> }
> {code}
> Due to this discrepancy, Hive is unable to read Avro records having 
> circular-references. For some third-party code with such references, it 
> becomes very hard to directly serialize it with Avro and use in Hive.
> I have a patch for this with a unit-test and I will submit it shortly.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to