@Override public void alterTable(ClusterName targetCluster, TableName name, AlterOptions alterOptions) throws ConnectorException { AlterTableStatement tableStatement; session = sessions.get(targetCluster.getName()); switch (alterOptions.getOption()) { case ALTER_COLUMN: case ADD_COLUMN: case DROP_COLUMN: ColumnType type = alterOptions.getColumnMetadata().getColumnType(); tableStatement = new AlterTableStatement(name, alterOptions.getColumnMetadata().getName() , type, alterOptions.getProperties(), alterOptions.getOption()); CassandraExecutor.execute(tableStatement.toString(), session); break; case ALTER_OPTIONS: tableStatement = new AlterTableStatement(name, null, null, alterOptions.getProperties(), alterOptions.getOption()); CassandraExecutor.execute(tableStatement.toString(), session); break; default: break; } }