I have this table in cassandra
FileProcess_ErrorLog
I have mapped this table with class:
@Table("FileProcess_ErrorLog")
public class FileProcessErrorLog {
@PrimaryKey
private UUID FileProcessErrorLogId;
private int FileProcessAuditLogId;
When I am trying to insert data into this table using the above class, I am getting this:
Caused by: com.datastax.driver.core.exceptions.InvalidQueryException: unconfigured table fileprocess_errorlog
at com.datastax.driver.core.exceptions.InvalidQueryException.copy(InvalidQueryException.java:50) ~[cassandra-driver-core-3.4.0.jar:na]
at com.datastax.driver.core.DriverThrowables.propagateCause(DriverThrowables.java:37) ~[cassandra-driver-core-3.4.0.jar:na]
at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:245) ~[cassandra-driver-core-3.4.0.jar:na]
at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:68) ~[cassandra-driver-core-3.4.0.jar:na]
at org.springframework.data.cassandra.core.cql.CqlTemplate.query(CqlTemplate.java:296) ~[spring-data-cassandra-2.0.8.RELEASE.jar:2.0.8.RELEASE]
... 40 common frames omitted
Note that Cassandra table names are case-sensitive. I think the error is because it converts the table name to all lower-case and that is why it can not find the table.
I have tried escaping the table name using `(backticks) as this answer suggested (I thought they could be using the same strategy.)
How can I insert data without changing table name.