cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Hobbs (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-3724) CompositeType doesn't check number of components when validating
Date Tue, 10 Jan 2012 22:30:41 GMT
CompositeType doesn't check number of components when validating
----------------------------------------------------------------

                 Key: CASSANDRA-3724
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3724
             Project: Cassandra
          Issue Type: Bug
          Components: Core
            Reporter: Tyler Hobbs
            Priority: Minor


In {{AbstractCompositeType.validate()}}, there isn't any kind of check to verify that the
data has the same number of components as the comparator (or validator).  This means that
if you say the comparator is {{CompositeType(UTF8Type, UTF8Type)}}, you can use column names
that only have the first component (ie, the last thing in the bytestring is the eof for the
first component).

This behavior isn't explicitly stated anywhere.  Personally, I wouldn't expect this to validate,
but I could see an argument for why it should.  Either way, we need to either check the number
of components or explicitly state that this is expected behavior.

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

        

Mime
View raw message