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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -