Issue Details (XML | Word | Printable)

Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Store Cassandra

Support schema creation "USING" options via metadata

Created: 31/Mar/14 05:05 PM   Updated: 10/Jun/14 04:36 PM   Resolved: 29/Apr/14 02:45 PM
Component/s: Schema
Affects Version/s: None
Fix Version/s: 4.0.0.m4

 Description  « Hide
The various schema CQL allows specification of various options with the USING keyword. We should support specification of these via metadata in

    <extension vendor-name="datanucleus" key="cassandra.create.some_option" value="the_value"/>

and translate that to
USING some_option=the_value

The same idea can also apply to INSERT/UPDATE/DELETE/SELECT

Andy Jefferson added a comment - 29/Apr/14 11:12 AM
CREATE TABLE and CREATE INDEX now have support via the extensions

1. ClassMetaData extension "cassandra.createTable.options" specifies any OPTIONS for a CREATE TABLE statement (comma-separated value if wanting multiple options)
2. IndexMetaData extension "cassandra.createIndex.using" specifies any USING clause for a CREATE INDEX statement

Andy Jefferson made changes - 29/Apr/14 11:12 AM
Field Original Value New Value
Assignee Andy Jefferson [ andy ]
Andy Jefferson added a comment - 29/Apr/14 02:45 PM
GitHub master now adds support for this.

In addition to the above, also added the following extension keys (to ClassMetaData)
with the value being comma-separated options.

Andy Jefferson made changes - 29/Apr/14 02:45 PM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 4.0.0.m4 [ 12185 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 10/Jun/14 04:36 PM
Status Resolved [ 5 ] Closed [ 6 ]