Is it possible to decode a compressed blob using a cqlsh query?

Viewed 62
1 Answers

You can convert the blob back to an Erlang term with binary_to_term, but it cannot be done in cqlsh, it has to be done in Erlang/Elixir on the application level.

If you want to read from the database using a language which doesn't have binary_to_term, then you might be interested in BERT which is almost 100% compatible with Erlang Term Format and has libraries for Javascript and Ruby.

Alternatively, any other serialisation format like Piqi, JSON, XML etc would work.

Related