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

Lewis John McGibbney commented on GORA-174:
-------------------------------------------

I can confirm that after applying the patch to gora-core then using this 
dependency with Nutch 2.x, the Exception is identical as the one documented in 
NUTCH-1477. When I compile the webpage avsc's here [0], the webpage class is 
generated but with no accessors for the fields in with the union case we are 
concerned with. I am also learning with the GoraCompiler (and Avro stuff) so I 
do not have a definitive solution to hand just now. I think the serializing and 
deserializing problems which seem to be a result of introducing union support 
should be addressed as we encounter them.

[0] http://svn.apache.org/repos/asf/nutch/branches/2.x/src/gora/ 
                
> 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
>             Fix For: 0.3
>
>         Attachments: failed_tests_after_v3.tar.gz, GORA-174-test.patch, 
> GORA-174v2.patch, GORA-174v3.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

Reply via email to