kundera icon indicating copy to clipboard operation
kundera copied to clipboard

"In" key word can not be used in jpql by using cassandra 1.1.5 !

Open zhouhero opened this issue 13 years ago • 13 comments

When use "in" key word in jpql by using cassandra 1.1.5, the following error happend:

" Condition in is not suported for query on row key! "

but in cassandra CQL1.3 , "in" can be used.

Can anyone help me get it working ?

zhouhero avatar Dec 14 '12 11:12 zhouhero

Try using it "nativeQuery" support with Kundera.

  1. Set cql version to 3
  2. Execute cql query as em.createNativeQuery or em.getNativeQuery() support.

-Vivek

mevivs avatar Dec 14 '12 11:12 mevivs

Thank you for your answer! i will try it. By the way, when using native query , can i set params in cql3 like jpql? It seem that the parameter setting is not working now by using native cql in cassandra 1.1.5.

zhouhero avatar Dec 14 '12 11:12 zhouhero

AFN setParameter is limited to JPQL/Named query only

-Vivek

mevivs avatar Dec 14 '12 11:12 mevivs

i see, but i want to using both setting parameter and "in" keyword in my program. if you can make "in" keyword working in Kundera 2.3, you will help me very mutch! Thanks!

zhouhero avatar Dec 14 '12 11:12 zhouhero

Just to brief on this, Once we enable support for newly released cassandra jdbc driver(not sure how much stable that is), this will be in.

-Vivek

mevivs avatar Dec 14 '12 11:12 mevivs

by the way, is kundera 2.2 using pelopes driver to connect to cassandera now? in the new version(2.3), will it use cassandra jdbc driver directly?

zhouhero avatar Dec 14 '12 12:12 zhouhero

It gives you both option:

  1. Pelops client
  2. Thrift client.

3rd will be jdbc driver support.

-Vivek

mevivs avatar Dec 14 '12 12:12 mevivs

i see, i think it will be very good by using jdbc driver in kundera2.3. when over 10,000 clients are online in my system, witch driver is best?

zhouhero avatar Dec 14 '12 12:12 zhouhero

jdbc is relatively very new in comparision of thrift protocol and we are working on it. As of now most systems in production are using thrift based clients.

-Vivek

mevivs avatar Dec 14 '12 12:12 mevivs

Thanks you for your support very much! Looking forward to kundera 2.3 with jdbc driver ....

zhouhero avatar Dec 14 '12 12:12 zhouhero

Parked for release > 2.4

mevivs avatar Jan 22 '13 09:01 mevivs

"in" keyword is can used in JPQL by using kundera 2.4 + cassandra1.2?

zhouhero avatar Mar 11 '13 01:03 zhouhero

Not yet,

For detailed listing of keywords supported in JPQL, please see: https://github.com/impetus-opensource/Kundera/wiki/JPQL

Please let us know if we have missed something.

Sincerely, Amresh

On Mon, Mar 11, 2013 at 7:19 AM, zhouhero [email protected] wrote:

"in" keyword is can used in JPQL by using kundera 2.4 + cassandra1.2?

— Reply to this email directly or view it on GitHubhttps://github.com/impetus-opensource/Kundera/issues/151#issuecomment-14694329 .

xamry avatar Mar 11 '13 07:03 xamry