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

Kazuomi Kashii commented on GORA-53:
------------------------------------

I have created the patch for GORA-148, but found another large issue in the 
test.

gora-core/src/examples/avro/webpage.json is:

{
  "type": "record",
  "name": "WebPage",
  "namespace": "org.apache.gora.examples.generated",
  "fields" : [
    {"name": "url", "type": "string"},
    {"name": "content", "type": "bytes"},
    {"name": "parsedContent", "type": {"type":"array", "items": "string"}},
    {"name": "outlinks", "type": {"type":"map", "values":"string"}},
    {"name": "metadata", "type": {
      "name": "Metadata",
      "type": "record",
      "namespace": "org.apache.gora.examples.generated",
      "fields": [
        {"name": "version", "type": "int"},
        {"name": "data", "type": {"type": "map", "values": "string"}}
      ]
    }}
  ]
}

The "metadata" field is RECORD type, and it has "data" field which is MAP type 
inside.
Currently, such nested complex type is not supported in gora-cassandra, even 
with super column family.

Even the latest GORA-142-v3.patch does not support such nested complex type,
but it is not so difficult to add a new serializer for this purpose.

How do you think ?
In order to pass the test, we need either
1) to remove nested complex type from webpage.json; or
2) to implement a new serializer with GORA-142.


                
> Add Gora-Cassandra tests
> ------------------------
>
>                 Key: GORA-53
>                 URL: https://issues.apache.org/jira/browse/GORA-53
>             Project: Apache Gora
>          Issue Type: Improvement
>          Components: storage-cassandra
>    Affects Versions: 0.1.1-incubating
>            Reporter: Lewis John McGibbney
>            Assignee: Lewis John McGibbney
>            Priority: Critical
>             Fix For: 0.3
>
>         Attachments: GORA-53-v2.patch, GORA-53.patch, GORA-54-v8.patch
>
>
> As per this thread [1], it is absolutely essential that we get some tests for 
> the Cassandra module. Therefore this task should act as a summary task to 
> manage all test which are hereby proposed.
> Realistically, this is going to take a good while, so I have marked it for 
> 0.2 and 0.3-incubating releases.
> [1] http://www.mail-archive.com/gora-dev@incubator.apache.org/msg00241.html 

--
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