So the commit on this restriction dates back to 2.2.0 (CASSANDRA-7981). Maybe Benjamin Lerer can shed some light on it.
On Fri, Oct 21, 2016 at 11:05 PM, Jeff Carpenter < jeff.carpen...@choicehotels.com> wrote: > Hello > > Consider the following schema: > > CREATE TABLE rates_by_code ( > hotel_id text, > rate_code text, > rates set<text>, > description text, > PRIMARY KEY ((hotel_id), rate_code) > ); > > When executing the query: > > select rates from rates_by_code where hotel_id='AZ123' and rate_code IN > ('ABC', 'DEF', 'GHI'); > > I receive the response message: > > Cannot restrict clustering columns by IN relations when a collection is > selected by the query. > > If I select a non-collection column such as "description", no error occurs. > > Why does this restriction exist? Is this a restriction that is still > necessary given the new storage engine? (I have verified this on both 2.2.5 > and 3.0.9.) > > I looked for a Jira issue related to this topic, but nothing obvious > popped up. I'd be happy to create one, though. > > Thanks > Jeff Carpenter > > > >