Storing and Retrieving TimeUUIDType types with Net::Cassandra::Easy ?

Posted by Holden Robbins on Stack Overflow See other posts from Stack Overflow or by Holden Robbins
Published on 2010-04-20T02:10:32Z Indexed on 2010/04/20 2:13 UTC
Read the original article Hit count: 482

Filed under:
|
|

Doing the following:

my $c = Net::Cassandra::Easy->new(server => 'localhost', port => '9160', keyspace => 'Keyspace1'); $c->connect();

my $uuid_bin = Data::UUID->new()->create_bin(); eval { $result = $c->mutate([$key], family => 'StandardByUUID1', insertions => { $uuid_bin => '123' }); }; warn $@ if $@;

Result is a: Net::GenCassandra::InvalidRequestException

I didn't see anything similar to Net::Cassandra::Easy::pack_decimal for UUIDs.

© Stack Overflow or respective owner

Related posts about perl

Related posts about cassandra