You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2016/01/20 23:53:39 UTC
[jira] [Updated] (GORA-463) Missing assignment in
CassandraSubColumn#getUnionSchema()
[ https://issues.apache.org/jira/browse/GORA-463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Yu updated GORA-463:
------------------------
Description:
Here is related code:
{code}
Schema unionSchema = pSchema.getTypes().get(pSchemaPos);
// default union element
if ( unionSchema == null )
pSchema.getTypes().get(CassandraStore.DEFAULT_UNION_SCHEMA);
{code}
The return value from pSchema.getTypes().get() should be assigned to unionSchema before returning.
was:
Here is related code:
{code}
Schema unionSchema = pSchema.getTypes().get(pSchemaPos);
// default union element
if ( unionSchema == null )
pSchema.getTypes().get(CassandraStore.DEFAULT_UNION_SCHEMA);
{code}
The return value from pSchema.getTypes().get() should be assigned to unionSchema before returning.
> Missing assignment in CassandraSubColumn#getUnionSchema()
> ---------------------------------------------------------
>
> Key: GORA-463
> URL: https://issues.apache.org/jira/browse/GORA-463
> Project: Apache Gora
> Issue Type: Bug
> Reporter: Ted Yu
>
> Here is related code:
> {code}
> Schema unionSchema = pSchema.getTypes().get(pSchemaPos);
> // default union element
> if ( unionSchema == null )
> pSchema.getTypes().get(CassandraStore.DEFAULT_UNION_SCHEMA);
> {code}
> The return value from pSchema.getTypes().get() should be assigned to unionSchema before returning.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)