How Fluent Cassandra Handles Runtime Types
Today I had the question come up about some wonky behavior with retrieving data from Cassandra for non-string types. Here is the issue in a nut-shell: dynamic obj = record.CreateSuperColumn(); obj.Id = 1234; obj.CreatedOn = DateTime.Now; obj.IsOnline = true; // blah blah blah save to database and retrieve Console.WriteLine(obj.Id); // (some unprintable characters) Console.WriteLine(obj.CreatedOn); // (some unprintable characters) Console.WriteLine(obj.IsOnline); // (some unprintable characters) To understand why this is happening we first must talk about how Cassandra stores data in the database. Cassandra stores everything by columns either by super-column or a regular column but for the sake of this post we are just going to talk about regular columns. These regular columns are made up for three properties: ...