I am calling CQLSH queries via JAVA Code. The query being SELECT key,column1,column2,value,ttl(value) AS ttl FROM TABLE.
This works fine.
All the tables for which the query is fired has a column named value. But column2 is missing for some of the tables.
So to use the query above dynamically if i could write something like this it would be great. Select *,ttl(value) AS ttl from TABLE.
But looks like directly there is no option to do this. Am i missing anything? Or i will have to manually build query for each of my tables.