Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Won't Fix
-
10.0.12, 10.1.0
-
CentOS 6.5 MariaDB 10 Cassandra 2
Description
Hi guys
My column family defination:
create column family tc_audit_trail
|
with key_validation_class = TimeUUIDType
|
and comparator = UTF8Type
|
and column_metadata = [
|
{column_name: userid, validation_class: LongType,index_name : 'user', index_type : 0},
|
{column_name: entityid, validation_class: LongType,index_name : 'entity', index_type : 0},
|
{column_name: entitytype, validation_class: UTF8Type,index_name : 'entityType', index_type : 0},
|
{column_name: logtype, validation_class: UTF8Type,index_name : 'logType', index_type : 0},
|
{column_name: comment, validation_class: UTF8Type}
|
];
|
Maria DB defination:
CREATE TABLE tc_audit_trail ( |
`key` bigint(6) DEFAULT 0 NOT NULL, |
userid bigint(19), |
entityid bigint(19), |
entitytype varchar(60), |
logtype varchar(60), |
comment text(65535),
|
PRIMARY KEY (`key`) |
) ENGINE=CASSANDRA DEFAULT `thrift_host`='127.0.0.1' `keyspace`='timescity' `column_family`='tc_audit_trail' |
error: ERROR: Internal error: Failed to map PRIMARY KEY to
|
datatype org.apache.cassandra.db.marshal.TimeUUIDType Error
|
Code: 1815
|