Re: Parsing SSTables containing CQL values

2015-05-28 Thread Jason Wee
it does not support the CQL types ... do you mean cql type in here? http://docs.datastax.com/en/cql/3.1/cql/cql_reference/cql_data_types_c.html if so, i ran cassandra 2.2.0 beta1 with this. cqlsh:jw_schema1> desc table all_data_types; CREATE TABLE jw_schema1.all_data_types ( type_ascii a

Re: Parsing SSTables containing CQL values

2015-05-26 Thread Malcolm Matalka
The current code I have is using SSTableReader (like sstable2json) and then trying to interpret the bytes with the help of CFMetaData. Any pointers for where in the Cassandra codebase I could see how this is done? Thanks for the help. 2015-05-26 16:07 GMT+02:00 Tyler Hobbs : > Trying to parse a

Re: Parsing SSTables containing CQL values

2015-05-26 Thread Tyler Hobbs
Trying to parse and export an sstable at a higher, CQL level with the current codebase is going to be pretty tough. Handling static columns, collections (multi-cell columns), and the four minor variants of sstable formats (sparse vs dense, composite vs simple) is not easy. If you want to handle t

Re: Parsing SSTables containing CQL values

2015-05-26 Thread Malcolm Matalka
Thanks Tyler, The problem with sstable2json is that it does not support the CQL types as far as I can see and there isn't any indication as to modify it to do that. It seems like the CQL things are a layer above the SSTable. 2015-05-26 15:44 GMT+02:00 Tyler Hobbs : > I would start by looking at

Re: Parsing SSTables containing CQL values

2015-05-26 Thread Tyler Hobbs
I would start by looking at sstable2json. It may be simplest for you to run sstable2json and then process the resulting json. If that's not adequate, modifying the sstable2json code is probably your best bet. On Mon, May 25, 2015 at 11:12 AM, Malcolm Matalka wrote: > Hello, > > For efficiency