I have an application where I have multiple selection dropdowns. According to that dropdown I need to get all values from the table.
CREATE TABLE generic_keyspace.cust_table (
account_executive text,
certification text,
customer_category text,
customer_name text,
engine_model text,
target_cost_final text,
target_price_final text,
PRIMARY KEY (account_executive, certification, customer_category, customer_name, engine_model)
) WITH CLUSTERING ORDER BY (certification ASC, customer_category ASC, customer_name ASC, engine_model ASC)
this is my table
SELECT * from cust_table
WHERE customer_name IN ('cust1','cust2')
AND customer_category IN ('cat1','cat2')
ALLOW FILTERING;
while trying to execute this query I am getting an error
InvalidRequest: Error from server: code=2200 [Invalid query] \
message="IN restrictions are not supported on indexed columns"
I tried removing the columns from primary key then I am getting another error
InvalidRequest: Error from server: code=2200 [Invalid query] \
message="IN predicates on non-primary-key columns (customer_name) is not yet supported"