How to store and retrieve TimeUUIDType types using Net :: Cassandra :: Easy?

Do 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:

 Net::GenCassandra::InvalidRequestException 

I have not seen anything like Net :: Cassandra :: Easy :: pack_decimal for UUID.

+4
source share
1 answer
+1
source

Source: https://habr.com/ru/post/1307407/


All Articles