You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Tyler Hobbs (JIRA)" <ji...@apache.org> on 2015/03/05 20:13:38 UTC

[jira] [Assigned] (CASSANDRA-8919) cqlsh return error in querying of CompositeType data

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

Tyler Hobbs reassigned CASSANDRA-8919:
--------------------------------------

    Assignee: Tyler Hobbs

> cqlsh return error in querying of CompositeType data
> ----------------------------------------------------
>
>                 Key: CASSANDRA-8919
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8919
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>         Environment: SUSE 11 SP3, C* 2.1.2
>            Reporter: Mark
>            Assignee: Tyler Hobbs
>            Priority: Minor
>             Fix For: 2.1.2
>
>
> cqlsh return below error when querying CompositeType data. Seems like deserialize_safe is undefined for this CompositeType. Is it a issue need to fix?
> {code}
> cassandra@cqlsh:up_data> select * from test_stand;
> Traceback (most recent call last):
>   File "/home/mql/bin/cqlsh", line 986, in perform_simple_statement
>     rows = self.session.execute(statement, trace=self.tracing_enabled)
>   File "/home/mql/bin/../lib/cassandra-driver-internal-only-2.1.2.zip/cassandra-driver-2.1.2/cassandra/cluster.py", line 1294, in execute
>     result = future.result(timeout)
>   File "/home/mql/bin/../lib/cassandra-driver-internal-only-2.1.2.zip/cassandra-driver-2.1.2/cassandra/cluster.py", line 2788, in result
>     raise self._final_exception
> AttributeError: type object 'CompositeType(UTF8Type, Int32Type)' has no attribute 'deserialize_safe'
> {code}
> Pre-condition (in cassandra-cli)
> {code}
> create keyspace up_data with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = {replication_factor:1};
> use up_data;
> create column family test_stand
> with column_type = 'Standard'
> and comparator = 'UTF8Type'
> and default_validation_class = 'BytesType'
> and key_validation_class = 'UTF8Type'
> and column_metadata = [
> {column_name : 'UTF8Typefield',
> validation_class : 'UTF8Type'},
> {column_name : 'IntegerTypefield',
> validation_class : 'IntegerType'},
> {column_name : 'CompositeTypefield',
> validation_class : 'CompositeType(org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.Int32Type)'}
> ] and compression_options = null;
> set test_stand ['test_stand1']['UTF8Typefield']='utf8Type';
> set test_stand ['test_stand1']['CompositeTypefield']='utf8Type,12';
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)