Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 10.0.2
-
Fix Version/s: N/A
-
Component/s: Storage Engine - Cassandra
-
Labels:
-
Environment:Linux 10.0.2, [cqlsh 2.3.0 | Cassandra 1.2.4 | CQL spec 3.0.0 | Thrift protocol 19.35.0]
Description
cqlsh> USE mariadbtest2;
cqlsh:mariadbtest2> create columnfamily cf2 ( pk varchar, data1 varchar, data2 bigint, PRIMARY KEY (pk ,data1));
MariaDB [test2]> create table t2 (pk varchar(36) primary key, data1 varchar(60), data2 bigint) engine=cassandra thrift_host='IP_ADDRESS' keyspace='mariadbtest2' column_family='cf2';
ERROR 1429 (HY000): Unable to connect to foreign data source: Column family cf2 not found in keyspace mariadbtest2
Works fine with only one primary key.
Gliffy Diagrams
Attachments
Issue Links
- duplicates
-
MDEV-6604 Cassandra Storage Engine dealing with composite key
-
- Closed
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
The observed failure is an intersection of several problems.
Problem#1: Cassandra 1.2.
In Cassandra 1.2, they have slightly changed the data model, as described here http://www.datastax.com/dev/blog/thrift-to-cql3.
This broke, for example, Pig: https://issues.apache.org/jira/browse/CASSANDRA-5234. It broke Cassandra SE, also.
Problem#2: composite primary key. Even with Cassandra 1.1, it was not supported (the error was: ERROR 1070 (42000): Too many key parts specified; max 1 parts allowed). This is because we couldn't figure out how to access it through Thrift API. I've just looked through documentation and found no note of that, it should be fixed.