cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <>
Subject [jira] [Updated] (CASSANDRA-5134) sstable2json always returns default value validator
Date Wed, 09 Jan 2013 11:18:20 GMT


Sylvain Lebresne updated CASSANDRA-5134:

    Attachment: 5134.txt

Attaching patch to fix. We weren't really using the right method post-CQL3.
> sstable2json always returns default value validator
> ---------------------------------------------------
>                 Key: CASSANDRA-5134
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.2.0
>            Reporter: Christophe Angeli
>            Priority: Minor
>         Attachments: 5134.txt
> When exporting to JSON tables created using cqlsh, values are always exported to hexa
: the serializeColumn function fails to get the correct value validator from the cfMetaData,
since getColumnDefinition(column) returns null.
> I'm not a java expert and doesn't really understand the use of ByteBuffer for Map : the
workaround I found is to pass to cfMetaData.getValueValidator a new wrapped ByteBuffer of
the argument, then the validator is correctly found from the cfMetaData.column_metadata.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message