[
https://issues.apache.org/jira/browse/CASSANDRA-5008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507498#comment-13507498
]
Thierry Boileau commented on CASSANDRA-5008:
--------------------------------------------
I guess the fix is located in method "showColumnMeta" of class
"org.apache.cassandra.cli.CliClient". It could be something like this:
if (colDef.index_options != null && !colDef.index_options.entrySet().isEmpty())
{
sb.append(TAB + TAB + "index_options : {"+NEWLINE);
for (Map.Entry<String, String> entry :
colDef.index_options.entrySet())
{
sb.append(TAB + TAB + TAB +
CliUtils.escapeSQLString(entry.getKey()) + ": '" +
CliUtils.escapeSQLString(entry.getValue()) + "'," + NEWLINE);
}
sb.append("}");
}
> "show schema" command in cassandra-cli generates wrong "index_options" values.
> ------------------------------------------------------------------------------
>
> Key: CASSANDRA-5008
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5008
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 1.1.6
> Environment: ubuntu 12.04
> Reporter: Thierry Boileau
>
> Using cassandra-cli, launch the "show schema" command and save the output to
> a file.
> Try to import it in order to recreate the schema, it fails with error message
> :
> "Syntax error at position 626: no viable alternative at input '}'"
--
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