You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sylvain Lebresne (JIRA)" <ji...@apache.org> on 2013/01/09 12:18:20 UTC
[jira] [Updated] (CASSANDRA-5134) sstable2json always returns
default value validator
[ https://issues.apache.org/jira/browse/CASSANDRA-5134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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: https://issues.apache.org/jira/browse/CASSANDRA-5134
> 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 column.name 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: http://www.atlassian.com/software/jira