mirror of https://github.com/apache/cassandra
suppress output of index_options when empty
This commit is contained in:
parent
8d55474feb
commit
1ac90589ea
|
|
@ -1822,7 +1822,7 @@ public class CliClient
|
|||
.append(TAB + TAB + "index_name : '" + CliUtils.escapeSQLString(colDef.index_name) + "'," + NEWLINE)
|
||||
.append(TAB + TAB + "index_type : " + CliUtils.escapeSQLString(Integer.toString(colDef.index_type.getValue())));
|
||||
|
||||
if (colDef.index_options != null)
|
||||
if (colDef.index_options != null && !colDef.index_options.isEmpty())
|
||||
{
|
||||
output.append(",").append(NEWLINE);
|
||||
output.append(TAB + TAB + "index_options : {" + NEWLINE);
|
||||
|
|
|
|||
Loading…
Reference in New Issue