cassandra - CQL : .InvalidQueryException: Invalid amount of bind variables -


i trying query cassandra db camel-context. below route:

         <to uri="cql://127.0.0.1/empdetails?cql=select * employee;&amp;preparestatements=false "/>        </route> 

i facing below exception:

com.datastax.driver.core.exceptions.invalidqueryexception: invalid amount of bind variables     @ com.datastax.driver.core.exceptions.invalidqueryexception.copy(invalidqueryexception.java 

can let me know exact syntax cassandra camel component ?

<to uri="cql:0.0.0.0:9042/keyspace_name?cql=select * table_name primary_key_column=?"/> 

you can substitute ip , port per setup (default port 9042 though). keyspace_name, table_name , primary_key_column can set per data structure.


Comments

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -