Cassandra Error - Clustering column cannot be restricted (preceding column is restricted by a non-EQ relation)

前端 未结 2 1669
情话喂你
情话喂你 2021-02-02 13:39

We are using Cassandra as the data historian for our fleet management solution. We have a table in Cassandra , which stores the details of journey made by the vehicle. The table

2条回答
  •  名媛妹妹
    2021-02-02 14:25

    I run into same problem. Instead of playing with the clustered and primary keys, you could simply add an index to the needed columns. With this, you get rid of these pitfalls and you can use whatever column you want in your query.

提交回复
热议问题