You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by ae...@orange.com on 2016/04/08 11:14:42 UTC
C*2.1 using timestamp with same timestamp
Hello,
I try to insert two lines for the same partition with the same timestamp. prmiere the line without TTL. the 2nd line with TTL.
As shown in the example below:
INSERT INTO tab1 (a,b) VALUES ('YYY','XXXX') USING TIMESTAMP 1460088862025940
INSERT INTO tab1 (a,b) VALUES ('YYY','XXXX') USING TIMESTAMP 1460088862025940 AND TTL 1000
With C*2.0, when I select from the table, I get the row with the TTL (), therefore the second row
a | b | ttl(b) | writetime(b)
------------+----------------+---------------------+---------------------------
YYY | XXXX| 999 | 1460088862025940
but with C*2.1 for the same insertions I get the row without TTL, therefore the first row.
a | b | ttl(b) | writetime(b)
------------+----------------+---------------------+---------------------------
YYY | XXXX| null | 1460088862025940
I know it is related to the WriteTime except that I do not understand the difference between 2.0 and 2.1 in this case
Any idea ?
Thx.
_________________________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.