Code works when tables are created using CLI but doesnt work when created with CQL