Re: Denylisting with a composite partition key

2022-10-17 Thread Aaron Ploetz
Thanks for the help with the INSERT, Cheng! I'm further along than before. But it still must not be matching up quite right, because I can still select that partition. I have several different combinations of the two keys (and I removed the space) of "Minneapolis,MN" and 202210. Here's what I'v

Re: Denylisting with a composite partition key

2022-10-17 Thread Cheng Wang via user
Another approach is, instead of using $$, you can put additional pair of single quote around the 'Minneapolis, MN' cqlsh> insert into system_distributed.partition_denylist (ks_name, table_name, key) values ('stackoverflow', 'weather_sensor_data', textAsBlob('''Minneapolis, MN'', 202210')); cqlsh>

Re: Denylisting with a composite partition key

2022-10-17 Thread Cheng Wang via user
Hi Aaron, Yes, you can directly insert into the system_distributed.partition_denylist instead of using JMX. Jordan wrote a blog post for denylist https://cassandra.apache.org/_/blog/Apache-Cassandra-4.1-Denylisting-Partitions.html And the syntax error, one way around is to put $$ around like belo

Denylisting with a composite partition key

2022-10-17 Thread Aaron Ploetz
I have this table definition: CREATE TABLE stackoverflow.weather_sensor_data ( city text, month int, recorded_time timestamp, temp float, PRIMARY KEY ((city, month), recorded_time) ) WITH CLUSTERING ORDER BY (recorded_time DESC) Sample data looks like this: > SELECT * FROM we