You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Kazuomi Kashii (JIRA)" <ji...@apache.org> on 2013/02/02 02:39:11 UTC

[jira] [Commented] (GORA-203) Bug in setting column field attribute "qualifier" in CassandraMapping

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

Kazuomi Kashii commented on GORA-203:
-------------------------------------

According to CassandraMapping.java, "qualifier" attribute is required as well as "family" attribute.
They correspond to column name and column family name respectively.
However, there is no error checking code in CassandraMapping.java.

  private static final String COLUMN_ATTRIBUTE = "qualifier";
  private static final String FAMILY_ATTRIBUTE = "family";

      String fieldName = element.getAttributeValue(NAME_ATTRIBUTE);
      String familyName = element.getAttributeValue(FAMILY_ATTRIBUTE);
      String columnName = element.getAttributeValue(COLUMN_ATTRIBUTE);
      BasicColumnFamilyDefinition columnFamilyDefinition = this.columnFamilyDefinitions.get(familyName);
      if (columnFamilyDefinition == null) {
        LOG.warn("Family " + familyName + " was not declared in the keyspace.");
      }

      this.familyMap.put(fieldName, familyName);
      this.columnMap.put(fieldName, columnName);

                
> Bug in setting column field attribute "qualifier" in CassandraMapping 
> ----------------------------------------------------------------------
>
>                 Key: GORA-203
>                 URL: https://issues.apache.org/jira/browse/GORA-203
>             Project: Apache Gora
>          Issue Type: Bug
>          Components: storage-cassandra
>    Affects Versions: 0.2.1
>            Reporter: Lewis John McGibbney
>             Fix For: 0.3
>
>
> Currently, we are absolutely required to set a value for a column field attribute "qualifier", however there are no checks to determine whether this is actually present or not, therefore this is a bug.
> Renato pointed this out and hopefully he can upload some stack traces relating to the issue to display the kind of issues one faces when qualifier attributes and their values are not present when mapping columns to Cassandra.
> As far as we know, column field attributes are supported in the most recent Cassandra data model (and this is not due to change) therefore we should also support them in Gora, however it is my opinion (please comment here) on whether they should be optional or not.

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