I have a Cassandra database table which is cached to ignite cache. I want to use some select query to this table. Is it possible to achieve this using SqlFieldsQuery & QueryFieldsCursor in c++ ? or is there any other option for doing this? I just done a try using this
SqlFieldsQuery sql ("select * from user_permission");
QueryFieldsCursor cursor = cache.Query(qry);
while (cursor.HasNext())
{
QueryFieldsRow row = cursor.GetNext();
std::cout << row.GetNext<std::string>() << row.GetNext<std::string>() << std::endl;
}
But got an error like this " Failed to parse query: select * from user_permission"