cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Hobbs (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CASSANDRA-8919) cqlsh return error in querying of CompositeType data
Date Wed, 01 Apr 2015 18:06:53 GMT

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

Tyler Hobbs resolved CASSANDRA-8919.
------------------------------------
    Resolution: Fixed

Fixed by commit 2fa18d3, which upgraded the bundled python driver to version 2.5.0 (and also
resolved CASSANDRA-9081).

> 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
>              Labels: cqlsh
>             Fix For: 2.1.5
>
>
> 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)

Mime
View raw message