GoCQL : Marshal string into timestamp
I am developing a time series data model with clustering column i.e. CREATE TABLE events ( id text, time timestamp, type text, val double, PRIMARY KEY (id, time) ) WITH CLUSTERING ORDER BY (time DESC) I wish to perform a select against the partition column 'id' and clustering column 'time'. For example, id:='1', timestamp:='2017-10-09' query := "SELECT id, time, type, val FROM events WHERE id=? AND time>=?" iterable := Cassandra.Session.Query(query, id, timestamp).Consistency(gocql.One).Iter() for iterable.MapScan(m) { found = true event = Event{ ID: m["id"].(string), Time: m["time"].(time