public void testExecute_SimplePkWithDynamicColumn() {
qs.execute(new CqlQuery(CqlQueryType.USE, "USE CqlDemo"));
CqlQueryResult res = qs.execute(new CqlQuery(CqlQueryType.SELECT, "select * from MyBooks where pages=2212"));
CqlRowMetadata rowMetadata = res.rowMetadata;
assertTrue(res.toString(), rowMetadata.columns.contains(new CqlExtendedColumnName(CqlColumnType.REGULAR,
CqlDataType.create(DataType.varchar()), "title")));
String comColsStr = rowMetadata.columns.toString();
assertTrue(comColsStr, rowMetadata.columns.contains(new CqlExtendedColumnName(CqlColumnType.PARTITION_KEY,
CqlDataType.create(DataType.uuid()), "id")));
assertTrue(comColsStr, rowMetadata.columns.contains(new CqlExtendedColumnName(CqlColumnType.REGULAR,
CqlDataType.create(DataType.set(DataType.varchar())), "authors")));
assertTrue(comColsStr, rowMetadata.columns.contains(new CqlExtendedColumnName(CqlColumnType.REGULAR,
CqlDataType.create(DataType.cint()), "pages")));
assertTrue(comColsStr, rowMetadata.columns.contains(new CqlExtendedColumnName(CqlColumnType.REGULAR,
CqlDataType.create(DataType.map(DataType.varchar(), DataType.cdouble())), "price")));
int rowsSize = 0;
for (Row row : res) {
rowsSize++;