QueryBuilder.insertInto("datatable").value("id", id).value("datetime", datetime);
where datatime is of Java "Date" type.
This seems to get translated to:
INSERT INTO datatable (id, datetime) VALUES (1, 635140710777125909);
But, when I do a SELECT on the data in CQL Shell, I'm getting:
Failed to format value 635140710777125.9 as timestamp: (22, 'Invalid argument')
The "DateTime" field is defined as a "timestamp" in the CREATE TABLE command.
So, what is the proper way to insert a timestamp (Date and Time) into a Cassandra table using the Datastax Java Client?
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-us...@lists.datastax.com.
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-us...@lists.datastax.com.