somecallmemike
somecallmemike

Reputation: 441

Cassandra map collection returned by node.js Helenus looks odd

I have a CQL3 table in Cassandra that looks like this:

CREATE TABLE table (
  usr text,
  box text,
  uidseq map<bigint, text>,
  PRIMARY KEY (usr, box)
)

I do a query in cqlsh like so:

select uidseq from table WHERE usr = 'usr' AND box = 'box';

uidseq
------------------
{1: 'a', 2: 'a'}

Looks great, until I run the same query through the Helenus package for node.js and JSON.stringify'd the resulting value returned and get this back:

[0,2,0,8,0,0,0,0,0,0,0,1,0,1,97,0,8,0,0,0,0,0,0,0,2,0,1,97]

I tested the value returned by Helenus and it does come back as an object, so I am not sure where I have gone wrong here?

Upvotes: 2

Views: 394

Answers (1)

somecallmemike
somecallmemike

Reputation: 441

Appears to be a bug with the helenus package https://github.com/simplereach/helenus/issues/113.

Upvotes: 2

Related Questions