user2775185
user2775185

Reputation: 1197

Storing only date part in Cassandra using timestamp type

have below mentioned column family in cassandra.

create table user_interactions ( user_id bigint, logged_in timestamp , module list<text>, primary key (user_id,logged_in));    

now when i insert the record it stores always time information too. Can i have only date to be part of logged_in value. I do not need time because objective is to have all user interactions getting stored on daily basis.

Upvotes: 1

Views: 1073

Answers (1)

Arya
Arya

Reputation: 2153

Instead of timestamp you can use string and pass in your value of date to that string.

Upvotes: 1

Related Questions