Response from CREATE INDEX command comes faster than the creation of secondary index. So below code:
doesn't return any rows(of course, in column family "tab", there are some records with "name" value = 'Chris'..) and any errors ( i would expect something like "Bad Request: No indexed columns present in by-columns clause with Equal operator")
Inputing some timeout between those two commands resolves the problem, so:
will return all rows with values as specified.
I'm using single node cluster.