cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nivance (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-6300) the problem of column family and table use compositetpye as row key
Date Tue, 05 Nov 2013 11:33:17 GMT

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

nivance updated CASSANDRA-6300:
-------------------------------

    Description: 
h3.The following two scripts 's content is the same but use cassandra-cli and cql.
h3.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}
h3.cql script is :
{quote}
CREATE TABLE gameinfo (
  key1 text,
  key2 text,
  ltype text
  PRIMARY KEY ((key1, key2))
 ) ;
{quote}

h3.I can insert data  use compositetpye as row key  when using cassandra-cli script, but failed
using the cql script.
So, I think this maybe a bug.

  was:
h2.The following two scripts 's content is the same but use cassandra-cli and cql.
h2.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}
h2.cql script is :
{quote}
CREATE TABLE gameinfo (
  key1 text,
  key2 text,
  ltype text
  PRIMARY KEY ((key1, key2))
 ) ;
{quote}

h2.I can insert data  use compositetpye as row key  when using cassandra-cli script, but failed
using the cql script.
So, I think this maybe a bug.


> the problem of column family and table use compositetpye 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: compositetpye
>
> h3.The following two scripts 's content is the same but use cassandra-cli and cql.
> h3.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}
> h3.cql script is :
> {quote}
> CREATE TABLE gameinfo (
>   key1 text,
>   key2 text,
>   ltype text
>   PRIMARY KEY ((key1, key2))
>  ) ;
> {quote}
> h3.I can insert data  use compositetpye as row key  when using cassandra-cli script,
but failed using the cql script.
> So, I think this maybe a bug.



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

Mime
View raw message