You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to use Cassandra to cache Exchange calendars, so they are available when Exchange is not. The following cql defines a table for storing the results of an availability request. The static last_update column keeps track of the last time our application wrote to the partition, if any.
CREATETABLEIF NOT EXISTS slots_by_account_and_day
(
account text,
day text,
ews_id text,
start_time timestamp,
end_time timestamp,
status text,
last_update timestamp STATIC,
PRIMARY KEY ((account, day), ews_id)
)
After filling the table with testdata, I noticed that PhantomDSL gives me None when I expected Some, using the following code:
This looks like a bug. I assume it is related to the way PhantomDSL handles static columns, because this is the first time I have tried to use this feature of Cassandra.
The text was updated successfully, but these errors were encountered:
Hi @woupiestek What does your phantom table look like? I don't think this is due to static handling, I think this might be a parse error in the datatype that decodes your timestamp. But I want to be sure, so if you could paste that here that would be helpful.
@alexflav23last_update is a DateTimeColumn, like the other timestamp columns start_time and end_time.
objectaccountextendsStringColumnwithPartitionKeyobjectdayextendsStringColumnwithPartitionKeyobjectews_idextendsStringColumnwithPrimaryKeyobjectstart_timeextendsDateTimeColumnobjectend_timeextendsDateTimeColumnobjectstatusextendsStringColumn/* * Added to track the last update for each partition*/objectlast_updateextendsDateTimeColumnwithStaticColumn
We want to use Cassandra to cache Exchange calendars, so they are available when Exchange is not. The following cql defines a table for storing the results of an availability request. The static
last_update
column keeps track of the last time our application wrote to the partition, if any.After filling the table with testdata, I noticed that PhantomDSL gives me
None
when I expectedSome
, using the following code:Meanwhile, the following Datastax based solution does give me what I expect using the following code:
This looks like a bug. I assume it is related to the way PhantomDSL handles static columns, because this is the first time I have tried to use this feature of Cassandra.
The text was updated successfully, but these errors were encountered: