[ 
https://issues.apache.org/jira/browse/GORA-63?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Enis Soztutar updated GORA-63:
------------------------------

    Attachment: GORA-63_v1.patch

It seems the problem is that in webpage.json, the parsedContent field is 
declared as an arrray, but in GoraCompiler, the Schema.getValuetype() is called 
instead of the correct Schema.getElementType(). This one-liner patch should fix 
the problem. 
                
> bin/compile-examples.sh does not work
> -------------------------------------
>
>                 Key: GORA-63
>                 URL: https://issues.apache.org/jira/browse/GORA-63
>             Project: Gora
>          Issue Type: Bug
>            Reporter: Enis Soztutar
>         Attachments: GORA-63_v1.patch
>
>
> As reported by Lewis at gora-dev, bin/compile-examples.sh does not work. The 
> reported exception is: 
> {code}
> lewis@lewis-01:~/ASF/gora$ bin/compile-examples.sh
> Compiling gora-core/src/examples/avro/employee.json
> Compiling gora-core/src/examples/avro/tokendatum.json
> Compiling gora-core/src/examples/avro/webpage.json
> Exception in thread "main" org.apache.avro.SchemaParseException: Map has no
> values type: {"type":"map","items":"string"}
>    at org.apache.avro.Schema.parse(Schema.java:938)
>    at org.apache.avro.Schema.parse(Schema.java:912)
>    at org.apache.avro.Schema.parse(Schema.java:796)
>    at
> org.apache.gora.compiler.GoraCompiler.compileSchema(GoraCompiler.java:62)
>    at org.apache.gora.compiler.GoraCompiler.main(GoraCompiler.java:448)
> Compiling gora-core/src/examples/avro/webpage.json~
> Exception in thread "main" org.apache.avro.SchemaParseException: Array has
> no items type: {"type":"array","values":"string"}
>    at org.apache.avro.Schema.parse(Schema.java:933)
>    at org.apache.avro.Schema.parse(Schema.java:912)
>    at org.apache.avro.Schema.parse(Schema.java:796)
>    at
> org.apache.gora.compiler.GoraCompiler.compileSchema(GoraCompiler.java:62)
>    at org.apache.gora.compiler.GoraCompiler.main(GoraCompiler.java:448)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to