cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elvis Pranskevichus (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-5138) Provide a better CQL error when table data does not conform to CQL metadata.
Date Thu, 19 Sep 2013 16:54:59 GMT


Elvis Pranskevichus commented on CASSANDRA-5138:

Another related issue.  This check seems to make it impossible to insert proper records into
CQL3 tables via Thrift, since it bails out on an attempt to write a column with an empty last

id text,
attr text,
value text,

PRIMARY KEY (id, attr)

The storage column structure for the table would be:

<key>  {<attr>,}                [empty]
<key>  {<attr>,"value"}         <value>

There is no way to insert the first column (record demarcation) as it fails with "Invalid
cell for CQL3 table test. The CQL3 column component () does not correspond to a defined CQL3

> Provide a better CQL error when table data does not conform to CQL metadata.
> ----------------------------------------------------------------------------
>                 Key: CASSANDRA-5138
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.0
>         Environment: Mac OS X running 1.2
>            Reporter: Brian ONeill
>            Assignee: Sylvain Lebresne
>            Priority: Minor
>             Fix For: 2.0
>         Attachments: 5138-2.txt, 5138.txt, northpole.cql
> When you create a table via CQL, then insert into it via Thrift.  If you inadvertently
leave out a component of the column name, in CQL you receive a:
> TSocket read 0 bytes
> Server-side the following exception is logged:
> ERROR 15:19:18,016 Error occurred during processing of message.
> java.lang.ArrayIndexOutOfBoundsException: 3
> 	at org.apache.cassandra.cql3.statements.ColumnGroupMap.add(
> 	at org.apache.cassandra.cql3.statements.ColumnGroupMap.access$200(
> 	at org.apache.cassandra.cql3.statements.ColumnGroupMap$Builder.add(
> 	at org.apache.cassandra.cql3.statements.SelectStatement.process(
> 	at org.apache.cassandra.cql3.statements.SelectStatement.processResults(
> 	at org.apache.cassandra.cql3.statements.SelectStatement.execute(
> 	at org.apache.cassandra.cql3.statements.SelectStatement.execute(
> 	at org.apache.cassandra.cql3.QueryProcessor.processStatement(
> 	at org.apache.cassandra.cql3.QueryProcessor.process(
> 	at org.apache.cassandra.thrift.CassandraServer.execute_cql3_query(
> 	at org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(
> 	at org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(
> 	at org.apache.thrift.ProcessFunction.process(
> 	at org.apache.thrift.TBaseProcessor.process(
> 	at org.apache.cassandra.thrift.CustomTThreadPoolServer$
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
> 	at java.util.concurrent.ThreadPoolExecutor$
> 	at
> I'll submit a schema, and steps to reproduce.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message