cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleksandr Petrov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-9257) Schema Builder does not support multiple column add/drop/alter
Date Tue, 28 Apr 2015 21:30:06 GMT
Oleksandr Petrov created CASSANDRA-9257:
-------------------------------------------

             Summary: Schema Builder does not support multiple column add/drop/alter 
                 Key: CASSANDRA-9257
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9257
             Project: Cassandra
          Issue Type: Improvement
          Components: Drivers (now out of tree)
            Reporter: Oleksandr Petrov


Right now, SchemaBuilder allows adding, altering or dropping only one column, for example:

```
SchemaBuilder.alterTable("ks", "DropColumn")
                .addColumn("b")
                .type(DataType.cint()
```

There's no way to say `addColumn` after that once again, so one has to create another statement.

I'd be glad to help out / contribute that one, if everyone generally agrees that this is a
good addition to API.

This would be a great addition, and will help one of Clojure drivers to provide a smoother
API, too. 

Thanks!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message