[MDEV-6416] Mapping missing for cassandra TimeUUIDType which is Primary Key in our case too. Created: 2014-07-02  Updated: 2017-02-01  Resolved: 2017-02-01

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - Cassandra
Affects Version/s: 10.0.12, 10.1.0
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Mithun Mandal Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: cassandra
Environment:

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



 Comments   
Comment by Elena Stepanova [ 2014-07-06 ]

As far as I can see, there is no mapping for TimeUUIDType in the current implementation.

Comment by Mithun Mandal [ 2014-07-06 ]

when we can expect to be implemented? Also for development process how can build mysql from source. so that i can contribute in cassandra SE.

Comment by Sergei Petrunia [ 2014-07-10 ]

There are a lot of other bugs/tasks which we believe have higher impact. As a consequence, fixing this one is not on anyone's todo at the moment. So, we can't promise any particular date.

As for development: one can get the source from https://github.com/MariaDB/server.

Cassandra SE can (and will) only be built if Thrift library is installed.

The build process is:
Run "cmake ." in the source tree. Look for lines like

-- Performing Test CASSANDRASE_OK
-- Performing Test CASSANDRASE_OK - Success

If you have them, you can run "make" and MariaDB will be built with the cassandra engine.

Comment by Sergei Petrunia [ 2014-07-10 ]

In case you're going to expend a lot of effort on the Cassandra engine, be sure to read http://s.petrunia.net/blog/?p=88 first.

Comment by Sergei Petrunia [ 2017-02-01 ]

Changing status to Wont-Fix as there is no work planned on Cassandra-SE currently

Generated at Thu Feb 08 07:11:44 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.