[
https://issues.apache.org/jira/browse/GORA-174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julien Nioche updated GORA-174:
-------------------------------
Attachment: GORA-174-test.patch
Will test your patch with the Nutch schema. In the meantime here is a patch for
the tests that currently crashes when we add a null value to the schema. For
some reason the java code is not generated prior to running the tests.
Hopefully this test should pass after fixing this issue.
> 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: 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