运行查询时。
"select * from temperature_by_day"
Cassandra 正在返回一个字符串 '\x00\x00\x017\xa7\xea\x9e\x00' 作为时间戳。
如果我从服务器上的 cqlsh 查询,它会返回我设置的日期。
我读过这篇文章:如何从 cassandra 中检索时间戳?
它指出“不建议直接在客户端代码中使用列 Cassandra 时间戳;”。
为什么?
这里的教程声明直接查询时间戳。
http://planetcassandra.org/blog/post/getting-started-with-time-series-data-modeling/
那么添加一个不属于主键的附加时间戳并针对该时间戳进行查询是否正确?
提前致谢。