I have the following table created using CQL3 in Cassandra:
CREATE TABLE user_log (
user_id text,
zone_id text,
freq int,
time timestamp,
PRIMARY KEY (user_id, zone_id)
)
I insert some values into this table using datastax
Cassandra-Python driver like this :
fmt = '%m/%d/%Y %H:%M'
t1 = datetime.strptime("01/01/2000 22:05", fmt)
prepared = session.prepare("""
INSERT INTO user_log (user_id,zone_id,freq,time) VALUES (?,?,?,?)
""")
session.execute_async(prepared.bind((str(Uid),str(zone_id),int(freq),t1 )))
Insertion goes fine but when I try to retrieve the values it throws an exception while retrieving the time values. Retrieval of all other columns works fine. Select *
also throws exception.