cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CASSANDRA-6300) the problem of column family and table use compositetype as row key
Date Wed, 06 Nov 2013 02:32:17 GMT

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

Aleksey Yeschenko resolved CASSANDRA-6300.
------------------------------------------

    Resolution: Invalid

You shouldn't be mixing thrift and cql. If you are going to read with CQL, write with CQL.
If you are going to write via thrift - read via thrift.

> the problem of column family and table use compositetype as row key
> -------------------------------------------------------------------
>
>                 Key: CASSANDRA-6300
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6300
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>         Environment: cassandra2.0.1 and hector
>            Reporter: nivance
>              Labels: compositeColumns
>
> h4.The following two scripts 's content is the same but use cassandra-cli and cql.
> h4.cassandra-cli script is :
> {quote}
>   create column family gameinfo with comparator = 'UTF8Type' 
> and key_validation_class = 'CompositeType(UTF8Type, UTF8Type)' 
> AND default_validation_class = UTF8Type
> 	and column_metadata=[{column_name: ltype, validation_class: UTF8Type}]
> 	with read_repair_chance=0.1
> 	and dclocal_read_repair_chance=0.5;
> {quote}
> h4.cql script is :
> {quote}
> CREATE TABLE gameinfo (
>   key1 text,
>   key2 text,
>   ltype text
>   PRIMARY KEY ((key1, key2))
>  ) ;
> {quote}
> h4.I can insert data  use compositetype as row key  when using cassandra-cli script,
but failed using the cql script.
> h4.So, I think this maybe a bug.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message