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.
Perhaps the Java code here will be useful: http://wiki.apache.org/cassandra/FAQ#working_with_timeuuid_in_java
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With