-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
byte[] @Column or @Id is not supported with Kundera+CQL #396
Comments
Hi, -Vivek |
Hi, No, it wasn't a native query, here's the code:
ERROR 2013-09-17 09:41:26,548 [main] com.impetus.client.cassandra.pelops.PelopsClient - Error during persist while executing query INSERT INTO "test"("id","data") VALUES('123',[B@2321b59a) , Caused by: . |
Hi, -Vivek |
Yes , with cqlsh : INSERT INTO test(id,data) VALUES('123',0x6120626c6f62); But Kundera is doing a .toString() |
A fix has been pushed in current trunk branch. Releasing with 2.8 -Vivek |
Any update. Got a chance to verify ? -Vivek |
Thanks for the fix! Do you have maven repo for 2.8-SNAPSHOT ? |
Nope. you need to build |
Problem solved ! Thanks |
For the following entity :
TABLE test (
key text,
data blob,
PRIMARY KEY (key)
)
@entity
@table(name = "test", schema = "kunderatest@cassandra_pu")
public class Dummy {
@id
private String id;
@column(name = "data")
private byte[] data;
}
I get the following error :
12:25:41,067 ERROR com.impetus.client.cassandra.pelops.PelopsClient: 465 - Error during persist while executing query INSERT INTO "test"("key","data") VALUES('123',[B@75d252d) , Caused by: .
InvalidRequestException(why:line 1:57 mismatched character ')' expecting set null)
at org.apache.cassandra.thrift.Cassandra$execute_cql3_query_result.read(Cassandra.java:37849)
at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
The text was updated successfully, but these errors were encountered: