You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Lewis John McGibbney (JIRA)" <ji...@apache.org> on 2013/05/03 23:30:16 UTC

[jira] [Comment Edited] (GORA-174) GORA compiler does not handle ["string", "null"] unions in the AVRO schema

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

Lewis John McGibbney edited comment on GORA-174 at 5/3/13 9:29 PM:
-------------------------------------------------------------------

This issue is to support single type Unions within Avro schemas. AFAIK we have committed support for this within all modules in the GORA_174 datastore.
Recursive nested structures and multi-type Union support are different issues and they are confusing this parent issue very much.
Unless there is strong argument I propose to close this issue as resolved as well as all children issues relating only to single type union support within Avro schemas. 

Regarding support for multiple union type support and the recursive issue we should open and address these issues elsewhere.
                
      was (Author: lewismc):
    This issue is to support single type Unions within Avro schemas. AFAIK we have committed support for this within all modules in the GORA_174 datastore.
Recursive nested structures and multi-type Union support are different issues and they are confusing this parent issue very much.
Unless there is strong argument I propose to close this issue as resolved as well as all children issues relating only to single type union support within Avro schemas. 
                  
> GORA compiler does not handle ["string", "null"] unions in the AVRO schema
> --------------------------------------------------------------------------
>
>                 Key: GORA-174
>                 URL: https://issues.apache.org/jira/browse/GORA-174
>             Project: Apache Gora
>          Issue Type: Bug
>          Components: schema
>    Affects Versions: 0.2.1
>            Reporter: Julien Nioche
>            Assignee: Alfonso Nishikawa
>            Priority: Blocker
>             Fix For: 0.4
>
>         Attachments: GORA-174_over_r1462580.patch, GORA-174.patch, GORA-174.patch, GORA-174.patch, GORA-174.patch, GORA-174-test.patch
>
>
> See NUTCH-1477 for description. 
> We are getting NPE when using the DataFileAvroStore, in order to avoid that I modified the schema to allow for null values on some fields e.g.    {"name": "baseUrl", "type": ["string", "null"] }
> however when generating the code for the schema the accessors are not generated by GORA which prevents Nutch from compiling 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira