我使用tuple在Cassandra数据库中存储时间戳和区域信息。
我想根据时间戳过滤数据。
有没有办法在where子句中使用这个元组在cql中进行比较?
我已经尝试跟踪cql查询,但没有给出正确的结果。
SELECT extid,time_created_ from d_account where time_created_>=('2021-04-06 7:09:06', '+05:30') allow filtering;提前谢谢。
发布于 2021-07-12 20:03:34
张贴此答案,以便有人可能在未来获得帮助。
以下查询对我有效,并返回了预期的结果。
SELECT extid,time_created_ from d_account where time_created_ < ('2021-04-06 07:24:10.347+0000', '+05:30') allow filtering;https://stackoverflow.com/questions/66964568
复制相似问题