title: Cassandra query PRIMARY KEY column cannot be restricted exception
body: <p>I have a table as bellow:</p>
  
  <pre><code>CREATE TABLE vroctest.sensor_data_3 (
      nodeid text,
      yyyymmdd int,
      hour int,
      minute int,
      second int,
      data_timestamp bigint,
      data_quality double,
      data_value blob,
      PRIMARY KEY ((nodeid, yyyymmdd), hour, minute, second, data_timestamp)
  </code></pre>
  
  <p>I need to do below query</p>
  
  <pre><code>SELECT nodeid, yyyymmdd, hour, minute, second, data_timestamp, data_quality, data_value
  FROM vroctest.sensor_data_3  where nodeid in ('331ea1eb-d536-3f37-ba6b-ae02dbc736a4') and yyyymmdd in (20160701,20160702,20170701) and hour &lt;=24 and hour &gt;=0 and minute &lt;61 and minute &gt;=0 and second &gt;=0 and second&lt; 61 and data_timestamp &gt;= 1467317265000 and data_timestamp &lt;= 1498853265000;
  </code></pre>
  
  <p>however, it gives me exception</p>
  
  <pre><code>com.datastax.driver.core.exceptions.InvalidQueryException: Clustering column "minute" cannot be restricted (preceding column "hour" is restricted by a non-EQ relation)
  </code></pre>