How do I store and retrieve 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
15:53 UTC
Read the original article
Hit count: 318
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