DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCCASSANDRA-21
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Baris ERGUN
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

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

Support native Cassandra CQL queries

Created: 19/Feb/14 12:39 PM   Updated: 11/Oct/14 10:15 AM   Resolved: 01/Oct/14 07:32 PM
Component/s: Queries
Affects Version/s: None
Fix Version/s: 4.0.3


 Description  « Hide
We could potentially allow
pm.newQuery("CQL", "{my_cql_query}");

em.createNativeQuery("{my_cql_query}", MyClass.class);

Baris ERGUN made changes - 19/Apr/14 06:14 PM
Field Original Value New Value
Assignee Baris ERGUN [ bergun ]
Andy Jefferson added a comment - 22/Apr/14 09:17 AM
FYI For this you will need to create a Cassandra-specific test area in the "tests" repository at "jdo/cassandra". Note that this will be for Cassandra-specific tests only.

Baris ERGUN added a comment - 04/May/14 11:17 AM

Baris ERGUN made changes - 04/May/14 09:18 PM
Status Open [ 1 ] In Progress [ 3 ]
Andy Jefferson added a comment - 28/May/14 08:17 PM
Too late for 4.0.0-m4 now.

Andy Jefferson added a comment - 12/Jun/14 08:46 AM
Presumably not being worked on. Too late for 4.0

Andy Jefferson made changes - 12/Jun/14 08:46 AM
Assignee Baris ERGUN [ bergun ]
Andy Jefferson made changes - 12/Jun/14 08:49 AM
Assignee Andy Jefferson [ andy ]
Andy Jefferson made changes - 12/Jun/14 08:49 AM
Status In Progress [ 3 ] Open [ 1 ]
Andy Jefferson made changes - 12/Jun/14 08:49 AM
Assignee Andy Jefferson [ andy ]
Baris ERGUN made changes - 13/Sep/14 08:21 PM
Assignee Baris ERGUN [ bergun ]
Baris ERGUN made changes - 13/Sep/14 08:21 PM
Status Open [ 1 ] In Progress [ 3 ]
Andy Jefferson added a comment - 29/Sep/14 08:51 AM
Baris,
as part of this issue, how about updating http://www.datanucleus.org/products/accessplatform/datastores/cassandra.html with more details and example(s) of using CQL so people see how they can use it?

I did a similar thing on this page for NeoDatis
http://www.datanucleus.org/products/accessplatform/datastores/neodatis.html
for its query languages

Baris ERGUN added a comment - 29/Sep/14 09:16 AM
I have added only this line "or even as List<T> where T is the type which you declare with setResultClass before executing the query.". I will detail it then as in your Neodatis example.

Andy Jefferson added a comment - 01/Oct/14 07:32 PM
Marking as fixed since 4.0.3 is released now.
Please raise any other CQL support as separate issue(s)

Andy Jefferson made changes - 01/Oct/14 07:32 PM
Status In Progress [ 3 ] Resolved [ 5 ]
Fix Version/s 4.0.3 [ 12270 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 11/Oct/14 10:15 AM
Status Resolved [ 5 ] Closed [ 6 ]