{"action":"created","issue":{"url":"https://api.github.com/repos/AlexPikalov/cdrs/issues/236","repository_url":"https://api.github.com/repos/AlexPikalov/cdrs","labels_url":"https://api.github.com/repos/AlexPikalov/cdrs/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/AlexPikalov/cdrs/issues/236/comments","events_url":"https://api.github.com/repos/AlexPikalov/cdrs/issues/236/events","html_url":"https://github.com/AlexPikalov/cdrs/issues/236","id":394263423,"node_id":"MDU6SXNzdWUzOTQyNjM0MjM=","number":236,"title":"Epoch timestamps are being modified by the driver before being stored in Cassandra DB","user":{"login":"MaenMax","id":18452136,"node_id":"MDQ6VXNlcjE4NDUyMTM2","avatar_url":"https://avatars0.githubusercontent.com/u/18452136?v=4","gravatar_id":"","url":"https://api.github.com/users/MaenMax","html_url":"https://github.com/MaenMax","followers_url":"https://api.github.com/users/MaenMax/followers","following_url":"https://api.github.com/users/MaenMax/following{/other_user}","gists_url":"https://api.github.com/users/MaenMax/gists{/gist_id}","starred_url":"https://api.github.com/users/MaenMax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaenMax/subscriptions","organizations_url":"https://api.github.com/users/MaenMax/orgs","repos_url":"https://api.github.com/users/MaenMax/repos","events_url":"https://api.github.com/users/MaenMax/events{/privacy}","received_events_url":"https://api.github.com/users/MaenMax/received_events","type":"User","site_admin":false},"labels":[{"id":466835065,"node_id":"MDU6TGFiZWw0NjY4MzUwNjU=","url":"https://api.github.com/repos/AlexPikalov/cdrs/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2018-12-27T00:24:24Z","updated_at":"2019-01-05T00:06:10Z","closed_at":null,"author_association":"NONE","body":"\r\nFor example:\r\n\r\nsuppose that there is a table in Cassandra called tableA and it has two columns: ID column and timestamp column.\r\n\r\nid is INT\r\ntimestamp is DECIMAL\r\n\r\nWhen executing those lines of code:\r\n\r\n    let update_struct_cql: String = format!(\"update tableA SET  timestamp = ? where id = ?;\");\r\n\r\n    ddb.query_with_values(update_struct_cql,query_values!(current_time, id)).expect(\"[Err]: Could not update table\");  \r\n  \r\nWhen I print out timestamp BEFORE it is being used in above query, it will print something normal, like 1545870134, however, when I check column value in Cassandra DB, I see something like:\r\n\r\n6.1805539111220E-825570344\r\n\r\n\r\nThe question is: What happened to the timestamp ?\r\n"},"comment":{"url":"https://api.github.com/repos/AlexPikalov/cdrs/issues/comments/451605682","html_url":"https://github.com/AlexPikalov/cdrs/issues/236#issuecomment-451605682","issue_url":"https://api.github.com/repos/AlexPikalov/cdrs/issues/236","id":451605682,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTYwNTY4Mg==","user":{"login":"AlexPikalov","id":2776286,"node_id":"MDQ6VXNlcjI3NzYyODY=","avatar_url":"https://avatars1.githubusercontent.com/u/2776286?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexPikalov","html_url":"https://github.com/AlexPikalov","followers_url":"https://api.github.com/users/AlexPikalov/followers","following_url":"https://api.github.com/users/AlexPikalov/following{/other_user}","gists_url":"https://api.github.com/users/AlexPikalov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexPikalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexPikalov/subscriptions","organizations_url":"https://api.github.com/users/AlexPikalov/orgs","repos_url":"https://api.github.com/users/AlexPikalov/repos","events_url":"https://api.github.com/users/AlexPikalov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexPikalov/received_events","type":"User","site_admin":false},"created_at":"2019-01-05T00:06:10Z","updated_at":"2019-01-05T00:06:10Z","author_association":"OWNER","body":"With https://github.com/paupino/rust-decimal it's doable, I just need some time to make it a good citizen of CDRS types system.\r\n\r\nWill keep you updated in this thread"}}
{"actor":{"display_login":"AlexPikalov"}}