Skip to content

Cassandra specific queries

Julio Zevallos edited this page Sep 18, 2019 · 2 revisions

Due to the Cassandra driver needing to know how to map parameters to the data base based on type, it is required to pass the what kind of data type in the database of the dynamic parameters being used in the queries in the query config file.

For example, in the query below:

 "cassandra_query": "select * from table1 where id={BIGINT::id} allow filtering"

The parameter 'id' is a BIGINT data type in the database. The body of the request will still be with the parameter 'id', but the BIGINT must be specified in the query, followed by '::' , and then by the parameter name.